IncludePath bug (pb 4.10 b2)

Working on new editor enhancements?
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

IncludePath bug (pb 4.10 b2)

Post 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.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

Post 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....
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post 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"
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post 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.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post 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.
Post Reply