Go Down

Topic: My Wishes for Arduino IDE (Read 3321 times) previous topic - next topic

BrendaEM

1.) I wish we could resize the status area at the bottom of the screen to minimize it, so we can see more of our program vertically. Twenty percent of a 16x9 monitor is too much for a window that gets used for one minute out of an hour.

2.) I wish the serial monitor could be docked as a side bar attached to the main window. I am always having to raise it, but by then I've missed what I wanted to watch. I often use the serial monitor for debugging programs.

3.) I wish the temporary files were automatically deleted after a sketch was uploaded.

I have some minor quibbles, but these are just minor:

I wish the IDE didn't use all of its sketches from individual folders. All of my projects have been the one sketch folder only. Placing a single file inside a folder is just silly from a computer management point of view.

I kind of wish we had an icon with a preview of the first few lines of code, like a photo thumbnail. I know this is not easy to implement, but I have to open each file with the IDE to see what it does, and when I do I lose context of where I was from a file management stance.

We are going to need the option for larger main icons.

Otherwise, thanks for what we have,
BrendaEM



pert

I wish the IDE didn't use all of its sketches from individual folders. All of my projects have been the one sketch folder only. Placing a single file inside a folder is just silly from a computer management point of view.
The problem is that the Arduino IDE loads all source files from the folder as tabs. If you put multiple different sketches in a single folder then whenever you opened one it would open every other one as tabs and it wouldn't compile. In order to do this any other way they would need to add an additional file to hold the metadata of which files belonged to that project. At that point you're better off just putting each project in its own folder. You'll appreciate the usefulness of a project folder once you start writing more complex sketches that have multiple files. Now the requirement that the folder has the same name as the sketch I find completely arbitrary and don't understand why they do that.

I kind of wish we had an icon with a preview of the first few lines of code, like a photo thumbnail. I know this is not easy to implement, but I have to open each file with the IDE to see what it does, and when I do I lose context of where I was from a file management stance.
Just give your sketches descriptive names, then you'll know just by reading the name.

Delta_G

1.  You can.  Put your cursor near the bottom of the text area until it changes.  Click and drag to resize.
|| | ||| | || | ||  ~Woodstock

Please do not PM with technical questions or comments.  Keep Arduino stuff out on the boards where it belongs.

LeoTimmermans

Hey,

One way of debugging your scripts is to use Serial.println commands. After you get the script right, those may
be deleted or commented out.

It would be great if there were a buttom with which you can comment on/off (delete) Serial.println cmd (also the famous while (! Serial))

Tkx
Leo


pert

It would be great if there were a buttom with which you can comment on/off (delete) Serial.println cmd
Actually very easy to do this in your code with no overhead, only requires adding two lines and none of your debug prints need to be changed:
Code: [Select]
#define DEBUG true  //set to true for debug output, false for no debug ouput
#define Serial if(DEBUG)Serial

(also the famous while (! Serial))
Code: [Select]
while (DEBUG && !Serial);

This can easily be extended to allow multiple levels of debug ouput, still with no overhead:
Code: [Select]

#define DEBUG_ERROR true
#define DEBUG_ERROR_SERIAL if(DEBUG_ERROR)Serial

#define DEBUG_WARNING true
#define DEBUG_WARNING_SERIAL if(DEBUG_WARNING)Serial

#define DEBUG_INFORMATION true
#define DEBUG_INFORMATION_SERIAL if(DEBUG_INFORMATION)Serial

void setup() {
  Serial.begin(9600);
  while (!Serial);
  DEBUG_ERROR_SERIAL.println("This is an error message");
  DEBUG_WARNING_SERIAL.println("This is a warning message");
  DEBUG_INFORMATION_SERIAL.print("The state of pin 5 is ");
  DEBUG_INFORMATION_SERIAL.println(digitalRead(5) ? "HIGH" : "LOW");
  Serial.println("This is standard program output");
}

void loop() {}

You can use the boolean debug macros to switch on and off other parts of your code too.

BrendaEM

Thanks for the Debug suggestions, though putting any IF statement in a program will not make it any faster.

Are we not supposed to use const rather than #define?


No mention of resizing the feedback window?

ballscrewbob

#6
Sep 23, 2016, 10:32 pm Last Edit: Sep 23, 2016, 10:34 pm by Ballscrewbob
Feedback window (alias console window).

File

Preferences.

Click the "More Preferences" link

Should open a file menu

Double click the preferences file and it should open in notepad (or similar)
Change Console Lines from 4 (default) to something that you like.

Be careful with the settings in here as you can end up with a misbehaving IDE if you are not careful.
Suggest you make a copy of the preferences file FIRST in case you get carried away.



It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

pert

putting any IF statement in a program will not make it any faster.
The compiler is smart enough to just remove any code after an if(false) since it knows it will never be used so yes it does run faster and uses less memory when DEBUG is set to false then it does when DEBUG is set to true.

Are we not supposed to use const rather than #define?
Are we not supposed to use const rather than #define?
I assume you mean doing:
Code: [Select]
const boolean DEBUG=false;
instead of:
Code: [Select]
#define DEBUG false
Yes, that should work fine for the most part. I also try to use the preprocessor as infrequently as possible but there are some applications where DEBUG being a macro could be useful. For example, I usually do this so I don't forget to turn debug output off when I'm not using it:
Code: [Select]
#if DEBUG == true
#warning Debug output is on
#endif

That doesn't work if I use const instead of a macro.

Delta_G

No mention of resizing the feedback window?
You need to work on your reading skills.  See reply #2
|| | ||| | || | ||  ~Woodstock

Please do not PM with technical questions or comments.  Keep Arduino stuff out on the boards where it belongs.

BrendaEM

#9
Sep 28, 2016, 11:57 pm Last Edit: Sep 29, 2016, 12:23 am by BrendaEM
Delta_G, I reported your comment to the moderator. If I misread, that's one thing, but I did not ask for your judgement of my reading ability.

Aside from that...

It does not appear to accept any less than 4 in "console.lines=". If I type in less, and save it, it reverts.

From a UI standpoint, why inhibit the user?

[At times, on a 16x9 aspect screen, I wish I could use this space for viewing my code.]


pert

You could use an external editor(File > Preferences > Use external editor), which would allow the full screen to be used for editing your program.

Delta_G

Delta_G, I reported your comment to the moderator. If I misread, that's one thing, but I did not ask for your judgement of my reading ability.

Ok, so in addition to reading ability to need to grow some thicker skin and get a clue as to what sort of language the mods are here to police. They're looking for offensive personal attacks and profanity, not just something you don't like to hear. 

You said there was no mention of resizing the console, but I did tell you how. Maybe it wasn't exactly what you were looking for, but that's not what you said. Si maybe it's your communication skills that need work. It's hard to know.

Oh yeah and you're ugly and your mom dresses you funny. Lol. Report that and see where it goes.
|| | ||| | || | ||  ~Woodstock

Please do not PM with technical questions or comments.  Keep Arduino stuff out on the boards where it belongs.

BrendaEM

Please allow us to see a full screen of code.

BrendaEM

...

Oh yeah and you're ugly and your mom dresses you funny. Lol. Report that and see where it goes.
Yes, I reported you because I feel that your behavior is not in the best interest of the Arduino community.

BTW, I suspect your are correct, I am not that attractive. My mother died about 5 years ago from cancer. Although she was not a good parent, I took care of her as best as I could. The thing that was hard, was that before she died, she was only 84 pounds, that and with her petite body, she was child like. I was not emotionally prepared to take care of a parent that felt like a child.

Does what I wrote have any more place on this forum, than what you wrote?

AWOL

#14
Oct 25, 2016, 09:45 pm Last Edit: Oct 25, 2016, 09:50 pm by AWOL
Delta_G, I reported your comment to the moderator
. . . and this particular moderator is ignoring the report.
I've got better things to do with my time.

Keep it on-topic, people.

Go Up