Closed
Description
Describe the problem
Installing a lib/platforms fails with tons of errors.
Try to install a platform or a lib and check the logs (frontend or backend), it's full of errors.
root ERROR Uncaught Exception: Error: Request reportResult failed with message: this.target[method] is not a function
root ERROR Error: Request 'reportResult' failed
at Proxy.<anonymous> (/Users/a.kitta/dev/git/arduino-ide/node_modules/@theia/core/lib/common/messaging/proxy-factory.js:206:35)
It's a side effect of the arduino/arduino-cli@c8ff042 change. The lib/platform installation, index update, and download API have been unified on the CLI side. IDE2 does not about the download result of individual lib/platform installation but collects results of index updates only to build an update summary.
IDE2 must handle the missing reportResult
API for lib/platform installation.
To reproduce
- Start IDE2 on 61a11a0,
- Install a lib or platform,
- It fails.
Backend error:
root ERROR Uncaught Exception: Error: Request reportResult failed with message: this.target[method] is not a function
root ERROR Error: Request 'reportResult' failed
at Proxy.<anonymous> (/Users/a.kitta/dev/git/arduino-ide/node_modules/@theia/core/lib/common/messaging/proxy-factory.js:206:35)
at ClientReadableStreamImpl.<anonymous> (/Users/a.kitta/dev/git/arduino-ide/arduino-ide-extension/lib/node/grpc-progressible.js:180:101)
at ClientReadableStreamImpl.emit (node:events:394:28)
at addChunk (node:internal/streams/readable:312:12)
at readableAddChunk (node:internal/streams/readable:287:9)
at ClientReadableStreamImpl.Readable.push (node:internal/streams/readable:226:10)
at Object.onReceiveMessage (/Users/a.kitta/dev/git/arduino-ide/node_modules/@grpc/grpc-js/build/src/client.js:340:24)
at Object.onReceiveMessage (/Users/a.kitta/dev/git/arduino-ide/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:320:178)
at /Users/a.kitta/dev/git/arduino-ide/node_modules/@grpc/grpc-js/build/src/call-stream.js:239:74
at processTicksAndRejections (node:internal/process/task_queues:78:11)
Frontend error:
root ERROR Request reportResult failed with error: this.target[method] is not a function TypeError: this.target[method] is not a function
at JsonRpcProxyFactory.onRequest (file:///Users/a.kitta/dev/git/arduino-ide/electron-app/lib/bundle.js:64321:49)
at file:///Users/a.kitta/dev/git/arduino-ide/electron-app/lib/bundle.js:64300:54
at handleRequest (file:///Users/a.kitta/dev/git/arduino-ide/electron-app/lib/bundle.js:313315:27)
at processMessageQueue (file:///Users/a.kitta/dev/git/arduino-ide/electron-app/lib/bundle.js:313204:17)
at Immediate._onImmediate (file:///Users/a.kitta/dev/git/arduino-ide/electron-app/lib/bundle.js:313194:13)
at processImmediate (node:internal/timers:464:21)
Expected behavior
Installing a lib/platform works.
Arduino IDE version
Operating system
macOS
Operating system version
12.5.1
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