The Arduino IDE should remember its window size

I hope the title says it, but now IDE starts using its default size and position. Why cant it use the settings I used last time I closed it.

Its not really that bad of a problem.

It's a pain in the rear when any application INSISTS that it knows what is best for me. Why does the window need to pop up in the centered horizontally and vertically on one monitor? Why was that particular size chosen?

It really isn't that difficult to have an application remember where it is, and how big it is, when the window is closed. At least, on Windoze it isn't. I'm sure that config files could be used, to avoid using the registry on Windoze, to record the window size and position, and read to size the new window.

If doing so means dumping the Java VM interface, it's time to dump it.

I agree that it is a nice feature to have. Many apps do this, regardless of host OS.

In fact, I just did a test, and on the Mac, it DOES remember the window size and position when I quit the IDE and relaunch it.

I would encourage the OP to get a repeatable case documented and submit it as a bug report in the official spot. Now, if I could just remember where that is, I would post the link.

Anyone?

I know that on my Ubuntu install, you can set a few parameters in the config file to tell it the size (and position, IIRC) to start up as. I doubt that this issue is a result of using Java; its probably something that's been overlooked (whether by the Arduino IDE developers, or by the Processing developers - I don't know).

Hi,
it's simply a bug (that will probably never get fixed?)
http://code.google.com/p/arduino/issues/detail?id=78

All the code to save and restore the windowsize (and last sketch) is already in the IDE, a patch was posted on the devlopers mailing list, but somehow nobody cares to fix this.

Eberhard

Heh. I nice to know. I guess these kind of things happen with projects with volunteers.

But program is not version 1.0 or above if it has many bugs like this.

it's simply a bug (that will probably never get fixed?)
Google Code Archive - Long-term storage for Google Code Project Hosting.

All the code to save and restore the windowsize (and last sketch) is already in the IDE, a patch was posted on the devlopers mailing list, but somehow nobody cares to fix this.

@PaulS

It's a pain in the rear

@wayoda

probably never get fixed...nobody cares

@LMI

these kind of things happen with projects with volunteers

I mean no disrespect, but here's an idea: Instead of pi$$ing and moaning about things and waiting for the volunteers to fix the free software, maybe people can find a less stressful temporary workaround.

As a newcomer to Arduino, I was really, really annoyed that it didn't remember the last screen size. Really. (See Footnote.) I mean, it's all well and good for fluffalafagaus to say, "It's not really that bad of a problem," but that's not very sensitive to my sensibilities. Really.

I opened-resized-closed a few times. No joy. The stupid thing just wouldn't remember. The window (and the font) were ridiculously small on my Linux workstation.

I endured the annoyance for something like 15 minutes.

Then...

Here's what I found for arduino-0018 (Centos 5.5 Linux and Windows XP platforms):

I opend the Arduino IDE.

On the Files dropdown menu, I clicked on Preferences,and a dialog box opened.

It let me choose a bigger font size. Good deal! (My tired old eyes can use all the help they can get.)

