Skip to content

overwrite existing sketch not possible #6416

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tofrnr opened this issue Jun 23, 2017 · 6 comments
Closed

overwrite existing sketch not possible #6416

tofrnr opened this issue Jun 23, 2017 · 6 comments
Labels
Component: IDE user interface The Arduino IDE's user interface Component: IDE The Arduino IDE IDE 1.9.x Beta Related to the Arduino IDE Beta Build Waiting for feedback More information must be provided before we can proceed
Milestone

Comments

@tofrnr
Copy link

tofrnr commented Jun 23, 2017

overwrite an existing sketch is not possible - :
given there is already a sketch test.ino in a folder test, e.g.
project\test\test.ino
and from the upper directory project\ I want to save a current opened sketch (perhaps named "test_2" ) now as "test" in order to overwrite the former one,
then the IDE instead creates a new subdir test inside the existing dir project\test
project\test\test
with a new file test.ino inside
project\test\test\test.ino
and the existing file
project\test\test.ino
keeps unchanged and undeleted.

That is weird, one must expect when saving a new file under the name of an existing one that simply overwriting will be possible, after the usual check-up window
"sketch file .... already exists - do you really want to overwrite?
yes - no - cancel".

(searching for "overwrite existing sketch" does not show up matching topics)

@tofrnr
Copy link
Author

tofrnr commented Jun 27, 2017

why has this not been tagged as " Component: IDE / Type: Bug " meanwhile by the developers?

@matthijskooijman
Copy link
Collaborator

I guess they sometimes want to get some things finished without being interrupted by all the issues that get reported in the meanwhile :-p I'll add the labels, and I was considering to have a look at this issue, since it might be related to some cleanups I did a while ago.

@matthijskooijman matthijskooijman added Component: IDE The Arduino IDE Component: IDE user interface The Arduino IDE's user interface labels Jun 27, 2017
@matthijskooijman
Copy link
Collaborator

I'm not sure yet whether this is a bug or a missing feature, though.

@tofrnr
Copy link
Author

tofrnr commented Jun 27, 2017

thank you for looking at it!

@johnmbarrett
Copy link

Ran into something similar to this today, but the behaviour does not match the OP's description. Instead, if you try to overwrite an existing .ino file, it turns that file into a folder, and saves the new file inside that folder, appending .ino to the original name.

Steps to reproduce:

1). Create a new sketch and save it as "test"
2). Close that sketch and create another new one
3). Select File->Save As
4). Go into the "test" folder in your Arduino code folder
5). Select "test.ino"
6). Press Save
7). Press Yes when prompted to overwrite

Expected result: "test.ino" is overwritten with the new sketch.

Actual result: a new folder inside "test" called "test.ino", which contains a file "test.ino.ino". You can repeat this process as many times as you like, getting files and folders with progressively more ".ino"s.

I was running Arduino 1.6.9 when I ran into this but it was still there when I updated to 1.8.5. Running Windows 7 x64, FWIW

facchinm added a commit to facchinm/Arduino that referenced this issue Dec 11, 2017
@facchinm
Copy link
Member

Hi @johnmbarrett ,
I pushed a fix for this problem in Beta branch and it's now available on https://www.arduino.cc/en/Main/Software#beta. Can you test it and report if it works as intended? Thank you!

@per1234 per1234 added the Waiting for feedback More information must be provided before we can proceed label Dec 11, 2017
facchinm added a commit to facchinm/Arduino that referenced this issue Jan 22, 2018
@per1234 per1234 added the IDE 1.9.x Beta Related to the Arduino IDE Beta Build label Apr 28, 2018
facchinm added a commit to facchinm/Arduino that referenced this issue May 8, 2018
cmaglie pushed a commit to facchinm/Arduino that referenced this issue May 8, 2018
cmaglie pushed a commit to facchinm/Arduino that referenced this issue May 9, 2018
@cmaglie cmaglie added this to the Release 1.8.6 milestone Aug 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE user interface The Arduino IDE's user interface Component: IDE The Arduino IDE IDE 1.9.x Beta Related to the Arduino IDE Beta Build Waiting for feedback More information must be provided before we can proceed
Projects
None yet
Development

No branches or pull requests

6 participants