arduino / arduino-pro-ide

The Arduino IDE for advanced users and developers. Experimental alpha version.
https://www.arduino.cc
Other
883 stars 72 forks source link

0.1 default color scheme sucks (near useless as everything is too dark) #310

Closed paschlie closed 4 years ago

paschlie commented 4 years ago

Open ide, and discover it's nearly illegible.

kittaakos commented 4 years ago

@paschlie, can you please attach a screenshot to the issue?

kittaakos commented 4 years ago

By default, the IDE comes with a (light) Arduino theme. Although we made a few UI changes, the theme should be the same. You can try to change it:

paschlie commented 4 years ago

The 0.1 IDE as installed this morning defaulted to Dark, I changed the appearance preference to “light”, and quit and restarted the app, now it just hangs with a blue colored circle circling around the center of the displayed window with nothing else appearing; so ended up just quitting and trying again after abut 15 minutes with the same results.

(It it helps, I’m running MACOS 10.13.6 on a 10 year old MacBook Pro, which doesn’t inherently support a “Dark” theme; and tried re-installing with the same results; so am continuing using the basic IDE 1.8.14 nightly build for the time being.)

On Aug 24, 2020, at 3:44 PM, Akos Kitta notifications@github.com wrote:

By default, the IDE comes with a (light) Arduino theme. Although we made a few UI changes, the theme should be the same. You can try to change it:

Open the Command Palette with Cltr/⌘+Shift+P, Type: Color Theme, Press enter, Select another theme. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arduino/arduino-pro-ide/issues/310#issuecomment-679328381, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOQAXGV7DYVV6F3WC7YBIVLSCK7KFANCNFSM4QJWQNDQ.

ubidefeo commented 4 years ago

@paschlie the IDE does not rely on the OS dark mode support but implements colour schemes. The process described by @kittaakos (command palette and theme) should just work in the app and even preview the theme. I haven't experienced the default to dark behaviour on Mojave or Catalina, but don't have a High Sierra machine to test on. I'll try and setup a VM for testing and see if I can reproduce

paschlie commented 4 years ago

Please find following two screen shots of this morning’s nightly builds attempting to start up, but apparently stuck doing something; with the second showing the apparent default to “dark” mode with the preference panel being displayed after shift/cmd/P being entered ... (so am at a loss on how to progress further?)

More... I installed 0.1.1 with the same results, but have enclosed a new screen shot #3 with the developer pane exposed in hopes it may provide a clue (I'm guessing there's some corrupted saved state somewhere in the file system which the app is getting confused by, but don't know where.)

Screen Shot 2020-08-26 at 11 25 25 AM Screen Shot 2020-08-26 at 11 24 59 AM Screen Shot 2020-08-26 at 12 50 19 PM

ubidefeo commented 4 years ago

@kittaakos can you look into this? any chance you have a High Sierra lying around?

kittaakos commented 4 years ago

From the attached screenshots, I do not see how this issue is related to the theme, but the app should load.

@paschlie, what do you see in the console when you start the app from a terminal:

/Applications/Arduino\ Pro\ IDE.app/Contents/MacOS/Arduino\ Pro\ IDE 

My output starts as:

root WARN please install @theia/electron@1.5.0-next.09ef844b as a runtime dependency
root INFO Configuration directory URI: 'file:///Users/akos.kitta/.theia'
root INFO Configuring to accept webviews on '.+.webview..+' hostname.
root INFO Theia app listening on http://localhost:64533.
config INFO Started watching the Arduino CLI configuration: '/Users/akos.kitta/.arduinoProIDE/arduino-cli.yaml'.
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /Applications/Arduino Pro IDE.app/Contents/Resources/app/plugins/vscode-builtin-cpp
root INFO Resolved "vscode-builtin-cpp" to a VS Code extension "cpp@1.44.2" with engines: { vscode: '*' }
root INFO Deploying backend plugin "cpp@1.44.2" from "/Applications/Arduino Pro IDE.app/Contents/Resources/app/plugins/vscode-builtin-cpp/extension"
root INFO Deploy plugins list took: 34.8 ms
root WARN Backend ConfigServiceImpl.onStart is slow, took: 64.3 ms
daemon INFO Starting daemon from /Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/arduino-cli...
daemon INFO Using config file: /Users/akos.kitta/.arduinoProIDE/arduino-cli.yaml
daemon INFO arduino-cli version 0.12.1
daemon INFO Setting up Prometheus telemetry on :9090/metrics
daemon INFO Starting daemon on TCP address 127.0.0.1:10000
daemon INFO Daemon is now listening on 127.0.0.1:10000...
daemon INFO Daemon is running.
root INFO Git askpass helper is listening on http://127.0.0.1:64538.
daemon INFO Checking signature [index: /Users/akos.kitta/Library/Arduino15/package_index.json, signaturefile: /Users/akos.kitta/Library/Arduino15/package_index.json.sig, trusted: true]
daemon INFO Checking signature [error: opening signature file: open /Users/akos.kitta/Library/Arduino15/package_esp32_index.json.sig: no such file or directory, index: /Users/akos.kitta/Library/Arduino15/package_esp32_index.json, signaturefile: /Users/akos.kitta/Library/Arduino15/package_esp32_index.json.sig]
daemon INFO Checking signature [error: opening signature file: open /Users/akos.kitta/Library/Arduino15/package_adafruit_index.json.sig: no such file or directory, index: /Users/akos.kitta/Library/Arduino15/package_adafruit_index.json, signaturefile: /Users/akos.kitta/Library/Arduino15/package_adafruit_index.json.sig]
daemon INFO Checking if CLI is Bundled into the IDE
daemon INFO Loading hardware from: /Users/akos.kitta/Library/Arduino15/packages
daemon INFO Loading package adafruit from: /Users/akos.kitta/Library/Arduino15/packages/adafruit/hardware
daemon INFO Loaded platform [platform: {ID:"adafruit:avr",Installed:"1.4.12",Latest:"1.4.13",Name:"Adafruit AVR Boards"}]
daemon INFO Loading package arduino from: /Users/akos.kitta/Library/Arduino15/packages/arduino/hardware
daemon INFO Loaded platform [platform: {ID:"arduino:avr",Installed:"1.8.3",Latest:"1.8.3",Name:"Arduino AVR Boards"}]
daemon INFO Loaded platform [platform: {ID:"arduino:mbed",Installed:"1.1.6",Latest:"1.1.6",Name:"Arduino nRF528x Boards (Mbed OS)"}]
daemon INFO Loaded platform [platform: {ID:"arduino:megaavr",Installed:"1.8.6",Latest:"1.8.6",Name:"Arduino megaAVR Boards"}]
daemon INFO Loaded platform [platform: {ID:"arduino:samd",Installed:"1.8.8",Latest:"1.8.8",Name:"Arduino SAMD Boards (32-bits ARM Cortex-M0+)"}]
daemon INFO Checking existence of 'tools' path: /Users/akos.kitta/Library/Arduino15/packages/arduino/tools
daemon INFO Loading tools from dir: /Users/akos.kitta/Library/Arduino15/packages/arduino/tools
paschlie commented 4 years ago

