Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path to arduino-cli config should be enquoted #1723

Open
nkrkv opened this Issue Mar 15, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@nkrkv
Copy link
Member

nkrkv commented Mar 15, 2019

See: https://forum.xod.io/t/problems-compiling/2020

Environment

  • Scope: desktop IDE
  • Version: 0.28.1
  • OS: Windows 10

Steps to reproduce

  1. Start XOD on behalf of a user with spaces in the name (ex: C:\Users\Foo Bar Qux)
  2. Hit Deploy → Upload

Expected behavior

I can choose a board and upload successfully

Actual behavior

I get an error saying «… unknown command “Bar” for “arduino-cli” … »

How to fix

Enquote the argument of --config-file and other path arguments. Currently, the shell is asked to run (line breaks added for clarity):

"C:\Users\Foo Bar Qux\AppData\Local\Programs\XOD IDE\resources\arduino-cli.exe"
--config-file=C:\Users\Foo
Bar
Qux\AppData\Local\Temp\arduino-cli2t6a9o.cli-config.yml
config
dump
@cologman

This comment has been minimized.

Copy link

cologman commented Mar 15, 2019

Ok, as I am a newby, do I do that in the code I'm trying to compile or in the source code for XOD. If its the later it is well outside my pay grade.

@nkrkv

This comment has been minimized.

Copy link
Member Author

nkrkv commented Mar 15, 2019

The second case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.