Pymakr just...stopped working
-
I was working on some code for my GPy today and I had to shutdown and restart Visual Studio Code. When I did, all of Pymakr stopped working. When I start Visual Studio Code, I no longer get the REPL. Pressing "ctl-shift-c" gives the warning "command 'pymakr.connect' not found".
I've tried uninstalling and deleting all folders associated with Visual Studio Code and reinstalling VSC and the Pymakr extension. Still nothing.
Is there a log file location I could look for clues?
Visual Studio Code details:
Version: 1.33.1 (user setup)
Commit: 51b0b28134d51361cf996d2f0a1c698247aeabd8
Date: 2019-04-11T08:27:09.080Z
Electron: 3.1.6
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT ia32 10.0.17134Pymakr extension version 1.1.0
Edit: Found an error log by going to Help-Toggle Developer Tools in Visual Studio Code, and switching to Console. Here's the the output when starting Visual Studio Code:
Error: \\?\C:\Users\cohen1\.vscode\extensions\pycom.pymakr-1.1.0\node_modules\@serialport\bindings\build\Release\bindings.node is not a valid Win32 application. \\?\C:\Users\cohen1\.vscode\extensions\pycom.pymakr-1.1.0\node_modules\@serialport\bindings\build\Release\bindings.node at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:166:20) at Object.Module._extensions..node (internal/modules/cjs/loader.js:740:18) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:166:20) at Module.load (internal/modules/cjs/loader.js:620:32) at tryModuleLoad (internal/modules/cjs/loader.js:559:12) at Function.Module._load (internal/modules/cjs/loader.js:551:3) at Function.t._load (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:729:537) at Function.t.getExtensionPathIndex.then.a._load (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:691:639) at Function.t.getExtensionPathIndex.then.r._load (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:655:197) at Module.require (internal/modules/cjs/loader.js:658:17) at n (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\loader.js:15:874) at bindings (C:\Users\cohen1\.vscode\extensions\pycom.pymakr-1.1.0\node_modules\bindings\bindings.js:81:44) at Object.<anonymous> (C:\Users\cohen1\.vscode\extensions\pycom.pymakr-1.1.0\node_modules\@serialport\bindings\lib\win32.js:1:191) at Object.<anonymous> (C:\Users\cohen1\.vscode\extensions\pycom.pymakr-1.1.0\node_modules\@serialport\bindings\lib\win32.js:111:3) at Module.t._initNodeRequire.r._compile (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\loader.js:16:90) at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10) at Module.load (internal/modules/cjs/loader.js:620:32) at tryModuleLoad (internal/modules/cjs/loader.js:559:12) at Function.Module._load (internal/modules/cjs/loader.js:551:3) at Function.t._load (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:729:537) at Function.t.getExtensionPathIndex.then.a._load (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:691:639) at Function.t.getExtensionPathIndex.then.r._load (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:655:197) at Module.require (internal/modules/cjs/loader.js:658:17) at n (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\loader.js:15:874) at Object.<anonymous> (C:\Users\cohen1\.vscode\extensions\pycom.pymakr-1.1.0\node_modules\@serialport\bindings\lib\index.js:6:22) at Object.<anonymous> (C:\Users\cohen1\.vscode\extensions\pycom.pymakr-1.1.0\node_modules\@serialport\bindings\lib\index.js:17:3) at Module.t._initNodeRequire.r._compile (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\loader.js:16:90) at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10) at Module.load (internal/modules/cjs/loader.js:620:32) at tryModuleLoad (internal/modules/cjs/loader.js:559:12) at Function.Module._load (internal/modules/cjs/loader.js:551:3) at Function.t._load (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:729:537) at Function.t.getExtensionPathIndex.then.a._load (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:691:639) at Function.t.getExtensionPathIndex.then.r._load (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:655:197) at Module.require (internal/modules/cjs/loader.js:658:17) at n (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\loader.js:15:874) at Object.<anonymous> (C:\Users\cohen1\.vscode\extensions\pycom.pymakr-1.1.0\node_modules\serialport\lib\index.js:2:17) at Object.<anonymous> (C:\Users\cohen1\.vscode\extensions\pycom.pymakr-1.1.0\node_modules\serialport\lib\index.js:17:3) at Module.t._initNodeRequire.r._compile (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\loader.js:16:90) at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10) at Module.load (internal/modules/cjs/loader.js:620:32) at tryModuleLoad (internal/modules/cjs/loader.js:559:12) at Function.Module._load (internal/modules/cjs/loader.js:551:3) at Function.t._load (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:729:537) at Function.t.getExtensionPathIndex.then.a._load (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:691:639) at Function.t.getExtensionPathIndex.then.r._load (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:655:197) at Module.require (internal/modules/cjs/loader.js:658:17) at n (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\loader.js:15:874) at Object.<anonymous> (C:\Users\cohen1\.vscode\extensions\pycom.pymakr-1.1.0\lib\connections\pyserial.js:20:18) at Object.<anonymous> (C:\Users\cohen1\.vscode\extensions\pycom.pymakr-1.1.0\lib\connections\pyserial.js:238:3) at Module.t._initNodeRequire.r._compile (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\loader.js:16:90) at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10) at Module.load (internal/modules/cjs/loader.js:620:32) at tryModuleLoad (internal/modules/cjs/loader.js:559:12) at Function.Module._load (internal/modules/cjs/loader.js:551:3) at Function.t._load (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:729:537) at Function.t.getExtensionPathIndex.then.a._load (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:691:639) at Function.t.getExtensionPathIndex.then.r._load (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:655:197) at Module.require (internal/modules/cjs/loader.js:658:17) at n (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\loader.js:15:874) at Object.<anonymous> (C:\Users\cohen1\.vscode\extensions\pycom.pymakr-1.1.0\lib\pymakr.js:18:17) at Object.<anonymous> (C:\Users\cohen1\.vscode\extensions\pycom.pymakr-1.1.0\lib\pymakr.js:834:3) at Module.t._initNodeRequire.r._compile (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\loader.js:16:90) at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10) at Module.load (internal/modules/cjs/loader.js:620:32) at tryModuleLoad (internal/modules/cjs/loader.js:559:12) at Function.Module._load (internal/modules/cjs/loader.js:551:3) at Function.t._load (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:729:537) at Function.t.getExtensionPathIndex.then.a._load (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:691:639) at Function.t.getExtensionPathIndex.then.r._load (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:655:197) at Module.require (internal/modules/cjs/loader.js:658:17) at n (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\loader.js:15:874) at Object.<anonymous> (C:\Users\cohen1\.vscode\extensions\pycom.pymakr-1.1.0\pymakr.js:3:14) at Object.<anonymous> (C:\Users\cohen1\.vscode\extensions\pycom.pymakr-1.1.0\pymakr.js:137:3) at Module.t._initNodeRequire.r._compile (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\loader.js:16:90) at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10) at Module.load (internal/modules/cjs/loader.js:620:32) at tryModuleLoad (internal/modules/cjs/loader.js:559:12) at Function.Module._load (internal/modules/cjs/loader.js:551:3) at Function.t._load (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:729:537) at Function.t.getExtensionPathIndex.then.a._load (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:691:639) at Function.t.getExtensionPathIndex.then.r._load (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:655:197) at Module.require (internal/modules/cjs/loader.js:658:17) at require (internal/modules/cjs/helpers.js:20:18) at Function.i [as __$__nodeRequire] (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\loader.js:31:542) at c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:717:918 at E._doActivateExtension (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:718:2) at E._activateExtension (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:716:772) at E.<anonymous> (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:714:224) at Generator.next (<anonymous>) at n (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:11:176) at new Promise (<anonymous>) at n (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:10:975) at Object.actualActivateExtension (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:713:946) at p._activateExtension (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:457:765) at define._activateExtensions.i.length.Promise.all.o.map.e (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:457:449) at Array.map (<anonymous>) at p._activateExtensions (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:457:437) at p.activateByEvent (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:455:375) at E._activateByEvent (c:\Users\cohen1\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:715:434)
-
FYI (Linux)
Looking to fix the "Pymakr stopped working after upgrading to VS Code 1.36.1" issue i stumbled over the rebuild script in the pymakr directory of .vscode.
node ~/.vscode/extensions/pycom.pymakr-1.1.3/scripts/rebuild.js
It creates a new precompile for the serial port library and just did the trick.
-
thanks for sharing this link. I really need it.
-
@eoin I was able to fix my issue by following these instructions:
https://github.com/pycom/pymakr-vsc/issues/42
After that you could try to overwrite this file with the one in pycom.pymakr-1.1.0\precompiles\serialport-win32\bindings.node (or serialport-win64 if you're running 64 bit) and then restart vscode.
-
I have the exact same problem! I was at a Pycom workshop where everything worked fine, came home a few hours to try again and the exact same symptoms as you describe!
-
I've tried 32 bit and 64 bit versions of the User Installer for Visual Studio code, and the 32 and 64 bit version of the System Installer, and the standalone zip, being sure to clear out everything related to Visual Studio Code in between. Nothing has worked.