Hi
This post is just for feedback for helping improving torizon extrension.
I get some sporadic errors/issues in Visual Studio Code with the Torizon extension.
Closing and start VS Code helps.
Example 1:
When I open VS Code no connection to the iMX6 module could be established(Could ping the module)
When I tried to detect a new device via Network I got this error in the log:
notificationsAlerts.ts:40 Cannot connect to Torizon IDE backend process.
onDidChangeNotification @ notificationsAlerts.ts:40
notificationsAlerts.ts:40 Command ‘Torizon: Detect device via network connection.’ resulted in an error (command ‘torizon.detectNetworkDevice’ not found)
onDidChangeNotification @ notificationsAlerts.ts:40
notificationsAlerts.ts:40 Command ‘Torizon: Detect device via network connection.’ resulted in an error (command ‘torizon.detectNetworkDevice’ not found)
onDidChangeNotification @ notificationsAlerts.ts:40
Restarting VS Code did help
I have this from time to time.
Example 2:
When I have no project open in VS Code and I create a new ASP.NET Project I get this error:
notificationsAlerts.ts:40 Command ‘Torizon/.NET: Create ASP.NET Application’ resulted in an error (command ‘torizon.createAspDotNetCoreApp’ not found)
onDidChangeNotification @ notificationsAlerts.ts:40
console.ts:137 [Extension Host] Torizon backend version:1.0 API version:1.0
But creating a .NET Core do work.
To get it to work I do the following:
- Use “Create .NET Core application”
instead - Dont go through the creation process
(Just cancel it), - Now try “Create .NET Asp
application” - ASP.NET creation now works
Example 3
During debug the SSH pipe suddenly crash
Debug Console
Error from pipe program ‘ssh’: Killed
The pipe program ‘ssh’ exited unexpectedly with code 137.
VS Code log
console.ts:137 [Extension Host] rejected promise not handled within 1 second: Token cancellation requested: undefined
t.log @ console.ts:137
log.ts:197 ERR Token cancellation requested: undefined
console.ts:137 [Extension Host] rejected promise not handled within 1 second: Token cancellation requested: undefined
t.log @ console.ts:137
log.ts:197 ERR timeout after 1000 ms: Error: timeout after 1000 ms
at t.RawDebugSession.handleErrorResponse (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:3160:190)
at file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:3159:451
at async t.RawDebugSession.shutdown (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:3157:536)
log.ts:197 ERR timeout after 1000 ms: Error: timeout after 1000 ms
at t.RawDebugSession.handleErrorResponse (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:3160:190)
at file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:3159:451
at async t.RawDebugSession.shutdown (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:3157:536)
Restarting VS Code does also help here
It could be a problem on my setup. But maybe it helps imroving the product.
Thomas