View previous topic :: View next topic |
Author |
Message |
hennesf
Joined: 06 Jul 2016 Posts: 7
|
Posted: Fri Feb 16, 2018 6:34 pm Post subject: Code Explorer does not show inc Files, nor Subs |
|
|
Hi there,
in a project i would like to get the Subs listed by the code explorer.
Subs are in Subroutines.inc
But as you can see on the attached screenshot they aren't, although in the settings " Code explorer with separate inc Files" Box is checked.
Doing Refresh in Code Explorer Window doesn't help.
What's wrong?
Regards and thanks for your answers.
hennesf
(BASCOM-AVR version : 2.0.8.1 ) |
|
Back to top |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Sat Feb 17, 2018 11:12 am Post subject: |
|
|
hi
to see my inc file I use the "project mode"
I fill the full inc+ bas file used in the project,
I see it in the view index
don't forget to save and open in the file index
I like it !
jp |
|
Back to top |
|
|
hennesf
Joined: 06 Jul 2016 Posts: 7
|
Posted: Sat Feb 17, 2018 11:38 am Post subject: |
|
|
Hi Jp,
thanks for your answer.
I'm not sure, what do you mean with "project mode"?
As you can see in the attached screenshot the inc files are included in the project and indicated on top of the window.
The code compiles witout failure and works.
So, what do you mean actually?
Regards |
|
Back to top |
|
|
Evert :-)
Joined: 18 Feb 2005 Posts: 2156
|
|
Back to top |
|
|
hennesf
Joined: 06 Jul 2016 Posts: 7
|
Posted: Sat Feb 17, 2018 4:05 pm Post subject: |
|
|
Hi Evert
that's what i did.
Created a new subdirectory, started Bascom-Project-New, gave it a name and stored it in that previously created subdirectory. Closed bascom.
Into that subdirectory i stored the main.bas and inc Files.
Started bascom again, opened that new project and included the files copied before. ( See screenshot in Post 3 )
The code compiles, the code works, but the code explorer doesn't show them.
Here's the contentof that .prj file.
[PROJECT]
COUNT=8
ACTIVE=C:\Users\Hans\Desktop\Hans AVM\Eisenbahn Wolfgang\Gleis_besetzt_Wolfgang_16_Gleise\Projektordner-Basis 4\Main.bas
MAIN=C:\Users\Hans\Desktop\Hans AVM\Eisenbahn Wolfgang\Gleis_besetzt_Wolfgang_16_Gleise\Projektordner-Basis 4\Main.bas
FILE1=Main.bas
FILE1_LOADED=-1
FILE1_LEFT=154
FILE1_TOP=154
FILE1_RIGHT=1296
FILE1_BOTTOM=578
FILE1_X=0
FILE1_Y=0
FILE1_STATE=2
FILE2=Gleis1.inc
FILE2_LOADED=-1
FILE2_LEFT=667
FILE2_TOP=0
FILE2_RIGHT=1334
FILE2_BOTTOM=616
FILE2_X=9
FILE2_Y=48
FILE2_STATE=0
FILE3=Subroutines.inc
FILE3_LOADED=-1
FILE3_LEFT=0
FILE3_TOP=0
FILE3_RIGHT=667
FILE3_BOTTOM=616
FILE3_X=0
FILE3_Y=207
FILE3_STATE=0
FILE4=Bootloader_und_ISR.inc
FILE4_LOADED=-1
FILE4_LEFT=110
FILE4_TOP=110
FILE4_RIGHT=638
FILE4_BOTTOM=534
FILE4_X=0
FILE4_Y=0
FILE4_STATE=0
FILE5=Kommentare.bas
FILE5_LOADED=-1
FILE5_LEFT=66
FILE5_TOP=66
FILE5_RIGHT=594
FILE5_BOTTOM=490
FILE5_X=0
FILE5_Y=0
FILE5_STATE=0
FILE6=LCD_init_und_Intro.inc
FILE6_LOADED=0
FILE6_LEFT=110
FILE6_TOP=110
FILE6_RIGHT=1252
FILE6_BOTTOM=534
FILE6_X=0
FILE6_Y=0
FILE6_STATE=2
FILE7=Mcp23017_Routinen.inc
FILE7_LOADED=-1
FILE8=Dims_Config_Declare.inc
FILE8_LOADED=-1
FILE7_LEFT=88
FILE7_TOP=88
FILE7_RIGHT=616
FILE7_BOTTOM=512
FILE7_X=0
FILE7_Y=0
FILE7_STATE=0
FILE8_LEFT=132
FILE8_TOP=132
FILE8_RIGHT=660
FILE8_BOTTOM=556
FILE8_X=0
FILE8_Y=0
FILE8_STATE=0
I don't have any idea why not!
Have you???
Regards |
|
Back to top |
|
|
EDC
Joined: 26 Mar 2014 Posts: 971
|
Posted: Sat Feb 17, 2018 4:42 pm Post subject: |
|
|
First thing I would check is your XML file that holds all Bascom settings.
You can find that file location by clicking "Help"->"About"
Then if you have file folder opened FIRST close Bascom, and then rename file "bascom-avr.xml" into something else like "bascom-avr_.xml"
If everything past successful then after launching Bascom you should see "History.txt" in the bascom Editor. That means that every settings now is restored to the "This version defaults".
Check if Bascom works correctly. If no change then you can always restore Bascom settings by deleting new created XML file and renaming previously renamed file again.
This takes two minutes and you know much more. |
|
Back to top |
|
|
hennesf
Joined: 06 Jul 2016 Posts: 7
|
Posted: Sat Feb 17, 2018 5:07 pm Post subject: |
|
|
Hi EDC,
I made what you said, no result as far as code explorer is concerned, except Bascom in english.
See screenshot.
Regards |
|
Back to top |
|
|
EDC
Joined: 26 Mar 2014 Posts: 971
|
Posted: Sat Feb 17, 2018 5:24 pm Post subject: |
|
|
This is weird. Look my screenshot.
Even NOT in the project mode you can choose separate INC file in the Code Explorer and they work for me.
My next step would be a test on the second machine.
EDIT: My files are included "in quotes" Yours NOT maybe this is the case |
|
Back to top |
|
|
Printpix52
Joined: 18 Jun 2014 Posts: 282 Location: D.F.
|
Posted: Sat Feb 17, 2018 5:41 pm Post subject: |
|
|
I was watching and trying nothing out of curiosity. |
|
Back to top |
|
|
EDC
Joined: 26 Mar 2014 Posts: 971
|
Posted: Sat Feb 17, 2018 5:52 pm Post subject: |
|
|
After removing the quotes form the included files my code still can be compiled but included files are no longer showed in the Code Explorer.
I think that this puzzle has been solved
Last edited by EDC on Sat Feb 17, 2018 5:53 pm; edited 1 time in total |
|
Back to top |
|
|
hennesf
Joined: 06 Jul 2016 Posts: 7
|
Posted: Sat Feb 17, 2018 5:53 pm Post subject: |
|
|
Hi EDC,
I can't believe it
Your idea:
EDIT: My files are included "in quotes" Yours NOT maybe this is the case
That's the solution. See screenshot
Thanks a lot to all who helped.
PS: Compiling without Include File not in quotes doesn't give an error |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Sat Feb 17, 2018 8:37 pm Post subject: |
|
|
you should have paid attention the the ERRORS in the code explorer.
Notice that the code explorer/IDE is (still) separated from the compiler. The compiler is more forgiving and adds the quotes. _________________ Mark |
|
Back to top |
|
|
EDC
Joined: 26 Mar 2014 Posts: 971
|
Posted: Sat Feb 17, 2018 8:49 pm Post subject: |
|
|
Mark have a good intention and this tip should be pick up by everyone
I hate when Bascom rise Red Error sign and always read it and want to fight with it
So time to time, I report that Code Explorer rise some errors..
Se today I report this three:
I know that after "Config TCIP", and choose W5100, some of the file from Bascom Includes are included but Bascom Code Explorer Stell riseses those three errors, and I keep faith that this can be fixed like always
Thoes three constants cannot be added into the code for tur off code explorer error showing because "redeclared constants" |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Sat Feb 17, 2018 9:26 pm Post subject: |
|
|
you need to show some code that will produce the error. otherwise i can not check it. _________________ Mark |
|
Back to top |
|
|
hennesf
Joined: 06 Jul 2016 Posts: 7
|
Posted: Sat Feb 17, 2018 9:39 pm Post subject: |
|
|
Hi albertsm,
you sure are right.
But wouldn't it be a good idea to synchronize failure reports between code explorer and compiler?
Maybe in a kind of manner that code explorer indicates a failure but compiler says something like " Failer ignored, see code explorer"
or similar?
By the way: Setting the quotes in front of the file name to be included, the ide completes the following quotes with entering next line.
Not in case of the last line of code.
There it must be a return.
Just by the way, you made a fascinating program. I love it.
Regards |
|
Back to top |
|
|
|