And I really, really liked the "Use external editor" choice. (I haven't ever met an IDE with a built-in text editor that I really liked. Ever.)

But---there was nothing (really---nothing) about window size.

However...

Below the selectable stuff, there some text that tells us


[color=#666666]More preferences can be edited directly in the file[/color]
xxxxxxxxx
[color=#666666](edit only when Arduino is not running)[/color]

Where the path-and-file name "xxxxxxxxx" depends on where Arduino was installed on your platform.

I quit out of Arduino and opened that file with my favorite text editor.

I found lines like the following (they will both be in that file, but not necessarily one right after the other):


default.window.width=(whatever [i][color=#ff00ff]it[/color][/i] had decided)
default.window.height=(whatever [i][color=#ff00ff]it[/color][/i] had decided)

I changed them to values that I prefer. (I poked around in that file and changed a few other things too.)

Anyhow...

Now, I if I resize the Arduino window and quit out of Arduino, it still won't remember the last screen size (boo-hoo), but at least I can pick the default window size I prefer.

Maybe the volunteers will get it right for the next release. In the meanwhile, I can live with that.

Regards,

Dave

Footnote:
"You can tell the size of a man
by the size of the thing
that makes him mad."
---Adlai Stevenson

For what it's worth, if you always remember to close with ctrl-q it will remember your window size and position for multiple windows.

@Digger450

f you always remember to close with ctrl-q it will remember your window size and position

Hmmm---I could have saved some bandwidth if that were true on my system.

However...

It doesn't work that way with me on Linux with arduino-0018. It doesn't matter how I close the Arduino IDE. It still doesn't remember the last screen size. Always uses the defaults defined in preferences.txt. Always opens centered on my desktop.

Oh, well...

Regards,

Dave

Sorry to hear it doesn't work under Linux, I should have specified that I am using Windows. I really do hope it gets fixed soon even though I don't even think about hitting the X anymore.

@Digger450

I am using Windows

When I open Arduino (version 0018) on my Windows XP platform, it acts the same as it does on my Centos 5.5 Linux workstations:

It opens at a size determined by values of default.window.width and default.window.height in the Arduino preferences.txt file. It doesn't matter how I exit the IDE.

Bottom line: I always seem to be saying, "YMMV." (Your Mileage May Vary).

Regards,

Dave

For what it's worth, if you always remember to close with ctrl-q it will remember your window size and position for multiple windows.

With my XP machine, this works only if there is a program loaded into the IDE.

Now I should learn to use that ctrl-q. Probably easier to edit the defaults.

And the default window size setting does not work here. I tried to increase both without any effect.

Path to it here is "C:\Program Files\arduino-0018\lib"

You said you are using Windows XP, right?

Did you do a default installation? My preferences.txt ended up in C:\Documents and Settings\Dave\Application Settings\Arduino

(But I have no idea how it got there. I just unzipped arduino-0018.zip in a "sandbox" directory and started it up.)

I rarely use Windows for anything useful these days (I just use it to test various "cross-platform" distributions for some colleagues), and I don't know if there are other things that people should know.

What are the default.window values in your preferences.txt? What size does the Arduino window open with? What are your Windows screen resolution settings?

Did you exit from all Arduino IDE processes and edit the default.window lines in preferences.txt and then restart Arduino?

Beyond that, I'm afraid that I have nothing further to offer.

Regards,

Dave

Did you do a default installation? My preferences.txt ended up in C:\Documents and Settings\Dave\Application Settings\Arduino

(But I have no idea how it got there. I just unzipped arduino-0018.zip in a "sandbox" directory and started it up.)

Microsoft tries to spread everything around. Idiots and committees doing software, so nothing is done right from the beginning. I did not remember to look there.

no one sticks a gun to the developers head and forces them to put it there, infact I find it quite annoying as I sometimes still need older versions

To davekw7x

I found the preferences in "C:\Documents and Settings\LM\Application Data\Arduino" and changing settings there did work. This is better than nothing.

Thank you.

This is better than nothing.

I once asked my brother, "How's your wife, Charlie?" Charlie's response: "Better than nothing."

I was waiting for someone point out the irony: I accused another poster ("It's not really that bad of a problem") of not being "sensitive to my sensibilities," but here I was, offering (non-sympathetically) some information that did not solve (or even address) the original complaint.

My hope was that my response would be taken in the spirit of some good-natured ribbing rather than a real flame about pi$$ing and moaning.

My ramblings were offered in the hope of encouraging people to poke around and think about an approach to a "temporary workaround" for the real (legitimate) bug that was reported here.

I agree: I think that it's better than nothing.

Regards,

Dave

Footnote:
My brother, bless his heart, also used to say things like, "The worst day spent fishing is better than the best day at work."

My take on it is that, "Yeah, and the best day spent at work is better than poking yourself in the eye with a sharp stick---but just barely."

---davekw7x

I think there is no big problem here. IDE bugs or features have not stopped me doing some software. Largest problem in Arduino system, in my opinion, is debugging, or lack of it. There are times when single stepping to my code would help a lot. Checking many lines of serial messages is slow.