It doesn't have to be a sub folder in main pbp-file folder. It can be any folder and path is point to it (same like in command prompt, i.e: "cd .." goes 1 level up for current folder).
Example:
If main pbp-file is located
and include filesCode:c:\pic\pbp\prog\
In MCS I can doCode:c:\pic\pbp\incl\
so starting folder is "c:\pic\pbp\prog" and then it goes one level up "c:\pic\pbp" and then to "incl"-folder, which is parallel to prog.Code:include "..\incl\[filename_to_be_included].pbp"
-Gusse-
Last edited by Gusse; - 28th August 2012 at 15:59.
I think PBP only looks in the directory the code is in and the directory PBP is in. Any other location needs to have the path to the include in the code. So look in the two default locations and parse the INCLUDE line for the other possible locations???
Dave
Always wear safety glasses while programming.
Gusse
Problem: Opening an include in FL explorer which is located in a parallel directory.
I have written a include open routine which does what you have requested in FineLineIDE.
In tests with MCS however I am unable to duplicate opening an .inc in: M:\PBP3\ABC INCLUDE
with the .pbp program in: M:\PBP3\ABC PROGRAM
when called out as: Include "...\ABC INCLUDE\TEST1.INC"
I am using Microcode Studio 5.0.0.0 and compiler PBPX 3.0.1.4
What versions are you using?
I can email you a test version of FL with the new include routine if you PM me your email address.
Norm
Last edited by Normnet; - 9th September 2012 at 18:25.
Hi Horm,
There are still couple of issues that I noticed in brief trial with v2.0.0.1 BETA.
------------------------------------------------------------------------------
If you re-open FL, then it cannot compile file. (require that file has been once openned with FL earlier). Same issue that I noticed also earlier.
"Invalid Include Path: "..\incl\PIC18F4520_config.pbp" Aborting Compile"
If you open same file again (with Ctrl+O or with button) then it will compile the file.
------------------------------------------------------------------------------
Include files are accessible, but when you try to close them then FL says (pop-up):
"FL THREAD ERROR 0" and there is OK button. Once pressed OK, another pop-up will come up with same error again. And again and again... Only by pressing "Close Tab" button again error message will disappear.
At least I can repeat this issue when I open all include files and close FL, then re-open FL and try to close include tabs.
------------------------------------------------------------------------------
Used test file: http://www.mediafire.com/?yty070ruqh4ycyh
BR,
-Gusse-
Last edited by Gusse; - 12th September 2012 at 06:50.
v2.0.0.2 BETA seems to work OK
There is still an issue about saving & closing tabs. If you open and close tab without leaving tab and content is untouched, FL will not prompt "Save Changes" question. But if you change to other tab and return and then close without modifying tab content, FL always ask if you would like to save changes. I think this is minor problem but fixable.
Good job Norm!
BR,
-Gusse-
EDIT: If you click "***CURRENT LINE***" in exlorer view (includes), it tries to open same name include file without success. Could it be changed/removed?
Last edited by Gusse; - 13th September 2012 at 19:10.
Bookmarks