unable to save a sketch

Hi all,

I got a problem today: when I wish to save a sketch (either an old one or a new one) I get the answer: "unable to save, file does not exist" which is precisely what I wish to do!!!

I tried to set all as Admin permission, launch ARDUINO with Admin permission, checked "preference"....

I also downloaded the last version(1.8.5) just in case, but I get the same message.

So I'm completely blocked, and I cannot work.

Some ideas??
I'm Working with W10 ...

Thanks in advance.

There are a few causes for permissions errors ranging from antivirus to network storage or corporate/edu systems and basic user privileges.

There are also two levels of Admin.

You failed to include any actual error messages so its a bit hard to guess.

Hi,

Here is the error message attached as .doc, I did not find any other way to attach a screen copy!

Today morning I re-installed everything and previously I removed all reference to Arduino in the files, but error still exist.

As far as I know I did not change anything on the antivirus (standard Windows 10 defender), and everything is run as "administrator"...

It is probably a configuration problem, but I failed to find it.

Thanks for help.

There is absolutely no valid reason ever for using .doc. If you need to post text then you should add it directly in your reply using code tags (</> button on the toolbar). If that exceeds the forum's 9000 character limit then attach it as a .txt file.

If by "screen copy" you mean a screenshot of text then don't do that!!! Posting images of text is extremely unhelpful.

OK,

So here is the exact message (in French but I don't think this is a problem!)

C/Users/Gerard/Documents/Arduino/sketch_dec29a
Fichier introuvable
Verifiez le nom du fichier et reessayez

All my sketch are in the "normal" Arduino folder, and the name of the sketch is the one given by Arduino, but I get the same problem if I open and re-save an old file...

All other softs have no problem to save the files, as far as I could ckeck.

So sorry but I don't speak french.

However thanks to GOOGLE it still looks like a permissions error OR you may have installed the actual IDE into the documents folder which I believe has caused some issues in the past.

If you have the IDE installed in the documents folder you would want to remove the IDE and re-install using the default locations.

Another option is to re-create the sketches folder outside of the documents folder and try that.
eg. C:\Sketches
Then use the preferences in the IDE itself to point to that folder.

If you did by accident install the whole IDE in the documents I have attaches a clean up document to help with re-install

CLEAN UP BEFORE INSTALLING ANOTHER COPY OF THE IDE OR ARDUINO CREATE.pdf (345 KB)

Thanks for answer.

  • no, I did not install the IDE in the Document folder, but quite normally, in the "Program Files" folder as proposed by the installer
  • my sketches folder is in the Documents folder, as done initially by the IDE
  • I did crate a "sketch" folder" directly on C as you suggested, and miraculously it works...

I work identically with Arduino IDE since many years, and this is the first time I have such problem.
Something must have been somehow corrupted in the "Documents/Arduino" folder. I shall save all my files, delete the folder and re-create it as before to check if it is still bad or OK.

Anyway, thanks for hint and also for the "cleaning" process.

If that last bit worked then it was a permissions error for sure.

Can be caused by antivirus on rare occasions but sometimes if there is more than one user on a computer can also cause it as one user may have inadvertently taken control of a folder including sub folders.

Other causes are a nasty bit of software that may have gotten into a computer for which a full and extensive scan and clean up would be required.
We can help with that too if you need but if you even suspect that as a cause do not trust your own security software. attaching the clean up procedure for that too just in case.

There are quite a few steps to ensure the computer is safe to use again.pdf (154 KB)