arduino-cli daemon issues on Arch Linux #326
Description
Describe the bug
IDE isn't able to connect to the CLI daemon.
To Reproduce
Open Arduino Pro IDE
Expected behavior
Arduino Pro IDE connects to CLI daemon
Log
groowy@asus ~> /opt/arduino-pro-ide/Arduino\ Pro\ IDE-v0.0.6-linux-x64/arduino-pro-ide
root WARN please install @theia/electron@0.17.0-next.f5433ece as a runtime dependency
root WARN The directory referenced by local-dir:/home/groowy/.arduinoProIDE/plugins does not exist.
root WARN The directory referenced by local-dir:/home/groowy/.arduinoProIDE/extensions does not exist.
root WARN The directory referenced by local-dir:/home/groowy/.arduinoProIDE/plugins does not exist.
root INFO Configuring to accept webviews on '.+.webview..+' hostname.
root INFO Theia app listening on http://localhost:37437.
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /opt/arduino-pro-ide/Arduino Pro IDE-v0.0.6-linux-x64/resources/app/plugins/vscode-yaml
root INFO Resolved "vscode-yaml" to a VS Code extension "vscode-yaml@0.7.2" with engines: { vscode: '^1.31.0' }
config INFO Started watching the Arduino CLI configuration: '/home/groowy/.arduinoProIDE/arduino-cli.yaml'.
root INFO Deploying backend plugin "vscode-yaml@0.7.2" from "/opt/arduino-pro-ide/Arduino Pro IDE-v0.0.6-linux-x64/resources/app/plugins/vscode-yaml/extension/out/src/extension"
root INFO Deploy plugins list took: 34.3 ms
root WARN Backend ConfigServiceImpl.onStart is slow, took: 71.5 ms
daemon INFO Starting daemon from /usr/bin/arduino-cli...
daemon INFO Using config file: /home/groowy/.arduinoProIDE/arduino-cli.yaml
daemon INFO arduino-cli version 0.12.0-arch
daemon INFO Setting up Prometheus telemetry on :9090/metrics
daemon INFO Starting daemon on TCP address 127.0.0.1:50051
daemon INFO Daemon is now listening on 127.0.0.1:50051...
root INFO Git askpass helper is listening on http://127.0.0.1:42913.
root INFO Using Git [2.28.0] from the PATH. (/usr/bin/git)
root WARN Failed to resolve module: @types/body-parser
root WARN Failed to resolve module: @types/cookie
root WARN Failed to resolve module: @types/express
root WARN Failed to resolve module: @types/fs-extra
root WARN Failed to resolve module: @types/lodash.debounce
root WARN Failed to resolve module: @types/lodash.throttle
root WARN Failed to resolve module: @types/react
root WARN Failed to resolve module: @types/react-dom
root WARN Failed to resolve module: @types/react-virtualized
root WARN Failed to resolve module: @types/route-parser
root WARN Failed to resolve module: @types/ws
root WARN Failed to resolve module: @types/yargs
root WARN Failed to resolve module: @theia/editor
root WARN Failed to resolve module: @types/rimraf
root WARN Failed to resolve module: @types/tar-fs
root WARN Failed to resolve module: @types/touch
root WARN Failed to resolve module: @types/uuid
root WARN Failed to resolve module: @typefox/monaco-editor-core
root WARN Failed to resolve module: @theia/monaco
root WARN Failed to resolve module: @theia/preferences
root WARN Failed to resolve module: @theia/navigator
root WARN Failed to resolve module: @types/p-debounce
root WARN Failed to resolve module: @theia/electron
root WARN Failed to resolve module: @theia/messages
root WARN Failed to resolve module: @types/diff
root WARN Failed to resolve module: @types/connect
root WARN Failed to resolve module: @types/mime
root WARN Failed to resolve module: @types/serve-static
root WARN Failed to resolve module: @types/request
root WARN Failed to resolve module: @types/p-queue
root WARN Failed to resolve module: @types/dateformat
root WARN Failed to resolve module: @types/deepmerge
root WARN Failed to resolve module: @types/glob
root WARN Failed to resolve module: @types/google-protobuf
root WARN Failed to resolve module: @types/js-yaml
root WARN Failed to resolve module: @types/ps-tree
root WARN Failed to resolve module: @types/react-select
root WARN Failed to resolve module: @types/sinon
root WARN Failed to resolve module: @types/which
root WARN Collided keybinding is ignored; {"command":"actions.find","keybinding":"ctrl+f","when":null} collided with {"command":"core.find","keybinding":"ctrlcmd+f"}
root WARN Could not register keybinding:
{"command":"actions.find","keybinding":"ctrl+f","when":null}
Error: "ctrl+f" is in collision with something else [scope:0]
root WARN Collided keybinding is ignored; {"command":"passthrough","keybinding":"ctrl+f","context":"terminalActive"} collided with {"command":"terminal:find","keybinding":"ctrlcmd+f","context":"terminalActive"}
root WARN Could not register keybinding:
{"command":"passthrough","keybinding":"ctrl+f","context":"terminalActive"}
Error: "ctrl+f" is in collision with something else [scope:0]
root WARN Collided keybinding is ignored; {"command":"passthrough","keybinding":"ctrl+k","context":"terminalActive"} collided with {"command":"terminal:clear","keybinding":"ctrlcmd+k","context":"terminalActive"}
root WARN Could not register keybinding:
{"command":"passthrough","keybinding":"ctrl+k","context":"terminalActive"}
Error: "ctrl+k" is in collision with something else [scope:0]
root WARN Collided keybinding is ignored; {"command":"library-list-widget:toggle","keybinding":"ctrlcmd+shift+l"} collided with {"command":"pluginsView:toggle","keybinding":"ctrlcmd+shift+l"}
root WARN Could not register keybinding:
{"command":"library-list-widget:toggle","keybinding":"ctrlcmd+shift+l"}
Error: "ctrlcmd+shift+l" is in collision with something else [scope:0]
root WARN Frontend keybindings.onStart is slow, took: 435.5 ms
root INFO [nsfw-watcher: 42210] Started watching: /home/groowy/.arduinoProIDE
root INFO [nsfw-watcher: 42210] Started watching: /home/groowy/Arduino/IR_test
root INFO [nsfw-watcher: 42210] Started watching: /home/groowy/Arduino/IR_test
root INFO Board config changed: {"selectedBoard":{"name":"Arduino Nano","fqbn":"arduino:avr:nano","packageName":"Arduino AVR Boards","selected":false,"missing":false},"selectedPort":{"protocol":"serial","address":"/dev/ttyUSB3"}}
root INFO Board config changed: {"selectedBoard":{"name":"Arduino Nano","fqbn":"arduino:avr:nano","packageName":"Arduino AVR Boards","selected":false,"missing":false}}
root INFO Changed application state from 'init' to 'started_contributions'.
root INFO Changed application state from 'started_contributions' to 'attached_shell'.
root INFO >>> Restoring the layout state...
root INFO [873a2110-de56-4e5f-b683-7becb7a283ba] Sync of 1 plugin took: 341.7 ms
root INFO [nsfw-watcher: 42210] Started watching: /home/groowy/Arduino/IR_test/.theia/settings.json
root INFO [nsfw-watcher: 42210] Started watching: /home/groowy/Arduino/IR_test/IR_test.ino
root INFO [hosted-plugin: 42252] PLUGIN_HOST(42252) starting instance
root INFO <<< The layout has been successfully restored.
root INFO Changed application state from 'attached_shell' to 'initialized_layout'.
root INFO [873a2110-de56-4e5f-b683-7becb7a283ba][redhat.vscode-yaml]: Loaded contributions.
root INFO [873a2110-de56-4e5f-b683-7becb7a283ba] Load contributions of 1 plugin took: 32.3 ms
root INFO Starting language server /opt/arduino-pro-ide/Arduino Pro IDE-v0.0.6-linux-x64/resources/app/node_modules/arduino-ide-extension/build/arduino-language-server -clangd /opt/arduino-pro-ide/Arduino Pro IDE-v0.0.6-linux-x64/resources/app/node_modules/arduino-ide-extension/build/bin/clangd -cli /usr/bin/arduino-cli -fqbn arduino:avr:nano -board-name "Arduino Nano"
root INFO [hosted-plugin: 42252] PLUGIN_HOST(42252): PluginManagerExtImpl/init()
root INFO [hosted-plugin: 42252] PLUGIN_HOST(42252): initializing(vscode-yaml@0.7.2 with /opt/arduino-pro-ide/Arduino Pro IDE-v0.0.6-linux-x64/resources/app/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init.js)
root INFO [873a2110-de56-4e5f-b683-7becb7a283ba][redhat.vscode-yaml]: Started plugin.
root INFO [873a2110-de56-4e5f-b683-7becb7a283ba] Start of 1 plugin took: 537.1 ms
root INFO [873a2110-de56-4e5f-b683-7becb7a283ba] Sync of 0 plugins took: 2.4 ms
root INFO [873a2110-de56-4e5f-b683-7becb7a283ba] Load contributions of 0 plugins took: 0.1 ms
root INFO [873a2110-de56-4e5f-b683-7becb7a283ba] Start of 0 plugins took: 8.3 ms
root ERROR Arduino: 2020/09/01 18:12:35 Command error: /usr/bin/arduino-cli exit status 1
2020/09/01 18:12:35 ------------------------------BEGIN STDERR
Error during build: unable to find a sketch file in directory /tmp/ino2cpp-686848847
------------------------------END STDERR
root INFO Changed application state from 'initialized_layout' to 'ready'.
Desktop (please complete the following information):
- OS: Arch Linux
- Kernel version: 5.8.5-arch1-1
Additional context
I tried completely reinstalling the Arduino Pro IDE from the AUR provided by yay
(arduino-pro-ide version 0.0.6-1) which didn't result in any change of behavior and I'm suspecting that the daemon is stopped by the error listed in the log but I'm not sure what is causing it because when I list the directory /tmp/ino2cpp-686848847
it returns IR_test.ino IR_test.ino.cpp
which leads me to believe that the arduino-cli wants to access the files before they are created. Feel free to correct me because I don't have any idea what's going on and more importantly why is it going on.