Mine was:

root WARN please install @theia/electron@1.5.0-next.09ef844b as a runtime dependency root INFO Configuration directory URI: 'file:///Users/paul/.theia' root WARN Backend Object.initialize is slow, took: 54.4 ms root WARN Backend ElectronTokenBackendContribution.configure is slow, took: 51.5 ms root INFO Configuring to accept webviews on '.+.webview..+' hostname. root WARN The directory referenced by local-dir:/Users/paul/.arduinoProIDE/plugins does not exist. root WARN The directory referenced by local-dir:/Users/paul/.arduinoProIDE/extensions does not exist. root WARN The directory referenced by local-dir:/Users/paul/.arduinoProIDE/plugins does not exist. root INFO Theia app listening on http://localhost:55517. config INFO Started watching the Arduino CLI configuration: '/Users/paul/.arduinoProIDE/arduino-cli.yaml'. root INFO PluginTheiaDirectoryHandler: accepting plugin with path /Applications/Arduino Pro IDE.app/Contents/Resources/app/plugins/vscode-builtin-cpp root INFO Resolved "vscode-builtin-cpp" to a VS Code extension "cpp@1.44.2" with engines: { vscode: '*' } config ERROR Error occurred when loading CLI config from /Users/paul/.arduinoProIDE/arduino-cli.yaml. YAMLException: can not read a block mapping entry; a multiline key may not be an implicit key at line 4, column 77: ... ndex/package_adafruit_index.json ^ at generateError (/Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/js-yaml/lib/js-yaml/loader.js:167:10) at throwError (/Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/js-yaml/lib/js-yaml/loader.js:173:9) at readBlockMapping (/Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/js-yaml/lib/js-yaml/loader.js:1073:9) at composeNode (/Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/js-yaml/lib/js-yaml/loader.js:1359:12) at readBlockMapping (/Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/js-yaml/lib/js-yaml/loader.js:1089:11) at composeNode (/Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/js-yaml/lib/js-yaml/loader.js:1359:12) at readDocument (/Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/js-yaml/lib/js-yaml/loader.js:1525:3) at loadDocuments (/Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/js-yaml/lib/js-yaml/loader.js:1588:5) at load (/Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/js-yaml/lib/js-yaml/loader.js:1614:19) at Object.safeLoad (/Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/js-yaml/lib/js-yaml/loader.js:1637:10) root WARN Backend ConfigServiceImpl.onStart is slow, took: 95.8 ms daemon INFO Starting daemon from /Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/arduino-cli... root INFO Deploying backend plugin "cpp@1.44.2" from "/Applications/Arduino Pro IDE.app/Contents/Resources/app/plugins/vscode-builtin-cpp/extension" root INFO Deploy plugins list took: 512.5 ms daemon INFO Error reading config file: While parsing config: yaml: line 4: could not find expected ':' daemon INFO Failed to start the daemon. daemon ERROR Error: Error reading config file: While parsing config: yaml: line 4: could not find expected ':' at Socket. (/Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/lib/node/arduino-daemon-impl.js:322:58) at Socket.emit (events.js:223:5) at addChunk (_stream_readable.js:309:12) at readableAddChunk (_stream_readable.js:290:11) at Socket.Readable.push (_stream_readable.js:224:10) at Pipe.onStreamRead (internal/stream_base_commons.js:181:23) daemon INFO Restarting daemon in 5 seconds... daemon INFO time="2020-08-27T07:32:35-04:00" level=error msg="Error reading config file: While parsing config: yaml: line 4: could not find expected ':'" daemon INFO Using config file: /Users/paul/.arduinoProIDE/arduino-cli.yaml daemon INFO arduino-cli version 0.12.1 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... daemon INFO Restarting daemon in 4 seconds... daemon INFO Restarting daemon in 3 seconds... daemon INFO Restarting daemon in 2 seconds... daemon INFO Restarting daemon in 1 seconds... daemon INFO Restarting daemon now... daemon INFO Starting daemon from /Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/arduino-cli... daemon INFO Error reading config file: While parsing config: yaml: line 4: could not find expected ':' daemon INFO Failed to start the daemon. daemon ERROR Error: Error reading config file: While parsing config: yaml: line 4: could not find expected ':' at Socket. (/Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/lib/node/arduino-daemon-impl.js:322:58) at Socket.emit (events.js:223:5) at addChunk (_stream_readable.js:309:12) at readableAddChunk (_stream_readable.js:290:11) at Socket.Readable.push (_stream_readable.js:224:10) at Pipe.onStreamRead (internal/stream_base_commons.js:181:23) daemon INFO Restarting daemon in 5 seconds... daemon INFO time="2020-08-27T07:32:41-04:00" level=error msg="Error reading config file: While parsing config: yaml: line 4: could not find expected ':'" daemon INFO Using config file: /Users/paul/.arduinoProIDE/arduino-cli.yaml daemon INFO arduino-cli version 0.12.1 daemon INFO Setting up Prometheus telemetry on :9090/metrics daemon INFO Starting daemon on TCP address 127.0.0.1:50051 daemon INFO Failed to listen on TCP port: 50051. Address already in use. daemon ERROR listen tcp :9090: bind: address already in use daemon ERROR Failed to listen on TCP port: 50051. Address already in use. daemon INFO Daemon exited with exit code: 5. daemon INFO Restarting daemon in 4 seconds... daemon INFO Restarting daemon in 3 seconds... daemon INFO Restarting daemon in 2 seconds... daemon INFO Restarting daemon in 1 seconds... daemon INFO Restarting daemon now... daemon INFO Starting daemon from /Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/arduino-cli... daemon INFO Error reading config file: While parsing config: yaml: line 4: could not find expected ':' daemon INFO Failed to start the daemon. daemon ERROR Error: Error reading config file: While parsing config: yaml: line 4: could not find expected ':' at Socket. (/Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/lib/node/arduino-daemon-impl.js:322:58) at Socket.emit (events.js:223:5) at addChunk (_stream_readable.js:309:12) at readableAddChunk (_stream_readable.js:290:11) at Socket.Readable.push (_stream_readable.js:224:10) at Pipe.onStreamRead (internal/stream_base_commons.js:181:23) daemon INFO Restarting daemon in 5 seconds... daemon INFO time="2020-08-27T07:32:47-04:00" level=error msg="Error reading config file: While parsing config: yaml: line 4: could not find expected ':'" daemon INFO Using config file: /Users/paul/.arduinoProIDE/arduino-cli.yaml daemon INFO arduino-cli version 0.12.1 daemon INFO Setting up Prometheus telemetry on :9090/metrics daemon INFO Starting daemon on TCP address 127.0.0.1:50051 daemon ERROR listen tcp :9090: bind: address already in use daemon ERROR Failed to listen on TCP port: 50051. Address already in use. daemon INFO Failed to listen on TCP port: 50051. Address already in use. daemon INFO Daemon exited with exit code: 5. daemon INFO Restarting daemon in 4 seconds... daemon INFO Restarting daemon in 3 seconds... daemon INFO Restarting daemon in 2 seconds... daemon INFO Restarting daemon in 1 seconds... daemon INFO Restarting daemon now... daemon INFO Starting daemon from /Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/arduino-cli... daemon INFO Error reading config file: While parsing config: yaml: line 4: could not find expected ':' daemon INFO Failed to start the daemon. daemon ERROR Error: Error reading config file: While parsing config: yaml: line 4: could not find expected ':' at Socket. (/Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/lib/node/arduino-daemon-impl.js:322:58) at Socket.emit (events.js:223:5) at addChunk (_stream_readable.js:309:12) at readableAddChunk (_stream_readable.js:290:11) at Socket.Readable.push (_stream_readable.js:224:10) at Pipe.onStreamRead (internal/stream_base_commons.js:181:23) daemon INFO Restarting daemon in 5 seconds... daemon INFO time="2020-08-27T07:32:52-04:00" level=error msg="Error reading config file: While parsing config: yaml: line 4: could not find expected ':'" daemon INFO Using config file: /Users/paul/.arduinoProIDE/arduino-cli.yaml daemon INFO arduino-cli version 0.12.1 daemon INFO Setting up Prometheus telemetry on :9090/metrics daemon INFO Starting daemon on TCP address 127.0.0.1:50051 daemon ERROR listen tcp :9090: bind: address already in use daemon INFO Failed to listen on TCP port: 50051. Address already in use. daemon ERROR Failed to listen on TCP port: 50051. Address already in use. daemon INFO Daemon exited with exit code: 5. daemon INFO Restarting daemon in 4 seconds... daemon INFO Restarting daemon in 3 seconds... daemon INFO Restarting daemon in 2 seconds... daemon INFO Restarting daemon in 1 seconds... root INFO Git askpass helper is listening on http://127.0.0.1:55528. daemon INFO Restarting daemon now... daemon INFO Starting daemon from /Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/arduino-cli... daemon INFO Error reading config file: While parsing config: yaml: line 4: could not find expected ':' daemon INFO Failed to start the daemon. daemon ERROR Error: Error reading config file: While parsing config: yaml: line 4: could not find expected ':' at Socket. (/Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/lib/node/arduino-daemon-impl.js:322:58) at Socket.emit (events.js:223:5) at addChunk (_stream_readable.js:309:12) at readableAddChunk (_stream_readable.js:290:11) at Socket.Readable.push (_stream_readable.js:224:10) at Pipe.onStreamRead (internal/stream_base_commons.js:181:23) daemon INFO Restarting daemon in 5 seconds... daemon INFO time="2020-08-27T07:32:58-04:00" level=error msg="Error reading config file: While parsing config: yaml: line 4: could not find expected ':'" daemon INFO Failed to listen on TCP port: 50051. Address already in use. daemon INFO Using config file: /Users/paul/.arduinoProIDE/arduino-cli.yaml daemon INFO arduino-cli version 0.12.1 daemon INFO Setting up Prometheus telemetry on :9090/metrics daemon INFO Starting daemon on TCP address 127.0.0.1:50051 daemon ERROR listen tcp :9090: bind: address already in use daemon ERROR Failed to listen on TCP port: 50051. Address already in use. daemon INFO Daemon exited with exit code: 5. root INFO Using Git [2.17.2 (Apple Git-113)] from the PATH. (/usr/bin/git) daemon INFO Restarting daemon in 4 seconds... 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/monaco 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: @theia/navigator root WARN Failed to resolve module: @types/p-queue root WARN Failed to resolve module: @theia/preferences 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/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/ncp 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/temp root WARN Failed to resolve module: @types/which root WARN Failed to resolve module: temp daemon INFO Restarting daemon in 3 seconds... root WARN Frontend commands.onStart is slow, took: 189.1 ms root WARN Frontend keybindings.onStart is slow, took: 1634.9 ms root WARN Frontend JsonSchemaStore.onStart is slow, took: 657.3 ms root WARN Frontend ElectronMenuContribution.onStart is slow, took: 257.9 ms root ERROR DefaultJsonSchemaContribution.registerSchemas is taking more than 500.0 ms, new schemas are ignored. root WARN Frontend WorkspaceService.onStart is slow, took: 917.7 ms daemon INFO Restarting daemon in 2 seconds... daemon INFO Restarting daemon in 1 seconds... daemon INFO Restarting daemon now... daemon INFO Starting daemon from /Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/arduino-cli... daemon INFO Error reading config file: While parsing config: yaml: line 4: could not find expected ':' daemon INFO Failed to start the daemon. daemon ERROR Error: Error reading config file: While parsing config: yaml: line 4: could not find expected ':' at Socket. (/Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/lib/node/arduino-daemon-impl.js:322:58) at Socket.emit (events.js:223:5) at addChunk (_stream_readable.js:309:12) at readableAddChunk (_stream_readable.js:290:11) at Socket.Readable.push (_stream_readable.js:224:10) at Pipe.onStreamRead (internal/stream_base_commons.js:181:23) daemon INFO Restarting daemon in 5 seconds... daemon INFO time="2020-08-27T07:33:07-04:00" level=error msg="Error reading config file: While parsing config: yaml: line 4: could not find expected ':'" daemon INFO Using config file: /Users/paul/.arduinoProIDE/arduino-cli.yaml daemon INFO arduino-cli version 0.12.1 daemon INFO Setting up Prometheus telemetry on :9090/metrics daemon INFO Starting daemon on TCP address 127.0.0.1:50051 daemon ERROR listen tcp :9090: bind: address already in use daemon ERROR Failed to listen on TCP port: 50051. Address already in use. daemon INFO Failed to listen on TCP port: 50051. Address already in use. daemon INFO Daemon exited with exit code: 5. daemon INFO Restarting daemon in 4 seconds... daemon INFO Restarting daemon in 3 seconds... daemon INFO Restarting daemon in 2 seconds... daemon INFO Restarting daemon in 1 seconds... daemon INFO Restarting daemon now... ^C

On Aug 27, 2020, at 3:23 AM, Akos Kitta notifications@github.com wrote:

From the attached screenshots, I do not see how this issue is related to the theme, but the app should load.

@paschlie https://github.com/paschlie, what do you see in the console when you start the app from a terminal:

/Applications/Arduino\ Pro\ IDE.app/Contents/MacOS/Arduino\ Pro\ IDE My output starts as:

root WARN please install @theia/electron@1.5.0-next.09ef844b as a runtime dependency root INFO Configuration directory URI: 'file:///Users/akos.kitta/.theia' root INFO Configuring to accept webviews on '.+.webview..+' hostname. root INFO Theia app listening on http://localhost:64533. config INFO Started watching the Arduino CLI configuration: '/Users/akos.kitta/.arduinoProIDE/arduino-cli.yaml'. root INFO PluginTheiaDirectoryHandler: accepting plugin with path /Applications/Arduino Pro IDE.app/Contents/Resources/app/plugins/vscode-builtin-cpp root INFO Resolved "vscode-builtin-cpp" to a VS Code extension "cpp@1.44.2" with engines: { vscode: '*' } root INFO Deploying backend plugin "cpp@1.44.2" from "/Applications/Arduino Pro IDE.app/Contents/Resources/app/plugins/vscode-builtin-cpp/extension" root INFO Deploy plugins list took: 34.8 ms root WARN Backend ConfigServiceImpl.onStart is slow, took: 64.3 ms daemon INFO Starting daemon from /Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/arduino-cli... daemon INFO Using config file: /Users/akos.kitta/.arduinoProIDE/arduino-cli.yaml daemon INFO arduino-cli version 0.12.1 daemon INFO Setting up Prometheus telemetry on :9090/metrics daemon INFO Starting daemon on TCP address 127.0.0.1:10000 daemon INFO Daemon is now listening on 127.0.0.1:10000... daemon INFO Daemon is running. root INFO Git askpass helper is listening on http://127.0.0.1:64538. daemon INFO Checking signature [index: /Users/akos.kitta/Library/Arduino15/package_index.json, signaturefile: /Users/akos.kitta/Library/Arduino15/package_index.json.sig, trusted: true] daemon INFO Checking signature [error: opening signature file: open /Users/akos.kitta/Library/Arduino15/package_esp32_index.json.sig: no such file or directory, index: /Users/akos.kitta/Library/Arduino15/package_esp32_index.json, signaturefile: /Users/akos.kitta/Library/Arduino15/package_esp32_index.json.sig] daemon INFO Checking signature [error: opening signature file: open /Users/akos.kitta/Library/Arduino15/package_adafruit_index.json.sig: no such file or directory, index: /Users/akos.kitta/Library/Arduino15/package_adafruit_index.json, signaturefile: /Users/akos.kitta/Library/Arduino15/package_adafruit_index.json.sig] daemon INFO Checking if CLI is Bundled into the IDE daemon INFO Loading hardware from: /Users/akos.kitta/Library/Arduino15/packages daemon INFO Loading package adafruit from: /Users/akos.kitta/Library/Arduino15/packages/adafruit/hardware daemon INFO Loaded platform [platform: {ID:"adafruit:avr",Installed:"1.4.12",Latest:"1.4.13",Name:"Adafruit AVR Boards"}] daemon INFO Loading package arduino from: /Users/akos.kitta/Library/Arduino15/packages/arduino/hardware daemon INFO Loaded platform [platform: {ID:"arduino:avr",Installed:"1.8.3",Latest:"1.8.3",Name:"Arduino AVR Boards"}] daemon INFO Loaded platform [platform: {ID:"arduino:mbed",Installed:"1.1.6",Latest:"1.1.6",Name:"Arduino nRF528x Boards (Mbed OS)"}] daemon INFO Loaded platform [platform: {ID:"arduino:megaavr",Installed:"1.8.6",Latest:"1.8.6",Name:"Arduino megaAVR Boards"}] daemon INFO Loaded platform [platform: {ID:"arduino:samd",Installed:"1.8.8",Latest:"1.8.8",Name:"Arduino SAMD Boards (32-bits ARM Cortex-M0+)"}] daemon INFO Checking existence of 'tools' path: /Users/akos.kitta/Library/Arduino15/packages/arduino/tools daemon INFO Loading tools from dir: /Users/akos.kitta/Library/Arduino15/packages/arduino/tools — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arduino/arduino-pro-ide/issues/310#issuecomment-681680030, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOQAXGXBDPYUT7ZNGEKXYALSCYCW5ANCNFSM4QJWQNDQ.

