anilgkts / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

Tab characters in keywords.txt cause IDE to throw exception #895

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Edit a keywords.txt file in a library
2. Put a tab after a comment, eg. #<tab> whatever
3. Close and re-open the IDE

What is the expected output? What do you see instead?

First, once you have done that, a "#" symbol is now considered a keyword. That 
is, it is drawn in a different colour. That is not correct because a comment in 
the keywords.txt file should be just that: a comment.

Second, under certain circumstances, if you type a "#" at the start of the line 
in the IDE any text following the "#" suddenly disappears and the IDE throws a 
Java exception.

What version of the Arduino software are you using? On what operating
system?  Which Arduino board are you using?

Version 1.0 and also 0022

Mac OS/X

Board: not relevant, this is an editing issue

Please provide any additional information below.

Screenshots and more information below:

http://arduino.cc/forum/index.php/topic,95903.html

http://arduino.cc/forum/index.php/topic,102326.html

Confirmed by another user who suggested the fix of changing tabs to spaces 
INSIDE COMMENTS in the keywords.txt file(s).

Original issue reported on code.google.com by n...@gammon.com.au on 21 Apr 2012 at 9:57

GoogleCodeExporter commented 9 years ago
https://github.com/arduino/Arduino/issues/895#issuecomment-104256147

Original comment by federico...@gmail.com on 21 May 2015 at 12:42

GoogleCodeExporter commented 9 years ago

Original comment by federico...@gmail.com on 26 May 2015 at 3:26