onedrive problem

hi, I keep getting these error messages with ever program.

readlink C:\Users......\OneDrive\Documenten\ArduinoData\packages:the system can't find this file

cant compile for board Arduino/Genuino Uno

I don't know what to do please help me thank you.

The problem is caused by using the Arduino IDE with files located under the OneDrive folder.

The easiest solution is to not use the Arduino IDE with any files in OneDrive.

In this case it looks like you have your sketchbook located under OneDrive. You can change the location of the sketchbook folder via the Arduino IDE's File > Preferences > Sketchbook Location. Change that setting to any convenient folder on your computer as long as it's not in the OneDrive. The Arduino IDE does not automatically copy the contents of the previous sketchbook folder to the new location so you will need to do this manually.

If you do want to continue using the Arduino IDE with OneDrive, you may be interested to know that the bug has already been fixed in the beta build of the Arduino IDE, which you can download here:

but be aware that version of the Arduino IDE is primarily intended only for beta testing so you may have a higher chance of encountering bugs than you would using the production releases of the IDE.

To see details on the problem, steps that are being taken to fix it, and other possible workarounds that will allow you use the Arduino IDE with OneDrive, see:

thank you but when I install Arduino ide I cant chose the place were the files get stored

pert:
You can change the location of the sketchbook folder via the Arduino IDE's File > Preferences > Sketchbook Location.

it's not the sketchbook location but the Arduino preferences

What does that mean?

Ah, I see now. Are you using the Windows App Store version of the Arduino IDE?

yes

If you use the Arduino IDE in portable mode then the files currently stored in C:\Users......\OneDrive\Documenten\ArduinoData will instead be stored in the portable subfolder of the Arduino IDE installation folder. Unfortunately I believe it's difficult to use the Windows App Store version of the Arduino IDE in portable mode because Windows puts some protections on the folder where apps are installed. My recommendation is to install the regular version of the Arduino IDE, which you can download from here:

And then create a folder named portable under the Arduino IDE installation folder to run in portable mode, as described here:

thanks it works

IDE Preference file drive paths are being altered on Windows 10 to the OneDrive. Is there an explanation for this mechanism ?

I am using Windows 10.
Onedrive is disabled, but was enabled for a few days.
Arduino sketches are NOT under a Onedrive folder.
I am not using a portable version of the IDE.
The sketch folder path, and all other paths, have all been edited to point at the Arduino folder.
Each time I launch the IDE the preference file is changed internally so all folder paths again point at the Onedrive. I have repeated this experiment 5 times, and it continues to alter the preferences file.
The preference file location has been confirmed as the file source, i.e. it isn't reverting to some other directory.

I have reloaded the IDE, now running 1.8.10, the latest.

Something in the IDE seems to be remembering the Onedrive, or it is using a stored directory path from the Windows environment to re write the preference file on every IDE launch.

Any ideas would be appreciated. I have read through quite a few threads here and tried some ideas, nothing seems to prevent this over writing.