anseki / vscode-color

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

command 'extension.colorHelper.pick' not found #103

Closed Arcesilas closed 3 years ago

Arcesilas commented 3 years ago

Steps to Reproduce:

  1. Install extension
  2. Click "Alt + C P" or choose command from command palette

Log:

abstractExtensionService.ts:708 Activating extension 'anseki.vscode-color' failed: Cannot find module '/home/olivier/.vscode-oss/extensions/anseki.vscode-color-0.4.5/extension'
Require stack:
- /usr/share/codium/resources/app/out/vs/loader.js
- /usr/share/codium/resources/app/out/bootstrap-amd.js
- /usr/share/codium/resources/app/out/bootstrap-fork.js.
_logMessageInConsole @ abstractExtensionService.ts:707
_logOrShowMessage @ abstractExtensionService.ts:707
$onExtensionActivationError @ mainThreadExtensionService.ts:66
_doInvokeHandler @ rpcProtocol.ts:401
_invokeHandler @ rpcProtocol.ts:332
_receiveRequest @ rpcProtocol.ts:278
_receiveOneMessage @ rpcProtocol.ts:220
(anonymous) @ rpcProtocol.ts:93
fire @ event.ts:535
fire @ ipc.net.ts:407
_receiveMessage @ ipc.net.ts:755
(anonymous) @ ipc.net.ts:630
fire @ event.ts:535
acceptChunk @ ipc.net.ts:224
(anonymous) @ ipc.net.ts:149
t @ ipc.net.ts:892
emit @ events.js:223
addChunk @ _stream_readable.js:309
readableAddChunk @ _stream_readable.js:290
Readable.push @ _stream_readable.js:224
onStreamRead @ internal/stream_base_commons.js:181
event.ts:19 [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
anseki commented 3 years ago

Hi @Arcesilas, thank you for the comment. Does the extension work on VS Code? The cause of that might be the VSCodium.

Arcesilas commented 3 years ago

I can't test with VSCode, because I don't want to install it... sorry... I guess I will have to stick with the default color picker... Thanks for your answer.

anseki commented 3 years ago

Ok :smile: Thank you for the information.

gelse commented 3 years ago

I got vscode-oss (not vscodium) on Arch LInux and i got EXACTLY the same problem.

Activating extension 'anseki.vscode-color' failed: Cannot find module '/home/werner/.vscode-oss/extensions/anseki.vscode-color-0.4.5/extension'

I realize that it's the entry for "main" in package.json, which points to './extension' while there should be an 'extension.js' in the root directory which is missing. But i have no idea what should be the content of that file, i just compared to other extensions that are working.

What i did is install the extension the normal way, go to the extension directory and entered npm install - which all worked fine (despite the usual npm warnings about vulnerabilities).

Version: 1.56.2 Commit: 054a9295330880ed74ceaedda236253b4f39a335 Date: 2021-05-16T15:21:33.370Z Electron: 12.0.9 Chrome: 89.0.4389.128 Node.js: 14.16.0 V8: 8.9.255.25-electron.0 OS: Linux x64 5.12.9-zen1-1-zen

installed version:

community/code 1.56.2-2 [0B 84.70MiB] [Installed]

anseki commented 3 years ago

Hi @gelse, thank you for the comment. Could you give more information? Copy this template: https://raw.githubusercontent.com/anseki/vscode-color/master/.github/ISSUE_TEMPLATE.md

tusqasi commented 3 years ago

I have this issue, in OSS code.

Is there any support for that version here?

tusqasi commented 3 years ago

Steps to Reproduce:

  1. Install extension
  2. notification pops up command 'extension.colorHelper.pick' not found

Log (All lines):

​electron/js2c/renderer_init.js:33 The vm module of Node.js is deprecated in the renderer process and will be removed.
o._load @ electron/js2c/renderer_init.js:33
electron/js2c/renderer_init.js:113 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security
    Policy set or a policy with "unsafe-eval" enabled. This exposes users of
    this app to unnecessary security risks.

For more information and help, consult
https://electronjs.org/docs/tutorial/security.
This warning will not show up
once the app is packaged.
(anonymous) @ electron/js2c/renderer_init.js:113
workbench.desktop.main.js:2710 Extension 'ms-python.python cannot use PROPOSED API (must started out of dev or enabled via --enable-proposed-api)
updateEnableProposedApi @ workbench.desktop.main.js:2710
workbench.desktop.main.js:62 [Extension Host] (node:3867921) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.(Use `electron --trace-deprecation ...` to show where the warning was created)
S @ workbench.desktop.main.js:62
workbench.desktop.main.js:2701 Error querying extensions gallery Canceled
query @ workbench.desktop.main.js:2701
2workbench.desktop.main.js:1728 [Embedded Page] %cElectron Security Warning (Insecure Content-Security-Policy) font-weight: bold; This renderer process has either no Content Security
    Policy set or a policy with "unsafe-eval" enabled. This exposes users of
    this app to unnecessary security risks.

For more information and help, consult
https://electronjs.org/docs/tutorial/security.
This warning will not show up
once the app is packaged.
workbench.desktop.main.js:2237 Activating extension 'anseki.vscode-color' failed: Cannot find module '/home/tusqasi/.vscode-oss/extensions/anseki.vscode-color-0.4.5/extension'
Require stack:
- /usr/lib/code/out/vs/loader.js
- /usr/lib/code/out/bootstrap-amd.js
- /usr/lib/code/out/bootstrap-fork.js.
$onExtensionActivationError @ workbench.desktop.main.js:2237
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/054a9295330880ed74ceaedda236253b4f39a335/core/vs/workbench/workbench.desktop.main.js.map: Load canceled due to load timeout```
anseki commented 3 years ago

Hi @ tusqasi, thank you for the comment. The extension supports VS Code only. You can use internal Color Picker instead. It's recommended.

tusqasi commented 3 years ago

Got it