kittaakos commented 4 years ago

config ERROR Error occurred when loading CLI config from /Users/paul/.arduinoProIDE/arduino-cli.yaml. YAMLException: can not read a block mapping entry; a multiline key may not be an implicit key at line 4, column 77: ... ndex/package_adafruit_index.json ^ at generateError (/Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/js-yaml/lib/js-yaml/loader.js:167:10) at throwError (/Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/js-yaml/lib/js-yaml/loader.js:173:9) at readBlockMapping (/Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/js-yaml/lib/js-yaml/loader.js:1073:9)

This is very helpful. The app could not start, because the CLI configuration is invalid. Of course, this is a bug and the IDE must be smarter to handle invalid configuration files gracefully. The config is at ~/.arduinoProIDE/arduino-cli.yaml.

Can you please share its content with us. Mine looks like this:

cat ~/.arduinoProIDE/arduino-cli.yaml 
board_manager:
  additional_urls: [
    'https://dl.espressif.com/dl/package_esp32_index.json',
    'https://adafruit.github.io/arduino-board-index/package_adafruit_index.json'
  ]
daemon:
  port: "10000"
directories:
  data: /Users/akos.kitta/Library/Arduino15
  downloads: /Users/akos.kitta/Library/Arduino15/staging
  user: /Users/akos.kitta/Documents/Arduino
logging:
  file: ""
  format: text
  level: info
telemetry:
  addr: :9090
  enabled: true

There are two ways to solve this issue:

I can see another problem from the logs:

daemon INFO Setting up Prometheus telemetry on :9090/metrics
daemon INFO Starting daemon on TCP address 127.0.0.1:50051
daemon ERROR listen tcp :9090: bind: address already in use

There is a telemetry port that is used by some other application, so the CLI just crashes at runtime. Can you check what's running on port 9090 on your mac?

Thank you for your persistence in figuring out the root cause of the defect. 👍

paschlie commented 4 years ago

Mine was:

board_manager: additional_urls: https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json https://adafruit.github.io/arduino-board-index/package_adafruit_index.json

daemon: port: "50051" directories: data: /Users/paul/Library/Arduino15 downloads: /Users/paul/Library/Arduino15/staging user: /Users/paul/Documents/Arduino logging: file: "" format: text level: info telemetry: addr: :9090 enabled: true


I deleted the parent directory, and restarted 0.1.1, and it now runs again (thank you), it defaulted to the “Dark” theme (but changed it to “Arduino Light”), and restarted via terminal with the following output (the port issue seems to have taken care of itself?):

Last login: Thu Aug 27 07:46:55 on ttys000 ----------------------------------------------------------------------- 08:00:27 paul@Fusion:~$ /Applications/Arduino\ Pro\ IDE.app/Contents/MacOS/Arduino\ Pro\ IDE root WARN please install @theia/electron@1.5.0-next.09ef844b as a runtime dependency root INFO Configuration directory URI: 'file:///Users/paul/.theia' root INFO Configuring to accept webviews on '.+.webview..+' hostname. root WARN The directory referenced by local-dir:/Users/paul/.arduinoProIDE/plugins does not exist. root WARN The directory referenced by local-dir:/Users/paul/.arduinoProIDE/extensions does not exist. root WARN The directory referenced by local-dir:/Users/paul/.arduinoProIDE/plugins does not exist. root INFO Theia app listening on http://localhost:56082. config INFO Started watching the Arduino CLI configuration: '/Users/paul/.arduinoProIDE/arduino-cli.yaml'. root INFO PluginTheiaDirectoryHandler: accepting plugin with path /Applications/Arduino Pro IDE.app/Contents/Resources/app/plugins/vscode-builtin-cpp root INFO Resolved "vscode-builtin-cpp" to a VS Code extension "cpp@1.44.2" with engines: { vscode: '*' } root INFO Deploying backend plugin "cpp@1.44.2" from "/Applications/Arduino Pro IDE.app/Contents/Resources/app/plugins/vscode-builtin-cpp/extension" root INFO Deploy plugins list took: 66.6 ms root WARN Backend ConfigServiceImpl.onStart is slow, took: 137.3 ms daemon INFO Starting daemon from /Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/arduino-cli... daemon INFO Using config file: /Users/paul/.arduinoProIDE/arduino-cli.yaml daemon INFO arduino-cli version 0.12.1 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... daemon INFO Daemon is running. root INFO Git askpass helper is listening on http://127.0.0.1:56087. daemon INFO Checking signature [index: /Users/paul/Library/Arduino15/package_index.json, signaturefile: /Users/paul/Library/Arduino15/package_index.json.sig, trusted: true] daemon INFO Checking if CLI is Bundled into the IDE daemon INFO Loading hardware from: /Users/paul/Library/Arduino15/packages daemon INFO Loading package Seeeduino from: /Users/paul/Library/Arduino15/packages/Seeeduino/hardware daemon INFO Loaded platform [platform: {ID:"Seeeduino:samd",Installed:"1.7.9",Latest:"1.7.9"}] daemon INFO Checking existence of 'tools' path: /Users/paul/Library/Arduino15/packages/Seeeduino/tools daemon INFO Loading tools from dir: /Users/paul/Library/Arduino15/packages/Seeeduino/tools daemon INFO Loaded tool [tool: Version: 5.4.0] daemon INFO Loaded tool [tool: Version: 1.2.1] daemon INFO Loaded tool [tool: Version: 1.2.1] daemon INFO Loaded tool [tool: Version: 7-2017q4] daemon INFO Loaded tool [tool: Version: 1.7.0-arduino3] daemon INFO Loaded tool [tool: Version: 1.8.0-48-gb176eee] daemon INFO Loading package adafruit from: /Users/paul/Library/Arduino15/packages/adafruit/hardware daemon INFO Loaded platform [platform: {ID:"adafruit:samd",Installed:"1.6.0",Latest:"1.6.0"}] daemon INFO Checking existence of 'tools' path: /Users/paul/Library/Arduino15/packages/adafruit/tools daemon INFO Loading tools from dir: /Users/paul/Library/Arduino15/packages/adafruit/tools daemon INFO Loaded tool [tool: Version: 5.4.0] daemon INFO Loaded tool [tool: Version: 9-2019q4] daemon INFO Loading package arduino from: /Users/paul/Library/Arduino15/packages/arduino/hardware daemon INFO Loaded platform [platform: {ID:"arduino:samd",Installed:"1.8.8",Latest:"1.8.8",Name:"Arduino SAMD Boards (32-bits ARM Cortex-M0+)"}] daemon INFO Checking existence of 'tools' path: /Users/paul/Library/Arduino15/packages/arduino/tools daemon INFO Loading tools from dir: /Users/paul/Library/Arduino15/packages/arduino/tools daemon INFO Loaded tool [tool: Version: 4.5.0 Systems: [OS: i686-mingw32, OS: x86_64-apple-darwin, OS: x86_64-pc-linux-gnu, OS: i686-pc-linux-gnu, OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu, OS: all]] daemon INFO Loaded tool [tool: Version: 1.2.0 Systems: [OS: i686-mingw32, OS: x86_64-apple-darwin, OS: x86_64-pc-linux-gnu, OS: i686-pc-linux-gnu, OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu, OS: all]] daemon INFO Loaded tool [tool: Version: 1.2.1 Systems: [OS: i686-linux-gnu, OS: x86_64-linux-gnu, OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu, OS: i386-apple-darwin11, OS: i686-mingw32]] daemon INFO Loaded tool [tool: Version: 7-2017q4 Systems: [OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu, OS: i686-mingw32, OS: x86_64-apple-darwin, OS: x86_64-pc-linux-gnu, OS: i686-pc-linux-gnu]] daemon INFO Loaded tool [tool: Version: 1.7.0-arduino3 Systems: [OS: i686-mingw32, OS: x86_64-apple-darwin, OS: x86_64-pc-linux-gnu, OS: i686-pc-linux-gnu, OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu]] daemon INFO Loaded tool [tool: Version: 1.8.0-48-gb176eee Systems: [OS: i686-mingw32, OS: x86_64-apple-darwin, OS: x86_64-pc-linux-gnu, OS: i686-pc-linux-gnu, OS: arm-linux-gnueabihf]] daemon INFO Loaded tool [tool: Version: 0.10.0-arduino7 Systems: [OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu, OS: i386-apple-darwin11, OS: x86_64-linux-gnu, OS: i686-linux-gnu, OS: i686-mingw32]] daemon INFO Loading package builtin from: /Users/paul/Library/Arduino15/packages/builtin daemon INFO Checking existence of 'tools' path: /Users/paul/Library/Arduino15/packages/builtin/tools daemon INFO Loading tools from dir: /Users/paul/Library/Arduino15/packages/builtin/tools daemon INFO Loaded tool [tool: Version: 5.8-arduino11] daemon INFO Loaded tool [tool: Version: 1.0.0] daemon INFO Loading hardware from: /Users/paul/Documents/Arduino/hardware daemon INFO Loading package espressif from: /Users/paul/Documents/Arduino/hardware/espressif daemon INFO Loaded platform [platform: {ID:"espressif:esp32"}] daemon INFO Adding libraries dir [dir: /Users/paul/Documents/Arduino/libraries, location: user] daemon INFO Adding libraries dir [dir: /Users/paul/Library/Arduino15/packages/arduino/hardware/samd/1.8.8/libraries, location: platform] daemon INFO Adding libraries dir [dir: /Users/paul/Library/Arduino15/packages/Seeeduino/hardware/samd/1.7.9/libraries, location: platform] daemon INFO Adding libraries dir [dir: /Users/paul/Library/Arduino15/packages/adafruit/hardware/samd/1.6.0/libraries, location: platform] daemon INFO Adding libraries dir [dir: /Users/paul/Documents/Arduino/hardware/espressif/esp32/libraries, location: platform] root INFO Using Git [2.17.2 (Apple Git-113)] 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/monaco 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: @theia/navigator root WARN Failed to resolve module: @types/p-queue root WARN Failed to resolve module: @theia/preferences 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/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/ncp 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/temp root WARN Failed to resolve module: @types/which root WARN Failed to resolve module: temp daemon INFO Updating index [url: https://downloads.arduino.cc/packages/package_index.json] root INFO The CLI daemon process has started. root WARN Frontend keybindings.onStart is slow, took: 463.2 ms root INFO [nsfw-watcher: 12959] Started watching: /Users/paul/Documents/Arduino/Feather9x root INFO [nsfw-watcher: 12959] Started watching: /Users/paul/Documents/Arduino/Feather9x root WARN Frontend EditorNavigationContribution.onStart is slow, took: 155.4 ms discovery INFO Initialized attached boards and available ports. - Discovered boards: [] and available ports: [] 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... daemon INFO Checking signature [error: opening signature file: open /var/folders/_k/1xs6gysd6glfxlhnjfx8s5cw0000gn/T/822352411.sig: no such file or directory, index: /var/folders/_k/1xs6gysd6glfxlhnjfx8s5cw0000gn/T/822352411, signaturefile: /var/folders/_k/1xs6gysd6glfxlhnjfx8s5cw0000gn/T/822352411.sig] root INFO Attached boards and available ports changed: {"oldState":{"boards":[],"ports":[]},"newState":{"boards":[],"ports":[]}} root INFO [nsfw-watcher: 12959] Started watching: /Users/paul/.arduinoProIDE root INFO [ac5d4e27-df99-4b08-b4d3-06de5d14754a] Sync of 1 plugin took: 583.4 ms root INFO [nsfw-watcher: 12959] Started watching: /Users/paul/Documents/Arduino/Feather9x/Feather9x.ino daemon INFO Checking signature [index: /Users/paul/Library/Arduino15/package_index.json, signaturefile: /Users/paul/Library/Arduino15/package_index.json.sig, trusted: true] daemon INFO Loading hardware from: /Users/paul/Library/Arduino15/packages daemon INFO Loading package Seeeduino from: /Users/paul/Library/Arduino15/packages/Seeeduino/hardware daemon INFO Loaded platform [platform: {ID:"Seeeduino:samd",Installed:"1.7.9",Latest:"1.7.9"}] daemon INFO Checking existence of 'tools' path: /Users/paul/Library/Arduino15/packages/Seeeduino/tools daemon INFO Loading tools from dir: /Users/paul/Library/Arduino15/packages/Seeeduino/tools daemon INFO Loaded tool [tool: Version: 5.4.0] daemon INFO Loaded tool [tool: Version: 1.2.1] daemon INFO Loaded tool [tool: Version: 1.2.1] daemon INFO Loaded tool [tool: Version: 7-2017q4] daemon INFO Loaded tool [tool: Version: 1.7.0-arduino3] daemon INFO Loaded tool [tool: Version: 1.8.0-48-gb176eee] daemon INFO Loading package adafruit from: /Users/paul/Library/Arduino15/packages/adafruit/hardware daemon INFO Loaded platform [platform: {ID:"adafruit:samd",Installed:"1.6.0",Latest:"1.6.0"}] daemon INFO Checking existence of 'tools' path: /Users/paul/Library/Arduino15/packages/adafruit/tools daemon INFO Loading tools from dir: /Users/paul/Library/Arduino15/packages/adafruit/tools daemon INFO Loaded tool [tool: Version: 5.4.0] daemon INFO Loaded tool [tool: Version: 9-2019q4] daemon INFO Loading package arduino from: /Users/paul/Library/Arduino15/packages/arduino/hardware daemon INFO Loaded platform [platform: {ID:"arduino:samd",Installed:"1.8.8",Latest:"1.8.8",Name:"Arduino SAMD Boards (32-bits ARM Cortex-M0+)"}] daemon INFO Checking existence of 'tools' path: /Users/paul/Library/Arduino15/packages/arduino/tools daemon INFO Loading tools from dir: /Users/paul/Library/Arduino15/packages/arduino/tools daemon INFO Loaded tool [tool: Version: 4.5.0 Systems: [OS: i686-mingw32, OS: x86_64-apple-darwin, OS: x86_64-pc-linux-gnu, OS: i686-pc-linux-gnu, OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu, OS: all]] daemon INFO Loaded tool [tool: Version: 1.2.0 Systems: [OS: i686-mingw32, OS: x86_64-apple-darwin, OS: x86_64-pc-linux-gnu, OS: i686-pc-linux-gnu, OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu, OS: all]] daemon INFO Loaded tool [tool: Version: 1.2.1 Systems: [OS: i686-linux-gnu, OS: x86_64-linux-gnu, OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu, OS: i386-apple-darwin11, OS: i686-mingw32]] daemon INFO Loaded tool [tool: Version: 7-2017q4 Systems: [OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu, OS: i686-mingw32, OS: x86_64-apple-darwin, OS: x86_64-pc-linux-gnu, OS: i686-pc-linux-gnu]] daemon INFO Loaded tool [tool: Version: 1.7.0-arduino3 Systems: [OS: i686-mingw32, OS: x86_64-apple-darwin, OS: x86_64-pc-linux-gnu, OS: i686-pc-linux-gnu, OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu]] daemon INFO Loaded tool [tool: Version: 1.8.0-48-gb176eee Systems: [OS: i686-mingw32, OS: x86_64-apple-darwin, OS: x86_64-pc-linux-gnu, OS: i686-pc-linux-gnu, OS: arm-linux-gnueabihf]] daemon INFO Loaded tool [tool: Version: 0.10.0-arduino7 Systems: [OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu, OS: i386-apple-darwin11, OS: x86_64-linux-gnu, OS: i686-linux-gnu, OS: i686-mingw32]] daemon INFO Loading package builtin from: /Users/paul/Library/Arduino15/packages/builtin daemon INFO Checking existence of 'tools' path: /Users/paul/Library/Arduino15/packages/builtin/tools daemon INFO Loading tools from dir: /Users/paul/Library/Arduino15/packages/builtin/tools daemon INFO Loaded tool [tool: Version: 5.8-arduino11] daemon INFO Loaded tool [tool: Version: 1.0.0] daemon INFO Loading hardware from: /Users/paul/Documents/Arduino/hardware daemon INFO Loading package espressif from: /Users/paul/Documents/Arduino/hardware/espressif daemon INFO Loaded platform [platform: {ID:"espressif:esp32"}] daemon INFO Adding libraries dir [dir: /Users/paul/Documents/Arduino/libraries, location: user] daemon INFO Adding libraries dir [dir: /Users/paul/Library/Arduino15/packages/arduino/hardware/samd/1.8.8/libraries, location: platform] daemon INFO Adding libraries dir [dir: /Users/paul/Library/Arduino15/packages/adafruit/hardware/samd/1.6.0/libraries, location: platform] daemon INFO Adding libraries dir [dir: /Users/paul/Library/Arduino15/packages/Seeeduino/hardware/samd/1.7.9/libraries, location: platform] root INFO [hosted-plugin: 12967] PLUGIN_HOST(12967) starting instance daemon INFO Adding libraries dir [dir: /Users/paul/Documents/Arduino/hardware/espressif/esp32/libraries, location: platform] root INFO Starting language server /Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/arduino-language-server -clangd /Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/bin/clangd -cli /Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/arduino-cli root INFO <<< The layout has been successfully restored. daemon INFO Updating libraries index root INFO Changed application state from 'attached_shell' to 'initialized_layout'. root INFO [ac5d4e27-df99-4b08-b4d3-06de5d14754a][vscode.cpp]: Loaded contributions. root INFO [ac5d4e27-df99-4b08-b4d3-06de5d14754a] Load contributions of 1 plugin took: 9.2 ms root WARN Error: 'cpp' language is remapped from 'source.cpp.embedded.macro' to 'source.cpp' scope at TextmateRegistry.push../node_modules/@theia/monaco/lib/browser/textmate/textmate-registry.js.TextmateRegistry.mapLanguageIdToTextmateGrammar (file:///Applications/Arduino%20Pro%20IDE.app/Contents/Resources/app/lib/36.bundle.js:1408:26) at file:///Applications/Arduino%20Pro%20IDE.app/Contents/Resources/app/lib/58.bundle.js:8130:125 at pushContribution (file:///Applications/Arduino%20Pro%20IDE.app/Contents/Resources/app/lib/58.bundle.js:7988:32) at _loop_14 (file:///Applications/Arduino%20Pro%20IDE.app/Contents/Resources/app/lib/58.bundle.js:8130:21) at file:///Applications/Arduino%20Pro%20IDE.app/Contents/Resources/app/lib/58.bundle.js:8139:25 root WARN Error: a registered grammar configuration for 'cpp' language is overridden at TextmateRegistry.push../node_modules/@theia/monaco/lib/browser/textmate/textmate-registry.js.TextmateRegistry.registerGrammarConfiguration (file:///Applications/Arduino%20Pro%20IDE.app/Contents/Resources/app/lib/36.bundle.js:1446:26) at file:///Applications/Arduino%20Pro%20IDE.app/Contents/Resources/app/lib/58.bundle.js:8131:133 at pushContribution (file:///Applications/Arduino%20Pro%20IDE.app/Contents/Resources/app/lib/58.bundle.js:7988:32) at _loop_14 (file:///Applications/Arduino%20Pro%20IDE.app/Contents/Resources/app/lib/58.bundle.js:8131:21) at file:///Applications/Arduino%20Pro%20IDE.app/Contents/Resources/app/lib/58.bundle.js:8139:25 daemon INFO Checking signature [index: /Users/paul/Library/Arduino15/package_index.json, signaturefile: /Users/paul/Library/Arduino15/package_index.json.sig, trusted: true] daemon INFO Loading hardware from: /Users/paul/Library/Arduino15/packages daemon INFO Loading package Seeeduino from: /Users/paul/Library/Arduino15/packages/Seeeduino/hardware daemon INFO Loaded platform [platform: {ID:"Seeeduino:samd",Installed:"1.7.9",Latest:"1.7.9"}] daemon INFO Checking existence of 'tools' path: /Users/paul/Library/Arduino15/packages/Seeeduino/tools daemon INFO Loading tools from dir: /Users/paul/Library/Arduino15/packages/Seeeduino/tools daemon INFO Loaded tool [tool: Version: 5.4.0] daemon INFO Loaded tool [tool: Version: 1.2.1] daemon INFO Loaded tool [tool: Version: 1.2.1] daemon INFO Loaded tool [tool: Version: 7-2017q4] daemon INFO Loaded tool [tool: Version: 1.7.0-arduino3] daemon INFO Loaded tool [tool: Version: 1.8.0-48-gb176eee] daemon INFO Loading package adafruit from: /Users/paul/Library/Arduino15/packages/adafruit/hardware daemon INFO Loaded platform [platform: {ID:"adafruit:samd",Installed:"1.6.0",Latest:"1.6.0"}] daemon INFO Checking existence of 'tools' path: /Users/paul/Library/Arduino15/packages/adafruit/tools daemon INFO Loading tools from dir: /Users/paul/Library/Arduino15/packages/adafruit/tools daemon INFO Loaded tool [tool: Version: 5.4.0] daemon INFO Loaded tool [tool: Version: 9-2019q4] daemon INFO Loading package arduino from: /Users/paul/Library/Arduino15/packages/arduino/hardware daemon INFO Loaded platform [platform: {ID:"arduino:samd",Installed:"1.8.8",Latest:"1.8.8",Name:"Arduino SAMD Boards (32-bits ARM Cortex-M0+)"}] daemon INFO Checking existence of 'tools' path: /Users/paul/Library/Arduino15/packages/arduino/tools daemon INFO Loading tools from dir: /Users/paul/Library/Arduino15/packages/arduino/tools daemon INFO Loaded tool [tool: Version: 4.5.0 Systems: [OS: i686-mingw32, OS: x86_64-apple-darwin, OS: x86_64-pc-linux-gnu, OS: i686-pc-linux-gnu, OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu, OS: all]] daemon INFO Loaded tool [tool: Version: 1.2.0 Systems: [OS: i686-mingw32, OS: x86_64-apple-darwin, OS: x86_64-pc-linux-gnu, OS: i686-pc-linux-gnu, OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu, OS: all]] daemon INFO Loaded tool [tool: Version: 1.2.1 Systems: [OS: i686-linux-gnu, OS: x86_64-linux-gnu, OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu, OS: i386-apple-darwin11, OS: i686-mingw32]] daemon INFO Loaded tool [tool: Version: 7-2017q4 Systems: [OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu, OS: i686-mingw32, OS: x86_64-apple-darwin, OS: x86_64-pc-linux-gnu, OS: i686-pc-linux-gnu]] daemon INFO Loaded tool [tool: Version: 1.7.0-arduino3 Systems: [OS: i686-mingw32, OS: x86_64-apple-darwin, OS: x86_64-pc-linux-gnu, OS: i686-pc-linux-gnu, OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu]] daemon INFO Loaded tool [tool: Version: 1.8.0-48-gb176eee Systems: [OS: i686-mingw32, OS: x86_64-apple-darwin, OS: x86_64-pc-linux-gnu, OS: i686-pc-linux-gnu, OS: arm-linux-gnueabihf]] daemon INFO Loaded tool [tool: Version: 0.10.0-arduino7 Systems: [OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu, OS: i386-apple-darwin11, OS: x86_64-linux-gnu, OS: i686-linux-gnu, OS: i686-mingw32]] daemon INFO Loading package builtin from: /Users/paul/Library/Arduino15/packages/builtin daemon INFO Checking existence of 'tools' path: /Users/paul/Library/Arduino15/packages/builtin/tools daemon INFO Loading tools from dir: /Users/paul/Library/Arduino15/packages/builtin/tools daemon INFO Loaded tool [tool: Version: 5.8-arduino11] daemon INFO Loaded tool [tool: Version: 1.0.0] daemon INFO Loading hardware from: /Users/paul/Documents/Arduino/hardware daemon INFO Loading package espressif from: /Users/paul/Documents/Arduino/hardware/espressif daemon INFO Loaded platform [platform: {ID:"espressif:esp32"}] daemon INFO Adding libraries dir [dir: /Users/paul/Documents/Arduino/libraries, location: user] daemon INFO Adding libraries dir [dir: /Users/paul/Library/Arduino15/packages/adafruit/hardware/samd/1.6.0/libraries, location: platform] daemon INFO Adding libraries dir [dir: /Users/paul/Library/Arduino15/packages/Seeeduino/hardware/samd/1.7.9/libraries, location: platform] daemon INFO Adding libraries dir [dir: /Users/paul/Documents/Arduino/hardware/espressif/esp32/libraries, location: platform] daemon INFO Adding libraries dir [dir: /Users/paul/Library/Arduino15/packages/arduino/hardware/samd/1.8.8/libraries, location: platform] root INFO [hosted-plugin: 12967] PLUGIN_HOST(12967): PluginManagerExtImpl/init() root INFO [hosted-plugin: 12967] PLUGIN_HOST(12967): initializing(cpp@1.44.2 with /Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init.js) root INFO [ac5d4e27-df99-4b08-b4d3-06de5d14754a][vscode.cpp]: Started plugin. root INFO [ac5d4e27-df99-4b08-b4d3-06de5d14754a] Start of 1 plugin took: 541.5 ms root INFO [ac5d4e27-df99-4b08-b4d3-06de5d14754a] Sync of 0 plugins took: 34.2 ms root INFO [ac5d4e27-df99-4b08-b4d3-06de5d14754a] Load contributions of 0 plugins took: 0.0 ms root ERROR Arduino: 2020/08/27 08:01:53 Command error: /Applications/Arduino Pro IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/arduino-cli exit status 1 2020/08/27 08:01:53 ------------------------------BEGIN STDERR Error during build: platform not installed ------------------------------END STDERR

root INFO [ac5d4e27-df99-4b08-b4d3-06de5d14754a] Start of 0 plugins took: 85.3 ms root INFO Changed application state from 'initialized_layout' to 'ready'. root INFO Index has been updated. discovery INFO Updated discovered boards and available ports. - Discovered boards: [] and available ports: [{"protocol":"serial","address":"/dev/cu.PaulsRugby-BluetoothSer"},{"protocol":"serial","address":"/dev/cu.SGH-A847-SerialServer"},{"protocol":"serial","address":"/dev/cu.Bluetooth-Incoming-Port"}] root INFO Attached boards and available ports changed: {"oldState":{"boards":[],"ports":[]},"newState":{"boards":[],"ports":[{"protocol":"serial","address":"/dev/cu.PaulsRugby-BluetoothSer"},{"protocol":"serial","address":"/dev/cu.SGH-A847-SerialServer"},{"protocol":"serial","address":"/dev/cu.Bluetooth-Incoming-Port"}]}}


kittaakos commented 4 years ago

Mine was:

Thanks! That's incorrect YAML:

board_manager:
  additional_urls:
   - https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json
   - https://adafruit.github.io/arduino-board-index/package_adafruit_index.json

daemon:
  port: "50051"
directories:
  data: /Users/paul/Library/Arduino15
  downloads: /Users/paul/Library/Arduino15/staging
  user: /Users/paul/Documents/Arduino
logging:
  file: ""
  format: text
  level: info
telemetry:
  addr: :9090
  enabled: true

or

board_manager:
  additional_urls: [
   'https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json',
   'https://adafruit.github.io/arduino-board-index/package_adafruit_index.json'
   ]

daemon:
  port: "50051"
directories:
  data: /Users/paul/Library/Arduino15
  downloads: /Users/paul/Library/Arduino15/staging
  user: /Users/paul/Documents/Arduino
logging:
  file: ""
  format: text
  level: info
telemetry:
  addr: :9090
  enabled: true

are the correct format.

paschlie commented 4 years ago

How should additional board managers be added within the IDE?

On Aug 27, 2020, at 8:13 AM, Akos Kitta notifications@github.com wrote:

Mine was:

Thanks! That's incorrect YAML:

board_manager: additional_urls:

daemon: port: "50051" directories: data: /Users/paul/Library/Arduino15 downloads: /Users/paul/Library/Arduino15/staging user: /Users/paul/Documents/Arduino logging: file: "" format: text level: info telemetry: addr: :9090 enabled: true or

board_manager: additional_urls: [ 'https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json', 'https://adafruit.github.io/arduino-board-index/package_adafruit_index.json' ]

daemon: port: "50051" directories: data: /Users/paul/Library/Arduino15 downloads: /Users/paul/Library/Arduino15/staging user: /Users/paul/Documents/Arduino logging: file: "" format: text level: info telemetry: addr: :9090 enabled: true are the correct format.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arduino/arduino-pro-ide/issues/310#issuecomment-681909982, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOQAXGSGEODDM36GLANNTXTSCZEWTANCNFSM4QJWQNDQ.

