Skip to content

2.0.4 does not start with "arduino.cli.daemon.debug": true settings #1942

Closed
@kittaakos

Description

@kittaakos

Describe the problem

When I enable this setting and start IDE2, the window never opens.

Arduino IDE 2.0.4
Starting backend process. PID: 61874
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///Users/a.kitta/.theia'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2023-03-07T14:36:59.265Z root INFO Backend Object.initialize: 5.9 ms [Finished 1.122 s after backend start]
2023-03-07T14:36:59.265Z root INFO Backend Object.configure: 5.0 ms [Finished 1.122 s after backend start]
2023-03-07T14:36:59.265Z root INFO Backend MessagingContribution.onStart: 2.1 ms [Finished 1.122 s after backend start]
2023-03-07T14:36:59.266Z root INFO Backend OSBackendApplicationContribution.configure: 0.4 ms [Finished 1.173 s after backend start]
2023-03-07T14:36:59.267Z root INFO Backend DefaultWorkspaceServer.onStart: 0.4 ms [Finished 1.173 s after backend start]
2023-03-07T14:36:59.268Z root INFO Backend PluginLocalizationBackendContribution.configure: 0.1 ms [Finished 1.173 s after backend start]
2023-03-07T14:36:59.269Z root WARN Backend PluginLocalizationBackendContribution.initialize took longer than the expected maximum 50 milliseconds: 51.2 ms [Finished 1.174 s after backend start]
2023-03-07T14:36:59.269Z root INFO Backend TaskBackendApplicationContribution.onStart: 0.3 ms [Finished 1.174 s after backend start]
2023-03-07T14:36:59.270Z root INFO Backend ElectronTokenBackendContribution.configure: 0.9 ms [Finished 1.175 s after backend start]
2023-03-07T14:36:59.270Z config INFO >>> Initializing CLI configuration...
2023-03-07T14:36:59.271Z root INFO Backend PluginDeployerContribution.initialize: 0.6 ms [Finished 1.175 s after backend start]
2023-03-07T14:36:59.271Z root INFO Backend ConfigServiceImpl.onStart: 0.9 ms [Finished 1.176 s after backend start]
2023-03-07T14:36:59.272Z config INFO Loading CLI configuration from /Users/a.kitta/.arduinoIDE/arduino-cli.yaml...
2023-03-07T14:36:59.272Z root INFO Backend WebviewBackendSecurityWarnings.initialize: 1.0 ms [Finished 1.177 s after backend start]
2023-03-07T14:36:59.272Z root INFO Backend ArduinoDaemonImpl.onStart: 1.6 ms [Finished 1.178 s after backend start]
2023-03-07T14:36:59.273Z root INFO Backend NodeFileUploadService.configure: 2.5 ms [Finished 1.178 s after backend start]
2023-03-07T14:36:59.273Z daemon INFO Starting daemon from /Applications/Arduino IDE 2.0.4.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/arduino-cli...
2023-03-07T14:36:59.273Z discovery-log INFO start
2023-03-07T14:36:59.273Z discovery-log INFO start new deferred
2023-03-07T14:36:59.273Z root INFO Backend HostedPluginLocalizationService.initialize: 0.5 ms [Finished 1.179 s after backend start]
2023-03-07T14:36:59.273Z root INFO Backend BoardDiscovery.onStart: 1.1 ms [Finished 1.180 s after backend start]
2023-03-07T14:36:59.273Z root INFO Backend FileDownloadEndpoint.configure: 1.0 ms [Finished 1.180 s after backend start]
2023-03-07T14:36:59.273Z root INFO Backend AuthenticationServiceImpl.onStart: 0.4 ms [Finished 1.181 s after backend start]
2023-03-07T14:36:59.273Z root INFO Backend PluginApiContribution.configure: 0.4 ms [Finished 1.182 s after backend start]
2023-03-07T14:36:59.274Z root INFO Backend HostedPluginReader.configure: 0.4 ms [Finished 1.182 s after backend start]
2023-03-07T14:36:59.274Z root INFO Backend HostedPluginReader.configure: 0.1 ms [Finished 1.182 s after backend start]
2023-03-07T14:36:59.275Z root INFO Backend PlotterBackendContribution.configure: 0.9 ms [Finished 1.183 s after backend start]
2023-03-07T14:36:59.277Z root INFO Theia app listening on http://localhost:52234.
2023-03-07T14:36:59.278Z root INFO Finished starting backend application: 4.8 ms [Finished 1.187 s after backend start]
2023-03-07T14:36:59.279Z root WARN The local plugin referenced by local-dir:/Users/a.kitta/.arduinoIDE/plugins does not exist.
2023-03-07T14:36:59.279Z root WARN The local plugin referenced by local-dir:/Users/a.kitta/.arduinoIDE/extensions does not exist.
2023-03-07T14:36:59.279Z root WARN The local plugin referenced by local-dir:/Users/a.kitta/.arduinoProIDE/plugins does not exist.
2023-03-07T14:36:59.299Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-07T14:36:59.299Z root INFO Resolved "cortex-debug" to a VS Code extension "cortex-debug@1.5.1" with engines:
2023-03-07T14:36:59.299Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-07T14:36:59.300Z root INFO Resolved "vscode-arduino-tools" to a VS Code extension "vscode-arduino-tools@0.0.2-beta.7" with engines:
2023-03-07T14:36:59.300Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-07T14:36:59.300Z root INFO Resolved "vscode-builtin-cpp" to a VS Code extension "cpp@1.52.1" with engines:
2023-03-07T14:36:59.300Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-07T14:36:59.300Z root INFO Resolved "vscode-builtin-json" to a VS Code extension "json@1.46.1" with engines:
2023-03-07T14:36:59.300Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-07T14:36:59.300Z root INFO Resolved "vscode-builtin-json-language-features" to a VS Code extension "json-language-features@1.46.1" with engines:
2023-03-07T14:36:59.300Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-07T14:36:59.300Z root INFO Resolved "vscode-language-pack-bg" to a VS Code extension "vscode-language-pack-bg@1.48.3" with engines:
2023-03-07T14:36:59.300Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-07T14:36:59.300Z root INFO Resolved "vscode-language-pack-cs" to a VS Code extension "vscode-language-pack-cs@1.53.2" with engines:
2023-03-07T14:36:59.300Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-07T14:36:59.300Z root INFO Resolved "vscode-language-pack-de" to a VS Code extension "vscode-language-pack-de@1.53.2" with engines:
2023-03-07T14:36:59.300Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-07T14:36:59.300Z root INFO Resolved "vscode-language-pack-es" to a VS Code extension "vscode-language-pack-es@1.53.2" with engines:
2023-03-07T14:36:59.300Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-07T14:36:59.300Z root INFO Resolved "vscode-language-pack-fr" to a VS Code extension "vscode-language-pack-fr@1.53.2" with engines:
2023-03-07T14:36:59.300Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-07T14:36:59.300Z root INFO Resolved "vscode-language-pack-hu" to a VS Code extension "vscode-language-pack-hu@1.48.3" with engines:
2023-03-07T14:36:59.300Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-07T14:36:59.301Z root INFO Resolved "vscode-language-pack-it" to a VS Code extension "vscode-language-pack-it@1.53.2" with engines:
2023-03-07T14:36:59.301Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-07T14:36:59.301Z root INFO Resolved "vscode-language-pack-ja" to a VS Code extension "vscode-language-pack-ja@1.53.2" with engines:
2023-03-07T14:36:59.301Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-07T14:36:59.301Z root INFO Resolved "vscode-language-pack-ko" to a VS Code extension "vscode-language-pack-ko@1.53.2" with engines:
2023-03-07T14:36:59.301Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-07T14:36:59.301Z root INFO Resolved "vscode-language-pack-nl" to a VS Code extension "vscode-language-pack-nl@1.48.3" with engines:
2023-03-07T14:36:59.301Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-07T14:36:59.301Z root INFO Resolved "vscode-language-pack-pl" to a VS Code extension "vscode-language-pack-pl@1.53.2" with engines:
2023-03-07T14:36:59.301Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-07T14:36:59.301Z root INFO Resolved "vscode-language-pack-pt-BR" to a VS Code extension "vscode-language-pack-pt-BR@1.53.2" with engines:
2023-03-07T14:36:59.301Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-07T14:36:59.301Z root INFO Resolved "vscode-language-pack-ru" to a VS Code extension "vscode-language-pack-ru@1.53.2" with engines:
2023-03-07T14:36:59.301Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-07T14:36:59.301Z root INFO Resolved "vscode-language-pack-tr" to a VS Code extension "vscode-language-pack-tr@1.53.2" with engines:
2023-03-07T14:36:59.301Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-07T14:36:59.301Z root INFO Resolved "vscode-language-pack-uk" to a VS Code extension "vscode-language-pack-uk@1.48.3" with engines:
2023-03-07T14:36:59.301Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-07T14:36:59.301Z root INFO Resolved "vscode-language-pack-zh-hans" to a VS Code extension "vscode-language-pack-zh-hans@1.53.2" with engines:
2023-03-07T14:36:59.306Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":["https://www.pjrc.com/teensy/td_156/package_teensy_index.json"]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"builtin":{"libraries":"/Users/a.kitta/Library/Arduino15/libraries"},"data":"/Users/a.kitta/Library/Arduino15","downloads":"/Users/a.kitta/Library/Arduino15/staging","user":"/Users/a.kitta/Documents/Arduino"},"library":{"enable_unsafe_install":false},"locale":"en","logging":{"file":"","format":"text","level":"info"},"metrics":{"addr":":9090","enabled":true},"output":{"no_color":false},"sketch":{"always_export_binaries":false},"updater":{"enable_notification":true}}
2023-03-07T14:36:59.306Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2023-03-07T14:36:59.306Z config INFO Loaded the CLI configuration.
2023-03-07T14:36:59.310Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///Users/a.kitta/Library/Arduino15","sketchDirUri":"file:///Users/a.kitta/Documents/Arduino","additionalUrls":["https://www.pjrc.com/teensy/td_156/package_teensy_index.json"],"network":"none","locale":"en"}
2023-03-07T14:36:59.310Z config INFO Validating the CLI configuration...
2023-03-07T14:36:59.312Z config INFO The CLI config is valid.
2023-03-07T14:36:59.312Z config INFO <<< Initialized the CLI configuration.
Restoring workspace roots: /Users/a.kitta/Documents/Arduino/sketch_feb27o/sketch_feb27o.ino
isTempSketch: false. Input was /Users/a.kitta/Documents/Arduino/sketch_feb27o/sketch_feb27o.ino
2023-03-07T14:36:59.327Z root INFO Resolve plugins list: 55.2 ms [Finished 1.235 s after backend start]
2023-03-07T14:36:59.332Z root INFO Deployed backend plugin "marus25.cortex-debug@1.5.1" from "/Applications/Arduino IDE 2.0.4.app/Contents/Resources/app/plugins/cortex-debug/extension/dist/extension.js": 4.5 ms [Finished 1.240 s after backend start]
2023-03-07T14:36:59.334Z root INFO Deployed backend plugin "arduino.vscode-arduino-tools@0.0.2-beta.7" from "/Applications/Arduino IDE 2.0.4.app/Contents/Resources/app/plugins/vscode-arduino-tools/extension/dist/bundle": 2.4 ms [Finished 1.243 s after backend start]
2023-03-07T14:36:59.344Z root INFO Deployed backend plugin "vscode.cpp@1.52.1" from "/Applications/Arduino IDE 2.0.4.app/Contents/Resources/app/plugins/vscode-builtin-cpp/extension": 9.9 ms [Finished 1.253 s after backend start]
2023-03-07T14:36:59.347Z root INFO Deployed backend plugin "vscode.json@1.46.1" from "/Applications/Arduino IDE 2.0.4.app/Contents/Resources/app/plugins/vscode-builtin-json/extension": 2.9 ms [Finished 1.256 s after backend start]
2023-03-07T14:36:59.347Z root INFO Deployed backend plugin "vscode.json-language-features@1.46.1" from "/Applications/Arduino IDE 2.0.4.app/Contents/Resources/app/plugins/vscode-builtin-json-language-features/extension/client/dist/jsonMain": 0.6 ms [Finished 1.256 s after backend start]
2023-03-07T14:36:59.428Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-bg@1.48.3" from "/Applications/Arduino IDE 2.0.4.app/Contents/Resources/app/plugins/vscode-language-pack-bg/extension": 80.2 ms [Finished 1.337 s after backend start]
2023-03-07T14:36:59.429Z daemon INFO INFO[0000] Using config file: /Users/a.kitta/.arduinoIDE/arduino-cli.yaml 
INFO[0000] arduino-cli version 0.31.0                   
INFO[0000] Executing `arduino-cli daemon`               

