Skip to content

Serial monitor throws error when trying to retrieve the enumerateMonitorPortSettings and the platform is not installed #1974

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
kittaakos opened this issue Mar 22, 2023 · 0 comments · Fixed by #1965
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself topic: serial monitor Related to the Serial Monitor type: imperfection Perceived defect in any part of project

Comments

@kittaakos
Copy link
Contributor

kittaakos commented Mar 22, 2023

Describe the problem

When I have a fresh installation and select my Zero board, the serial monitor throws an error. It's in the logs:

2023-03-22T09:21:08.884Z root ERROR Request startMonitor failed with error: 5 NOT_FOUND: Unknown FQBN: platform arduino:samd is not installed Error: 5 NOT_FOUND: Unknown FQBN: platform arduino:samd is not installed
    at Object.callErrorFromStatus (/Users/a.kitta/dev/git/arduino-ide/node_modules/@grpc/grpc-js/build/src/call.js:31:19)
    at Object.onReceiveStatus (/Users/a.kitta/dev/git/arduino-ide/node_modules/@grpc/grpc-js/build/src/client.js:190:52)
    at Object.onReceiveStatus (/Users/a.kitta/dev/git/arduino-ide/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:365:141)
    at Object.onReceiveStatus (/Users/a.kitta/dev/git/arduino-ide/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:328:181)
    at /Users/a.kitta/dev/git/arduino-ide/node_modules/@grpc/grpc-js/build/src/call-stream.js:187:78
    at processTicksAndRejections (node:internal/process/task_queues:78:11)
for call at
    at ServiceClientImpl.makeUnaryRequest (/Users/a.kitta/dev/git/arduino-ide/node_modules/@grpc/grpc-js/build/src/client.js:160:30)
    at ServiceClientImpl.enumerateMonitorPortSettings (/Users/a.kitta/dev/git/arduino-ide/node_modules/@grpc/grpc-js/build/src/make-client.js:105:19)
    at res (/Users/a.kitta/dev/git/arduino-ide/arduino-ide-extension/lib/node/monitor-service.js:348:20)
    at new Promise (<anonymous>)
    at MonitorService.portMonitorSettings (/Users/a.kitta/dev/git/arduino-ide/arduino-ide-extension/lib/node/monitor-service.js:347:27)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async MonitorService.start (/Users/a.kitta/dev/git/arduino-ide/arduino-ide-extension/lib/node/monitor-service.js:110:33)
    at async MonitorManager.startMonitor (/Users/a.kitta/dev/git/arduino-ide/arduino-ide-extension/lib/node/monitor-manager.js:88:24)
2023-03-22T09:21:08.886Z root ERROR Uncaught Exception:  Error: 5 NOT_FOUND: Unknown FQBN: platform arduino:samd is not installed
2023-03-22T09:21:08.886Z root ERROR Error: 5 NOT_FOUND: Unknown FQBN: platform arduino:samd is not installed
    at Object.callErrorFromStatus (/Users/a.kitta/dev/git/arduino-ide/node_modules/@grpc/grpc-js/build/src/call.js:31:19)
    at Object.onReceiveStatus (/Users/a.kitta/dev/git/arduino-ide/node_modules/@grpc/grpc-js/build/src/client.js:190:52)
    at Object.onReceiveStatus (/Users/a.kitta/dev/git/arduino-ide/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:365:141)
    at Object.onReceiveStatus (/Users/a.kitta/dev/git/arduino-ide/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:328:181)
    at /Users/a.kitta/dev/git/arduino-ide/node_modules/@grpc/grpc-js/build/src/call-stream.js:187:78
    at processTicksAndRejections (node:internal/process/task_queues:78:11)
for call at
    at ServiceClientImpl.makeUnaryRequest (/Users/a.kitta/dev/git/arduino-ide/node_modules/@grpc/grpc-js/build/src/client.js:160:30)
    at ServiceClientImpl.enumerateMonitorPortSettings (/Users/a.kitta/dev/git/arduino-ide/node_modules/@grpc/grpc-js/build/src/make-client.js:105:19)
    at res (/Users/a.kitta/dev/git/arduino-ide/arduino-ide-extension/lib/node/monitor-service.js:348:20)
    at new Promise (<anonymous>)
    at MonitorService.portMonitorSettings (/Users/a.kitta/dev/git/arduino-ide/arduino-ide-extension/lib/node/monitor-service.js:347:27)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Language server, user fields, boards config, etc., correctly handle when the platform is not installed. It's unhandled by the monitor.

To reproduce

  • Rename the directories.data location,
  • Start IDE2 from a terminal,
  • Attach your Zero board while the Monitor widget is opened,
  • IDE2 tries to start the monitor, but it fails,
  • See error.

Expected behavior

The monitor logic gracefully handles when the platform of the currently selected board is not installed.

Arduino IDE version

9b49712

Operating system

macOS

Operating system version

12.6.3

Additional context

No response

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
@kittaakos kittaakos added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project topic: serial monitor Related to the Serial Monitor labels Mar 22, 2023
kittaakos pushed a commit that referenced this issue Mar 30, 2023
kittaakos pushed a commit that referenced this issue Mar 30, 2023
 - Handle when the board's platform is not installed (Closes #1974)
 - UX: Smoother monitor widget reset (Closes #1985)
 - Fixed monitor <input> readOnly state (Closes #1984)
 - Set monitor widget header color (Ref #682)

Closes #1508

Signed-off-by: Akos Kitta <[email protected]>
kittaakos pushed a commit that referenced this issue Mar 30, 2023
 - Handle when the board's platform is not installed (Closes #1974)
 - UX: Smoother monitor widget reset (Closes #1985)
 - Fixed monitor <input> readOnly state (Closes #1984)
 - Set monitor widget header color (Ref #682)

Closes #1508

Signed-off-by: Akos Kitta <[email protected]>
kittaakos pushed a commit that referenced this issue Mar 31, 2023
 - Handle when the board's platform is not installed (Closes #1974)
 - UX: Smoother monitor widget reset (Closes #1985)
 - Fixed monitor <input> readOnly state (Closes #1984)
 - Set monitor widget header color (Ref #682)

Closes #1508

Signed-off-by: Akos Kitta <[email protected]>
kittaakos pushed a commit that referenced this issue Apr 13, 2023
 - Handle when the board's platform is not installed (Closes #1974)
 - UX: Smoother monitor widget reset (Closes #1985)
 - Fixed monitor <input> readOnly state (Closes #1984)
 - Set monitor widget header color (Ref #682)

Closes #1508

Signed-off-by: Akos Kitta <[email protected]>
@kittaakos kittaakos added the conclusion: resolved Issue was resolved label Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself topic: serial monitor Related to the Serial Monitor type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant