Page 1 of 1

IncludePath bug (pb 4.10 b2)

Posted: Sun Jun 24, 2007 8:43 am
by Fangbeast
This has been present in the compiler since the 3.xx release and I reported it then and it's still the same. Thought I'd better remind someone after all these years:D :D :D

From the PB manual comes this example.

IncludePath "Sources\Data"
IncludeFile "Sprite.pb"
XIncludeFile "Music.pb"


When I do this:

IncludePath "Modules"
XIncludeFile "_BakkerToolTips.pbi"


When I double click on "_BakkerToolTips.pbi" this module to load it, it doesn't load and I have to go back to using manual, relative reference.

If I do this "Modules\_BakkerToolTips.pbi" and double click on the module, it loads just fine.

Posted: Sun Jun 24, 2007 10:49 am
by walker
I think that the IDE isn't parsing the source... so how should the path known by the IDE when clicking on a include line containing only the filename ? The IDE then took a look in the actual path of the source...but there is no file found = no file opened....

Posted: Sun Jun 24, 2007 11:33 am
by Trond
How would you like the IDE to handle things like this?

Code: Select all

CompilerIf #PB_Compiler_Unicode
  IncludePath "unicode"
CompilerEndIf
IncludeFile "hello.pb"

Posted: Sun Jun 24, 2007 12:03 pm
by Fangbeast
This is a bug report to the pb team who will understand the question as it's their product and I am getting a little tired of people hijaacking bug reports.

If you don't work for the pb team, kindly refrain from replying.

Posted: Sat Jul 28, 2007 9:39 am
by Fred
Walker is right, the IDE doesn't parse the source so it can't know you have added a relative path somewhere. It's a limitation for sure, but it can't be overcome easily.