mattairtech / ArduinoCore-samd

This is a fork from arduino/ArduinoCore-samd on GitHub. This will be used to maintain Arduino support for SAM D|L|C (M0+ and M4F) boards including the MattairTech Xeno Mini and the MT-D21E (see https://www.mattairtech.com/). It adds support for new devices like the D51, L21, C21, and D11. It also adds new clock sources, like a high speed crystal or internal oscillator.
104 stars 43 forks source link

Windows Max Path length being exceeded. #22

Open jwd83 opened 5 years ago

jwd83 commented 5 years ago

I have noticed an error on the Arduino windows platform running the latest beta where the path length can exceed the maximum length allowed by Windows. The problem appears to be with respect to all the option names being part of the cached object file name. The first build will generally work properly but the second time you build the project Arduino will complain that it can't find a file at the path relative to the build folder. The instance I had today the full path was around 275 characters in length while Windows allows only 260 (including the null terminator) I believe. The immediate workaround is restart the IDE each time OR adjusting the option names (I quickly went with the latter).

per1234 commented 5 years ago

Which version of the Arduino IDE are you using?

The problem you report has been resolved by https://github.com/arduino/arduino-builder/commit/ab41198a9a3a9da3e04ca493fd245d0e87b4785c. That fix is in the arduino-builder 1.4.1 used by Arduino IDE 1.8.7.

jwd83 commented 5 years ago

I'm on 1.8.5. I haven't made the jump to 1.8.7 yet.