kittaakos commented 4 years ago

How should additional board managers be added within the IDE?

Check this thread: https://github.com/arduino/arduino-pro-ide/issues/245#issue-613309368

It describes how to add additional, 3rd party URLs.

paschlie commented 4 years ago

Thank you, please consider the issue closed (with the exception of anything you may have discovered during the dialog which should be further refined).

On Aug 27, 2020, at 8:25 AM, Akos Kitta notifications@github.com wrote:

How should additional board managers be added within the IDE?

Check this thread: #245 (comment) https://github.com/arduino/arduino-pro-ide/issues/245#issue-613309368 It describes how to add additional, 3rd party URLs.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arduino/arduino-pro-ide/issues/310#issuecomment-681916346, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOQAXGSM7LM5AOIXF3TCBS3SCZGE7ANCNFSM4QJWQNDQ.

kittaakos commented 4 years ago

with the exception of anything you may have discovered during the dialog which should be further refined

Sure, I will create follow-ups regarding the CLI config issue.

I am so happy we managed to figure out the what was causig the problem. Thank you for giving us some time to find the solution.

(I am going to close the task once the follow-up GH issue exists.)

paschlie commented 4 years ago

As a closing thought, it might be nicer if third-party board support urls could be added within the ide’s board selection pane, as opposed to having to edit the configuration file (which if for some reason it may be added incorrectly, the application may prevented from starting up?).

On Aug 27, 2020, at 8:34 AM, Paul Schlie schlie@comcast.net wrote:

Thank you, please consider the issue closed (with the exception of anything you may have discovered during the dialog which should be further refined).

On Aug 27, 2020, at 8:25 AM, Akos Kitta <notifications@github.com mailto:notifications@github.com> wrote:

How should additional board managers be added within the IDE?

Check this thread: #245 (comment) https://github.com/arduino/arduino-pro-ide/issues/245#issue-613309368 It describes how to add additional, 3rd party URLs.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arduino/arduino-pro-ide/issues/310#issuecomment-681916346, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOQAXGSM7LM5AOIXF3TCBS3SCZGE7ANCNFSM4QJWQNDQ.

kittaakos commented 4 years ago

As a closing thought, it might be nicer if third-party board support urls could be added within the ide’s board selection pane

Sure, I already created an feature request in the upstream framework: https://github.com/eclipse-theia/theia/issues/8081

Also, please note, we used to have proper validation in the YAML editor: https://user-images.githubusercontent.com/1405703/75560969-7a0b6880-5a46-11ea-935c-2adba1b28d8a.gif

But we had to remove because of this issue on Windows: https://github.com/arduino/arduino-pro-ide/issues/293#issuecomment-667139709

kittaakos commented 4 years ago

Follow-up: https://github.com/arduino/arduino-pro-ide/issues/322