2023-03-07T14:36:59.430Z daemon INFO {"error":"Can't write debug log: available only in text format"}

2023-03-07T14:36:59.430Z daemon ERROR Error: {"error":"Can't write debug log: available only in text format"}
    at Socket.<anonymous> (/Applications/Arduino IDE 2.0.4.app/Contents/Resources/app/node_modules/arduino-ide-extension/lib/node/arduino-daemon-impl.js:203:42)
    at Socket.emit (node:events:394:28)
    at addChunk (node:internal/streams/readable:312:12)
    at readableAddChunk (node:internal/streams/readable:287:9)
    at Socket.Readable.push (node:internal/streams/readable:226:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2023-03-07T14:36:59.430Z daemon INFO Starting daemon from /Applications/Arduino IDE 2.0.4.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/arduino-cli...
2023-03-07T14:36:59.431Z daemon INFO Daemon exited with exit code: 7.
2023-03-07T14:36:59.507Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-cs@1.53.2" from "/Applications/Arduino IDE 2.0.4.app/Contents/Resources/app/plugins/vscode-language-pack-cs/extension": 79.6 ms [Finished 1.416 s after backend start]
2023-03-07T14:36:59.613Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-de@1.53.2" from "/Applications/Arduino IDE 2.0.4.app/Contents/Resources/app/plugins/vscode-language-pack-de/extension": 105.7 ms [Finished 1.522 s after backend start]
2023-03-07T14:36:59.614Z daemon INFO INFO[0000] Using config file: /Users/a.kitta/.arduinoIDE/arduino-cli.yaml 
INFO[0000] arduino-cli version 0.31.0                   
INFO[0000] Executing `arduino-cli daemon`               

2023-03-07T14:36:59.614Z daemon INFO {"error":"Can't write debug log: available only in text format"}

2023-03-07T14:36:59.615Z daemon ERROR Error: {"error":"Can't write debug log: available only in text format"}
    at Socket.<anonymous> (/Applications/Arduino IDE 2.0.4.app/Contents/Resources/app/node_modules/arduino-ide-extension/lib/node/arduino-daemon-impl.js:203:42)
    at Socket.emit (node:events:394:28)
    at addChunk (node:internal/streams/readable:312:12)
    at readableAddChunk (node:internal/streams/readable:287:9)
    at Socket.Readable.push (node:internal/streams/readable:226:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)

To reproduce

  • open IDE2,
  • execute the Open Settings (JSON) from the command palette,
  • set arduino.cli.daemon.debug to true:
  "arduino.cli.daemon.debug": true
  • restart IDE2

Expected behavior

It starts, and the gRPC logs are enabled.

Arduino IDE version

2.0.4

Operating system

macOS

Operating system version

12.6.3

Additional context

Breaking: arduino/arduino-cli#2003

Workaround: open ~/.arduinoIDE/settings.json on macOS and Linux and %userprofile%//settings.json on Windows and set arduino.cli.daemon.debug to false.

  "arduino.cli.daemon.debug": false

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

Labels

conclusion: resolvedIssue was resolvedtopic: CLIRelated to Arduino CLItopic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions