View previous topic :: View next topic |
Author |
Message |
KenHorse
Joined: 16 Jul 2004 Posts: 523
|
Posted: Sat Oct 12, 2019 6:32 pm Post subject: Why does the IDE display an open file like this? |
|
|
I regularly get the display as shown in the attached graphic. Sometimes selecting a different open file (tab) fixes the display and sometimes it doesn't.
(FWIW, all declared variables are used in the code)
(BASCOM-AVR version : 2.0.8.2 ) |
|
Back to top |
|
|
AdrianJ
Joined: 16 Jan 2006 Posts: 2483 Location: Queensland
|
Posted: Sun Oct 13, 2019 11:47 pm Post subject: |
|
|
I had similar problems with the IDE formatting a while ago. Changing to Consolas font, as recommended by Mark, seems to have fixed it. Dont know if that problem still exists. _________________ Adrian Jansen
Computer language is a framework for creativity |
|
Back to top |
|
|
KenHorse
Joined: 16 Jul 2004 Posts: 523
|
Posted: Mon Oct 14, 2019 12:02 am Post subject: |
|
|
Thanks, that does seem to work but I hate that font......
(much prefer Arial)
Edit. I see Mark also suggested using monofont in Options. I checked it and Arial seems to be good with it.
thanks again to all |
|
Back to top |
|
|
KenHorse
Joined: 16 Jul 2004 Posts: 523
|
Posted: Tue Oct 15, 2019 4:15 pm Post subject: |
|
|
An update: The problem has returned, despite having Use Monofont checked and Consolas selected as font
I should point out that 2.0.8.1 (and earlier) doesn't do this, only 2.0.8.2 |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Tue Oct 15, 2019 6:59 pm Post subject: |
|
|
this is not instagram where you can upload some pictures. the idea is that you upload code, code that we can check/test. And reduced to a minimum but still demo the problem. the pictures are great as an addition.
it is not clear if you use project mode or normal mode. if you know about the feature 'show dead code' or not. and what your settings are. _________________ Mark |
|
Back to top |
|
|
KenHorse
Joined: 16 Jul 2004 Posts: 523
|
Posted: Tue Oct 15, 2019 7:17 pm Post subject: |
|
|
albertsm wrote: | this is not instagram where you can upload some pictures. the idea is that you upload code, code that we can check/test. And reduced to a minimum but still demo the problem. the pictures are great as an addition.
it is not clear if you use project mode or normal mode. if you know about the feature 'show dead code' or not. and what your settings are. |
Sorry Mark, I thought a screenshot would be helpful
A) Not a project - separate .bas files and many $includes
b) Show dead code was checked. I have now unchecked it and that seems to have fixed it. But I reiterate that it isn't a problem in 2.0.8.1
As a reminder, the code being shown in grey is not dead either. They are used variables |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Tue Oct 15, 2019 8:24 pm Post subject: |
|
|
screen shots can be of great help but not on their own.
A : ok that explains it. there is no relation so the IDE will look at these files on their own. each file is seen as its own project.
B : the Edit menu has this option. you could also look in the help 'what is new' to find such info.
2081 already had this option. you now use different settings probably. so that is why you now see this. but the main cause is that you use this in unrelated modules. _________________ Mark |
|
Back to top |
|
|
KenHorse
Joined: 16 Jul 2004 Posts: 523
|
Posted: Tue Oct 15, 2019 10:50 pm Post subject: |
|
|
Thanks Mark, it was Show Dead Code
I did look for "Dead Code" in the Help but it doesn't reference where the setting is to be found
FYI |
|
Back to top |
|
|
|