readlink C:\Users\gaine\OneDrive\Documents\Arduino\sketch_apr12b\sketch_apr12b.ino: The system cannot find the file specified.
Error compiling for board Arduino Nano.
This is confusing to me as I opened the sketch with the .ino file in the directory stated. The fact that the system is unable to find it is strange. Anybody know what's going on? I haven't been able to find anything that tackles this problem on the forum.
Someone reported the problem had appeared for them only after the last Windows update. There is (was?) a way to configure OneDrive to not cause this problem but I think it negates the "cloud" aspect of OneDrive or something like that (I don't use it). Arduino has been working on a fix for this problem:
The Arduino developer has been working on a fix for this issue but is not able to reproduce the original issue so is having difficulty knowing whether they have succeeded. If you want to help out to get this problem fixed and make sure that the next release of the Arduino IDE can be used with OneDrive it would be really helpful if you (or anyone who is able to reproduce this problem) could do some testing and give feedback:
Save a sketch somewhere under your OneDrive.
Compile it with the Arduino IDE to verify that the "readlink" error occurs"
Update on the OneDrive situation:
With some help from a community member, the Arduino developer was able to reproduce the issue. It turns out the problem was not fixed in the beta build of the Arduino IDE but if anyone wants to try the fix there are now a couple versions of the fixed arduino-builder tool available here:
The "arduino-builder-for-1.8.5.zip" is for Arduino IDE 1.8.5. "arduino-builder-for-1.9.0.zip" is for if you're using the beta build of the Arduino IDE. Just replace the file arduino-builder.exe in your Arduino IDE installation folder with the one you find inside the downloaded .zip file.
It sounds like this problem likely won't be resolved in a stable release version of the Arduino IDE until August at earliest because they need to wait for the 1.11 release of the Go programming language, which contains the fix and that release is scheduled for August 1, after which Arduino will need to make their own release of the Arduino IDE using the new Go version to compile the arduino-builder tool. At least there has been some progress on this issue even if the final solution is not soon to arrive.
Sketch uses 3964 bytes (12%) of program storage space. Maximum is 30720 bytes.
Global variables use 360 bytes (17%) of dynamic memory, leaving 1688 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x79
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x79
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x79
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x79
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x79
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x79
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x79
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x79
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x79
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x79
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.