Manchester (England England)
Online
Brattain Member
Karma: 276
Posts: 25492
Solder is electric glue
|
 |
« Reply #15 on: July 06, 2012, 01:47:54 am » |
a sane editor (line numbers? We have that already, the small number at the bottom of the page is the line number of the current cursor. Why do you want all the lines numberd?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 218
Posts: 13896
Lua rocks!
|
 |
« Reply #16 on: July 06, 2012, 01:49:12 am » |
We want "go to line", Mike. So if you get an error on line 243 you can go to it, without just scrolling around looking at that number in the corner.
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Online
Brattain Member
Karma: 276
Posts: 25492
Solder is electric glue
|
 |
« Reply #17 on: July 06, 2012, 01:54:54 am » |
Error messages and line numbers are one out due to the editor starting at line 1 and the compiler at line 0. When you get an error the appropriate line is almost always highlighted, mind you that is not always where the error is it is just where the compilers ally gave up.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 218
Posts: 13896
Lua rocks!
|
 |
« Reply #18 on: July 06, 2012, 02:02:51 am » |
I usually get an error at line -1.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 218
Posts: 13896
Lua rocks!
|
 |
« Reply #19 on: July 06, 2012, 02:45:30 am » |
I think the OP has gone to ground. So we are just talking amongst ourselves here.
|
|
|
|
|
Logged
|
|
|
|
|
Berlin, Germany
Offline
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #20 on: July 06, 2012, 05:24:22 am » |
Have you clicked the "use external editor" button in preferences?
Hi, westf! Thanks for Your reply! Actually, I had tried that "external editor" mode previously (since it caught my interest), but it had confused me, since it prevents editing in the Arduino IDE itself - and thus I switched it off again. In that way, I have failed to realize that, when using this mode, the IDE does indeed reload the document each time a compile or compile/upload is started (unlike when the "external editor" mode is switched off). This mode is actually quite helpful if one knows about it. Although I really would prefer the IDE to play well with an external editor even in normal editing mode - and to reload a document automatically every time it was saved in an external editor (I believe that this should be standard behavior of a modern software). I started using that external editor mode now. Thanks for pointing this out to me! Best, Björn
|
|
|
|
|
Logged
|
|
|
|
|
Berlin, Germany
Offline
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #21 on: July 06, 2012, 05:40:32 am » |
We want "go to line", Mike. So if you get an error on line 243 you can go to it, without just scrolling around looking at that number in the corner.
Hey, Nick - Dear all, thanks for Your discussion! I wanted to chime in and say that I also think that implementing this line numbering on every line would be really great - for exactly the reason that Nick pointed out. Also, at the current moment, the IDE (version 1.0.1) seem to have this bug that it gives an offset in the line numbers (at least sometimes). Well, I am sure that the developer of IDE version 1 are still ironing out bugs here. I do think that the Arduino IDE as it is is very well suited for beginners, and that it does a very good job in abstracting away all the complexities that seem to historically have gotten into the way of the occasional tinkerer. But should that be a reason not to try to improve it? Trying to raise the standards (what I believe roddi has simply tried to suggest - even though he may not have expressed it well enough) doesn't need to get into the way of simplicity. Actually, I do think that, by trying to follow standards (such as standards of C++ etc. - what roddi has suggested), we would help the users later (imagine people would want to move away from Arduino, and start developing other software; following standards is always an important way to teach people). But I can't really comment on how hard it would be to implement - just wanted to chime in that I generally find it a good idea. Best regards! Björn
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Sr. Member
Karma: 19
Posts: 420
Always making something...
|
 |
« Reply #22 on: July 06, 2012, 09:41:21 am » |
Also, at the current moment, the IDE (version 1.0.1) seem to have this bug that it gives an offset in the line numbers (at least sometimes). Well, I am sure that the developer of IDE version 1 are still ironing out bugs here.
This is, or was, issue #907. http://code.google.com/p/arduino/issues/detail?id=907I submitted the patch to fix these line number bugs on May 6. Unfortunately, that was not early enough to make the 1.0.1 release on May 21, but it was committed to github on May 27, so this is fixed in the latest code and will be in 1.0.2.
|
|
|
|
|
Logged
|
|
|
|
|
Wisconsin
Offline
God Member
Karma: 4
Posts: 994
I LOVE THIS STUFF!!!!
|
 |
« Reply #23 on: July 06, 2012, 10:23:31 am » |
I think the OP has gone to ground. So we are just talking amongst ourselves here.
Yup, OPs argument was beaten. Dead thread
|
|
|
|
|
Logged
|
Accelerate to 88 miles per hour.
|
|
|
|
Berlin, Germany
Offline
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #24 on: July 06, 2012, 11:34:59 am » |
Also, at the current moment, the IDE (version 1.0.1) seem to have this bug that it gives an offset in the line numbers (at least sometimes). Well, I am sure that the developer of IDE version 1 are still ironing out bugs here.
This is, or was, issue #907. http://code.google.com/p/arduino/issues/detail?id=907I submitted the patch to fix these line number bugs on May 6. Unfortunately, that was not early enough to make the 1.0.1 release on May 21 Hi, Paul! Great news. Thanks for the work! Best regards! Björn
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 2
Posts: 140
|
 |
« Reply #25 on: October 18, 2012, 06:22:32 pm » |
I've implemented some changes to the current system. I did a post on how to modify them as well if you are interested. It's here: http://hellowoo.com/arduino/dark-ui-theme-syntax-highlighting/
|
|
|
|
|
Logged
|
for(i = 0, i < 820480075, i++){ Design(); Code(); delay(1000); } // hellowoo.com
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 26
Arduino rocks
|
 |
« Reply #26 on: October 18, 2012, 10:47:24 pm » |
I use ino and Sublime Text 2. They are a match made in heaven, Sublimes awesome fetures and then a simple "ino build; ino upload" to the command prompt.
|
|
|
|
|
Logged
|
|
|
|
|
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 71
Posts: 6820
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #27 on: October 19, 2012, 09:13:36 am » |
Thanks for putting me onto Sublime Text, that's a really nice editor. I've been using Notepad++ which is great but might try Sublime for a while and see how to goes.
I'll check out ino as well.
_____ Rob
|
|
|
|
|
Logged
|
|
|
|
|
|