[issue] spaces in project path cause build errors (was: Workbench Build Errors)

As far as I know everything is working as it should and I’ve learned some things. Thanks much!

hooray! :tada::confetti_ball: glad we got you up and running and thanks again for working through the issues - very helpful as we evolve Particle Workbench :pray::+1:

let's try one last round of checks just to be extra-sure. run the Particle: Launch Compiler Shell command and in the terminal that launches run:

which particle

that should return a path like /home/<you>/.vscode/extensions/particle.particle-vscode-core-1.3.0/src/cli/bin/linux/amd64/particle.

then run:

which arm-none-eabi-gdb

and that should return a path like: /home/<you>/.particle/toolchains/gcc-arm/5.3.1/bin/arm-none-eabi-gdb

if either command above it does not return the expected output, please post the screengrab and error text here.

I am not sure if I’ve left some confidential information in this thread

i didn't notice anything

which particle did not work See below.

john@john-Precision-M4600:~/ProjectsforParticleIO/WorkspacesLocal/BlinkLED$ which particle
/usr/local/bin/particle
john@john-Precision-M4600:~/ProjectsforParticleIO/WorkspacesLocal/BlinkLED$

which particle did not work

run the Particle: Launch Compiler Shell command and in the terminal that launches run:

echo $PATH

and share the results :pray::+1:

john@john-Precision-M4600:~/ProjectsforParticleIO/WorkspacesLocal/BlinkLED$ which particle
/usr/local/bin/particle
john@john-Precision-M4600:~/ProjectsforParticleIO/WorkspacesLocal/BlinkLED$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/john/Programs/AndroidStudio/android-studio-ide-181.5056338-linux/android-studio/bin:/usr/local/gcc-arm/bin
john@john-Precision-M4600:~/ProjectsforParticleIO/WorkspacesLocal/BlinkLED$

how about:

echo $PARTICLE_MAKEFILE

again, for all of this you’ll need to be in the terminal instance spawned via Particle: Launch Compiler Shell

actually, i forgot: changes to .bashrc often require a full reboot to take effect - couldn’t hurt to try that as well :+1:

Rebooted computer. Then launched the compiler shell followed by the additional steps you stated.

β”‚ Available Targets
β”‚ clean-user
β”‚ clean-all
β”‚ clean-debug
β”‚ compile-user
β”‚ compile-all
β”‚ compile-debug
β”‚ flash-user
β”‚ flash-all
β”‚ flash-debug
β”‚
β”‚ Usage
β”‚ make -f $PARTICLE_MAKEFILE compile-user
β”‚ make -f $PARTICLE_MAKEFILE compile-user PLATFORM=electron
β”‚ DEVICE_OS_PATH=/path/to/device-os make -f $PARTICLE_MAKEFILE flash-user
β”‚
β”œβ”€β”€β”€β”€β”€++++
β”‚ NOTE: THIS TERMINAL WILL RELAUNCH AFTER CHANGING WORKSPACE SETTINGS
└─────++++
john@john-Precision-M4600:~/ProjectsforParticleIO/WorkspacesLocal/BlinkLED$ which particle
/usr/local/bin/particle
john@john-Precision-M4600:~/ProjectsforParticleIO/WorkspacesLocal/BlinkLED$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/john/Programs/AndroidStudio/android-studio-ide-181.5056338-linux/android-studio/bin:/usr/local/gcc-arm/bin
john@john-Precision-M4600:~/ProjectsforParticleIO/WorkspacesLocal/BlinkLED$ echo $PARTICLE_MAKEFILE
/home/john/.particle/toolchains/buildscripts/1.5.0/Makefile
john@john-Precision-M4600:~/ProjectsforParticleIO/WorkspacesLocal/BlinkLED$

I'm no expert here, but would having this in your PATH conflict with gcc-arm used by Workbench?

Doesn't Workbench use?:

~/.particle/toolchains/gcc-arm/5.3.1/bin

we prepend a number of locations to your $PATH when launching our tasks (Particle: Compile application (local), etc) and terminals (Particle: Launch Compiler Shell and Particle: Launch CLI) so our bins should take precedence.

i’m stumped as to why echo $PATH is not returning our locations in this case, unfortunately.

one last thing to try is run Particle: Launch CLI and then in that terminal, run echo $PATH - that should include something like /home/<you>/.vscode/extensions/particle.particle-vscode-core-1.3.0/src/cli/bin/linux/amd64

but if it does not all i can think is that there’s something odd about .bashrc (perhaps it’s sourcing another file which is messing w/ PATH) and the shell env in general. sorry!

m_m, it does return what you expect.

bash-4.4$ echo $PATH
/home/john/.vscode/extensions/particle.particle-vscode-core-1.3.0/src/cli/bin/linux/amd64:/home/john/.particle/toolchains/buildtools/1.0.3:/home/john/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/gcc-arm/bin
bash-4.4$

:thinking: hm. ok, then i think i might have a fix to ship w/ the next update. thanks again! :+1:

How will I know when and how to update my platform? Will the update be part of the Particle Extensions?

unless you’ve disabled it in your settings, VSCode will periodically check for extension updates and automatically download new versions when they’re available :+1: