Compile error with IDE 2.1.1

A sketch that compiles on IDE 1.18.13 won't compile on 2.1.1 on Windows 10. Based on a previous thread, I turned on verbose error messages. The error is:

ERROR: need -from and -to arguments

The problem appears to be that my Windows username is "Hadland Technologies" with a space. So, the command line that generates the error is:

"C:\Users\Hadland Technologies\AppData\Local\Arduino15\packages\Intel\tools\arduino101load\2.3.0/arduino101load" -c "-from="C:\Users\Hadland" "Technologies\AppData\Local\Temp\arduino\sketches\0F8A2B9EC71C6BF3B00D70D9DEBF36F8/BLEXY_Table-20180526.ino.elf"" "-to="C:\Users\Hadland" "Technologies\AppData\Local\Temp\arduino\sketches\0F8A2B9EC71C6BF3B00D70D9DEBF36F8/../arduino101_sketch.debug.elf""

I really don't feel like changing my username to work around the problem. But, as a workaround, I'm able to compile & upload the sketch to my Arduino using IDE 1.18.13 and then use IDE 2.1.1 to do my testing. So, it's not a critical issue ... just an annoyance.

Thanks,

MikeP

Yes - that is just asking for trouble!

https://www.avrfreaks.net/s/topic/a5C3l000000UY8vEAG/t145039?comment=P-1182240

Two other possible workarounds:

  1. Move your User folder to be in a place without a space;
    eg, windows - How to set home directory in Win10 - Super User
  2. Move your sketch to a place without a space.

Agreed. I never do that. But someone else setup this laptop.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.