Trying to install workbench on Linux (Fecora 29); getting two errors:
Visual Studio Code [app]
Error: User did not grant permission.
at /tmp/.mount_PartictMTa65/resources/app.asar/node_modules/sudo-prompt/index.js:111:23
at ChildProcess.exithandler (child_process.js:310:5)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:961:16)
at Socket.stream.socket.on (internal/child_process.js:380:11)
at Socket.emit (events.js:182:13)
at Pipe._handle.close [as _onclose] (net.js:596:12)
and
Particle Workbench [extension]
TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received type undefined
at normalizeSpawnArguments (child_process.js:409:11)
at Object.spawn (child_process.js:534:38)
at module.exports (/tmp/.mount_PartictMTa65/resources/app.asar/node_modules/execa/index.js:205:26)
at VSCodeInstallerLinux.installExtension (/tmp/.mount_PartictMTa65/resources/app.asar/src/installers/vscode/base.js:80:17)
at process._tickCallback (internal/process/next_tick.js:68:7)
This happens whether I execute the .ApplImage as my own user or via sudo.
Okey, I tried installing the workbench as root; it apparently worked, but crapped out saying I shouldn't try to run it as superuser. So I tried running the .AppImage as my normal user; it says Visual Studio and the Workbench are installed, and then tried to install components. The end result:
Visual Studio Code [app]
Error: User did not grant permission.
at /tmp/.mount_ParticZRPAi0/resources/app.asar/node_modules/sudo-prompt/index.js:111:23
at ChildProcess.exithandler (child_process.js:310:5)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:961:16)
at Socket.stream.socket.on (internal/child_process.js:380:11)
at Socket.emit (events.js:182:13)
at Pipe._handle.close [as _onclose] (net.js:596:12)
and
Particle Workbench [extension]
TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received type undefined
at normalizeSpawnArguments (child_process.js:409:11)
at Object.spawn (child_process.js:534:38)
at module.exports (/tmp/.mount_ParticZRPAi0/resources/app.asar/node_modules/execa> /index.js:205:26)
at VSCodeInstallerLinux.installExtension (/tmp/.mount_ParticZRPAi0/resources/app.asar/src/installers/vscode/base.js:80:17)
I'm thinking I should UNinstall all of the stuff, and re-run the VS and .AppImage installs entirely as a non-privileged user.
Except.. how do I reliably and completely remove this stuff?
Actually, if there are any network restrictions then we will face these issues. The best solution is install particle workbench in VS code and flash a sample program after the device is connected to cloud or else reset the device and run the particle in DFU mode.
Instead of using sudo run in root terminal to avoid network permissions.
Meh. I got it to work, but then got distracted by some heavy work, and then getting unemployed, and never got back to update this. I don’t remember what I did, but it’s not an issue for me now, so I’m just going to close it.
My apologies for being to unresponsive and dilatory.