anseki / vscode-color

Helper with GUI to generate color codes such as CSS color notations.
MIT License
97 stars 27 forks source link

[processBridge]: TypeError: callback must be a function if provided #136

Closed McBen closed 2 years ago

McBen commented 2 years ago

Won't run.

Steps to Reproduce:

Log

TypeError: callback must be a function if provided
    at EventEmitter.load (C:\Users\viert\AppData\Roaming\nvm\v16.9.1\node_modules\npm\lib\npm.js:163:13)
    at initModule (c:\Users\viert\.vscode\extensions\anseki.vscode-color-0.4.5\node_modules\process-bridge\process-bridge.js:233:9)
    at getHostCmd (c:\Users\viert\.vscode\extensions\anseki.vscode-color-0.4.5\node_modules\process-bridge\process-bridge.js:331:9)
    at c:\Users\viert\.vscode\extensions\anseki.vscode-color-0.4.5\node_modules\process-bridge\process-bridge.js:394:19
    at exports.sendRequest (c:\Users\viert\.vscode\extensions\anseki.vscode-color-0.4.5\node_modules\process-bridge\process-bridge.js:468:34)
    at pickConvert (c:\Users\viert\.vscode\extensions\anseki.vscode-color-0.4.5\lib\color-helper.js:187:15)
    at exports.pick (c:\Users\viert\.vscode\extensions\anseki.vscode-color-0.4.5\lib\color-helper.js:229:24)
    at c._executeContributedCommand (c:\Users\viert\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:85:63770)

also:

[Extension Host] Error: Cannot find module 'npm'
Require stack:
- c:\Users\viert\.vscode\extensions\anseki.vscode-color-0.4.5\node_modules\process-bridge\process-bridge.js
- c:\Users\viert\.vscode\extensions\anseki.vscode-color-0.4.5\lib\color-helper.js
- c:\Users\viert\.vscode\extensions\anseki.vscode-color-0.4.5\extension.js
- c:\Users\viert\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\loader.js
- c:\Users\viert\AppData\Local\Programs\Microsoft VS Code\resources\app\out\bootstrap-amd.js
anseki commented 2 years ago

Hi @McBen, thank you for the comment. Try this: https://github.com/anseki/vscode-color/issues/108#issuecomment-774365209

McBen commented 2 years ago

adding the NPM module will fix the error message. grafik

But still no dialog is displayed. (only the mouse cursor switches to a cross in a specific area)

anseki commented 2 years ago

Try this: https://github.com/anseki/vscode-color#rendering-trouble

McBen commented 2 years ago

yes, disabling GPU fixed this second problem. thx

anseki commented 2 years ago

:smile: Could you close this issue?