Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Why does the IDE display an open file like this?

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
KenHorse

Bascom Member



Joined: 16 Jul 2004
Posts: 471

blank.gif
PostPosted: Sat Oct 12, 2019 6:32 pm    Post subject: Why does the IDE display an open file like this? Reply with quote

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
View user's profile
AdrianJ

Bascom Expert



Joined: 16 Jan 2006
Posts: 2457
Location: Queensland

australia.gif
PostPosted: Sun Oct 13, 2019 11:47 pm    Post subject: Reply with quote

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
View user's profile Visit poster's website
KenHorse

Bascom Member



Joined: 16 Jul 2004
Posts: 471

blank.gif
PostPosted: Mon Oct 14, 2019 12:02 am    Post subject: Reply with quote

Thanks, that does seem to work but I hate that font...... Very Happy

(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
View user's profile
KenHorse

Bascom Member



Joined: 16 Jul 2004
Posts: 471

blank.gif
PostPosted: Tue Oct 15, 2019 4:15 pm    Post subject: Reply with quote

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
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 4798
Location: Holland

blank.gif
PostPosted: Tue Oct 15, 2019 6:59 pm    Post subject: Reply with quote

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
View user's profile Visit poster's website
KenHorse

Bascom Member



Joined: 16 Jul 2004
Posts: 471

blank.gif
PostPosted: Tue Oct 15, 2019 7:17 pm    Post subject: Reply with quote

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
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 4798
Location: Holland

blank.gif
PostPosted: Tue Oct 15, 2019 8:24 pm    Post subject: Reply with quote

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
View user's profile Visit poster's website
KenHorse

Bascom Member



Joined: 16 Jul 2004
Posts: 471

blank.gif
PostPosted: Tue Oct 15, 2019 10:50 pm    Post subject: Reply with quote

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
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum