Skip to content

My sketch diasappeared #1017

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
3 tasks done
glistok opened this issue Jun 1, 2022 · 2 comments
Closed
3 tasks done

My sketch diasappeared #1017

glistok opened this issue Jun 1, 2022 · 2 comments
Assignees
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@glistok
Copy link

glistok commented Jun 1, 2022

Describe the problem

I am using the 2.0rc6 version of the IDE. I had opened and closed several of the example sketchs and had even modified a couple. They always opened just as I had last used them when starting the IDE program. Now, I created a file from scratch, a small one, and had opened and closed the editor several times. Once, when I opened the editor, there was a different sketch loaded and my new sketch was gone. I have looked in the arduino directory and done a search on a couple of unique words the sketch contained. Nothing was found. The sketch was just gone

To reproduce

I cannot reproduce the incident. Neither can I find the sketch file.

Expected behavior

I expected to see the sketch I created when I reopened the editor.

Arduino IDE version

2.0rc6

Operating system

Windows

Operating system version

11

Additional context

I may have missed a message that told me to save my sketch before closing the editor. I have not seen one, however. Also, I do have an extensive background in electronics and programming, I am, however, new to arduino IDE.

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@glistok glistok added the type: imperfection Perceived defect in any part of project label Jun 1, 2022
@per1234
Copy link
Contributor

per1234 commented Jun 1, 2022

Hi @glistok. Thanks for your report.

I may have missed a message that told me to save my sketch before closing the editor. I have not seen one, however.

There was a bug that caused there to be no message: #595, #862

I'm happy to tell you that the bug was fixed a couple of hours ago: #893

If you would like to try out the latest version of the Arduino IDE with the fix, the tester builds are available for download here:

https://github.com/arduino/arduino-ide/actions/runs/2420412792#artifacts

The fix will also be in the nightly build tomorrow (today's nightly build is from before the fix was made), which is available from these links:

https://github.com/arduino/arduino-ide#nightly-builds

Please let us know what your results are if you give it a try.

As for your lost sketch, you can search the temporary directory on your computer. Unsaved sketches are staged in folders that look something like this:

C:\Users\<user name>\AppData\Local\Temp\.arduinoIDE-unsaved202251-6272-1v0qrmq.gp08\sketch_jun1a

If looking for it with your file browser or command line, note that the C:\Users\<user name>\AppData folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 1, 2022
@per1234 per1234 added conclusion: duplicate Has already been submitted topic: code Related to content of the project itself labels Jun 1, 2022
@glistok
Copy link
Author

glistok commented Jun 1, 2022 via email

@per1234 per1234 self-assigned this Jun 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants