-
-
Notifications
You must be signed in to change notification settings - Fork 28
Exception in the debug console: `rejected promise not handled within 1 second: TypeError: Cannot read property 'substr' of undefined #34
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
Comments
I can't seem to reproduce this on my end. I just updated the extension with the latest vscode engines. Give the new version a try and let me know if that helps it. |
The extension has been updated to v0.7.0, but I still experience the same issue as you can see below.
|
@CoderAllan OK let me download the files and try them here. Side note, what kind of extension are your trying to make? Maybe we can incorporate it into this one? |
@CoderAllan figured it out. Working on a fix |
The extension I'm working on is a preview function for gcode. |
Oh awesome? Like backplotting? I've been working on trying to integrate backplotting into this one. We should collaborate for sure. |
Yes, like backplotting. 2D only because my focus is laser engraving. I have no idea how to even start doing anything in 3D in vscode. |
@CoderAllan awesome! I'll check it out for sure. |
Fixed in v0.7.1 |
This issue has been automatically locked since there has not been any recent activity after it was close. Please open a new issue for related topics. |
Describe the bug
In Visual Studio Code I'm currently developing an extension for processing GCode files.
When the extension is launched a new instance of VSCode opens where two gcode files are opened by default.
The moment I click on the gcode file that is not active the exception shown below is shown in the host VSCode instance debug console. See attached screenshot.
Expected behavior
The extension should be able to highlight the GCode without throwing the errors in the debug console.
Environment / Version:
Additional context
Stacktrace from the debug console:
rejected promise not handled within 1 second: TypeError: Cannot read property 'substr' of undefined stack trace: TypeError: Cannot read property 'substr' of undefined at x.parseLine (c:\Users\Allan\.vscode\extensions\appliedengdesign.vscode-gcode-syntax-0.6.2\dist\extension.js:1:17709) at x.getBlocks (c:\Users\Allan\.vscode\extensions\appliedengdesign.vscode-gcode-syntax-0.6.2\dist\extension.js:1:12527) at new x (c:\Users\Allan\.vscode\extensions\appliedengdesign.vscode-gcode-syntax-0.6.2\dist\extension.js:1:12336) at E.parseTree (c:\Users\Allan\.vscode\extensions\appliedengdesign.vscode-gcode-syntax-0.6.2\dist\extension.js:1:22213) at E.refresh (c:\Users\Allan\.vscode\extensions\appliedengdesign.vscode-gcode-syntax-0.6.2\dist\extension.js:1:22010) at E.onDocumentChanged (c:\Users\Allan\.vscode\extensions\appliedengdesign.vscode-gcode-syntax-0.6.2\dist\extension.js:1:21198) at c:\Users\Allan\.vscode\extensions\appliedengdesign.vscode-gcode-syntax-0.6.2\dist\extension.js:1:9526 at l.fire (c:\Users\Allan\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:66:1712) at I.$acceptModelChanged (c:\Users\Allan\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:94:152916) at n._doInvokeHandler (c:\Users\Allan\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:98:13802) at n._invokeHandler (c:\Users\Allan\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:98:13486) at n._receiveRequest (c:\Users\Allan\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:98:12148) at n._receiveOneMessage (c:\Users\Allan\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:98:10826) at c:\Users\Allan\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:98:8922 at l.fire (c:\Users\Allan\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:66:1712) at s.fire (c:\Users\Allan\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:74:15990) at c:\Users\Allan\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:113:30625 at l.fire (c:\Users\Allan\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:66:1712) at s.fire (c:\Users\Allan\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:74:15990) at f._receiveMessage (c:\Users\Allan\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:74:21260) at c:\Users\Allan\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:74:18138 at l.fire (c:\Users\Allan\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:66:1712) at w.acceptChunk (c:\Users\Allan\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:74:13351) at c:\Users\Allan\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:74:12699 at Socket.m (c:\Users\Allan\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:113:13575) at Socket.emit (events.js:315:20) at addChunk (internal/streams/readable.js:309:12) at readableAddChunk (internal/streams/readable.js:284:9) at Socket.push (internal/streams/readable.js:223:10) at Pipe.onStreamRead (internal/stream_base_commons.js:188:23)
Screenshot

The text was updated successfully, but these errors were encountered: