Re: [Lazarus] Bug on CodeTools to find unit using in `../path/unit.pas`

2018-12-10 Thread Marcos Douglas B. Santos via lazarus
On Mon, Dec 10, 2018 at 6:39 AM Mattias Gaertner via lazarus wrote: > > On Sun, 9 Dec 2018 22:33:47 -0200 > "Marcos Douglas B. Santos via lazarus" > wrote: > > >[...] > > unit A; > > uses msg1 in 'msg/msg.pas' > > - > > unit B; > > uses msg2 in 'msg/msg.pas' > > > > As I understood, when the

Re: [Lazarus] Bug on CodeTools to find unit using in `../path/unit.pas`

2018-12-10 Thread Mattias Gaertner via lazarus
On Sun, 9 Dec 2018 22:33:47 -0200 "Marcos Douglas B. Santos via lazarus" wrote: >[...] > unit A; > uses msg1 in 'msg/msg.pas' > - > unit B; > uses msg2 in 'msg/msg.pas' > > As I understood, when the compiler knows about `msg.pas`, it will use > the first identifier that appeared, which is `m

Re: [Lazarus] Bug on CodeTools to find unit using in `../path/unit.pas`

2018-12-09 Thread Marcos Douglas B. Santos via lazarus
On Sun, Dec 9, 2018 at 12:59 PM Juha Manninen via lazarus wrote: > > On Sun, Dec 9, 2018 at 2:06 PM Marcos Douglas B. Santos via lazarus > wrote: > > Instead, can I add it on Search Path but using a macro or custom > > definition, to get the path accordingly to Build Mode choose? > > Why? > The "

Re: [Lazarus] Bug on CodeTools to find unit using in `../path/unit.pas`

2018-12-09 Thread Juha Manninen via lazarus
On Sun, Dec 9, 2018 at 2:06 PM Marcos Douglas B. Santos via lazarus wrote: > Instead, can I add it on Search Path but using a macro or custom > definition, to get the path accordingly to Build Mode choose? Why? The "Other unit files (-Fu)" setting is part of Build Modes. You can set a different p

Re: [Lazarus] Bug on CodeTools to find unit using in `../path/unit.pas`

2018-12-09 Thread Marcos Douglas B. Santos via lazarus
On Sat, Dec 8, 2018 at 4:49 PM Mattias Gaertner via lazarus wrote: > > On Sat, 8 Dec 2018 14:15:20 -0200 > "Marcos Douglas B. Santos via lazarus" > wrote: > [...] > > You can argue that I just need to include the path on Search Path but, > > please, don't. I want to use something like "dynamic pa

Re: [Lazarus] Bug on CodeTools to find unit using in `../path/unit.pas`

2018-12-08 Thread Mattias Gaertner via lazarus
On Sat, 8 Dec 2018 14:15:20 -0200 "Marcos Douglas B. Santos via lazarus" wrote: > Hi, > I'm playing around with units to include them in a "different" way in > a test program. I realized that there are some issues only on Lazarus > IDE code-completion — no error to compile. > > Inside the folder

[Lazarus] Bug on CodeTools to find unit using in `../path/unit.pas`

2018-12-08 Thread Marcos Douglas B. Santos via lazarus
Hi, I'm playing around with units to include them in a "different" way in a test program. I realized that there are some issues only on Lazarus IDE code-completion — no error to compile. Inside the folder of the project, I've added a new unit in `msg` folder: `msg/msg.pas`. If I use this unit on