Pages: [1]   Go Down
Author Topic: tabbed files keep showing as 'dirty'  (Read 906 times)
0 Members and 1 Guest are viewing this topic.
UK
Offline Offline
Shannon Member
****
Karma: 222
Posts: 12541
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In the Arduino IDE, each tab is named with the name of the file it contains. Where the tab has been modified and not saved, the tab shows an § character after the file name. This is what I call a 'dirty' file i.e. needing to be saved.

I've noticed that when I change focus between tabs, the newly selected tab always shows as 'dirty' regardless of whether I've made any changes to it, for any tab which has ever been modified in that editing session.

For example, let's suppose I open a sketch Foo.ino which has an associated file Bar.h: the IDE shows two tabs with Foo on the left and Bar.h on the right.
If I click between the tabs nothing unusual happens, each tab continues to show the file name without any §.

Now I make some change to Bar.h. When I make the change, a § character is appended to the tab name.
Then I click on the down arrow button to save it, and the § disappears.
Then I click on the Foo tab. It displays as normal.
Then I click back on the Bar.h tab. A § is immediately appended to the tab name. I haven't made any changes in this tab since saving it, so it should not be displayed with a §.

The same problem occurs with more tabs, and it seems that the problem affects any tab which has been edited during the life of the Arduino IDE window. If I close the IDE and restart, the problem goes away (until I make any changes).

Is this a known problem? It's not a big deal, but is inconvenient when I'm editing lots of files and want to make sure I've saved them all.

I'm using Arduino IDE 1.0.4 running on Windows 7 Pro 64-bit.
« Last Edit: April 01, 2013, 06:57:29 pm by PeterH » Logged

I only provide help via the forum - please do not contact me for private consultancy.

Offline Offline
Edison Member
*
Karma: 43
Posts: 1552
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm also using Arduino IDE 1.0.4 running on Windows 7 Pro 64-bit and I've seen that too. It may have occurred with earlier versions of the IDE as well.

Pete
Logged

Where are the Nick Gammons of yesteryear?

UK
Offline Offline
Shannon Member
****
Karma: 222
Posts: 12541
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I saw it with 1.0.1 too.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 197
Posts: 12744
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Is this a known problem?

It is now.  If you don't mind...
https://github.com/arduino/Arduino/issues
Logged

Pages: [1]   Go Up
Jump to: