issues with BCC editor

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

issues with BCC editor

Post by HaWe »

scrolling through a code line containing "{ }" and ""( )" the editor muddles up the brackets and partially invents and inserts new ones at the end of line or in between!
afanofosc
Site Admin
Posts: 1256
Joined: 26 Sep 2010, 19:36
Location: Nashville, TN
Contact:

Re: issues with BCC editor

Post by afanofosc »

I have not seen such behavior in BricxCC. Can you provide me with a sample program and a screenshot of your editor Preferences?

John Hansen
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: issues with BCC editor

Post by HaWe »

aaahh...
still alive and not already retired...?^^

Joking aside -
Because I can't upload any images here, I reported everything there:
http://www.mindstormsforum.de/viewtopic ... 111#p60111
afanofosc
Site Admin
Posts: 1256
Joined: 26 Sep 2010, 19:36
Location: Nashville, TN
Contact:

Re: issues with BCC editor

Post by afanofosc »

It seems that the "highlight matching delimiters" feature does not work correctly when a line contains real tab characters rather than spaces. I will work on fixing this. In the meantime, you should be able to turn off this feature and then you won't have the problem with fantom delimiters being drawn over the real content. These are drawing glitches and the actual source code is not affected, btw.

John Hansen
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: issues with BCC editor

Post by HaWe »

thx, no problem, I don't need that feature anyway.
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: issues with BCC editor

Post by mattallen37 »

I actually had noticed this issue recently.

In addition to fixing it, could you add functionality to automatically convert the tab character into spaces (like when you press the tab key)? That way I could paste in someone else's code, which uses tabs, and have them become spaces automatically.
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
afanofosc
Site Admin
Posts: 1256
Joined: 26 Sep 2010, 19:36
Location: Nashville, TN
Contact:

Re: issues with BCC editor

Post by afanofosc »

I have uploaded a new test release which fixes the delimiter highlighting bug and includes .h and .nxh file extensions as valid NXC code for the compiler. It also corrects a serious problem from the previous test release where all the pre-NXT communication code was not linked into the application, which broke support for the RCX, Scout, Spybot, and Cybermaster. This was due to a build error that occurred when I built the last test release.

http://bricxcc.sourceforge.net/test_releases/

Grab the 20121101 zip.

I have not included any support for tab conversion on opening/saving a file. Maybe someday...

John Hansen
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests