anseki / vscode-color

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

Color Pic does not open #74

Closed xereda closed 6 years ago

xereda commented 6 years ago

The extension is not working. It is not opening.

pick_color

Steps to Reproduce:

  1. CTRL + ALT + P, type pick color;
  2. Select item;

Log (All lines): (Click menu of VS Code "Help > Toggle Developer Tools", and click "Console" tab)

console.ts:136 [Extension Host] Start child process...
console.ts:136 [Extension Host] Check version of: electron-prebuilt
console.ts:136 [Extension Host] Check version of: comma-separated-values
console.ts:136 [Extension Host] Check version of: js-yaml
console.ts:136 [Extension Host] Check version of: process-bridge
console.ts:136 [Extension Host] Try to send IPC message: 1
console.ts:136 [Extension Host] Try to send IPC message: 2
console.ts:136 [Extension Host] Try to send IPC message: 3
console.ts:136 [Extension Host] Try to send IPC message: 4
console.ts:136 [Extension Host] Try to send IPC message: 1
console.ts:136 [Extension Host] Try to send IPC message: 2
console.ts:136 [Extension Host] Try to send IPC message: 3
console.ts:136 [Extension Host] Try to send IPC message: 4
console.ts:136 [Extension Host] Child process disconnected
console.ts:136 [Extension Host] Child process exited with code: null
console.ts:136 [Extension Host] Error: Child process exited with code: null
    at /home/jacksons/.vscode/extensions/anseki.vscode-color-0.4.5/node_modules/process-bridge/process-bridge.js:478:19
    at ChildProcess.<anonymous> (/home/jacksons/.vscode/extensions/anseki.vscode-color-0.4.5/node_modules/process-bridge/process-bridge.js:394:19)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:194:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
t.log @ console.ts:136
t._logExtensionHostMessage @ extensionHost.ts:393
(anonymous) @ extensionHost.ts:210
emitTwo @ events.js:106
emit @ events.js:194
process.nextTick @ internal/child_process.js:766
_combinedTickCallback @ internal/process/next_tick.js:73
_tickCallback @ internal/process/next_tick.js:104
notificationsAlerts.ts:42 [processBridge]: Error: Child process exited with code: null
e.onDidNotificationChange @ notificationsAlerts.ts:42
(anonymous) @ notificationsAlerts.ts:28
e.fire @ event.ts:140
e.notify @ notifications.ts:127
e.notify @ notificationService.ts:65
e._showMessage @ mainThreadMessageService.ts:84
e._showMessage @ mainThreadMessageService.ts:45
e.$showMessage @ mainThreadMessageService.ts:39
e._doInvokeHandler @ rpcProtocol.ts:261
e._invokeHandler @ rpcProtocol.ts:246
e._receiveRequest @ rpcProtocol.ts:192
e._receiveOneMessage @ rpcProtocol.ts:174
(anonymous) @ rpcProtocol.ts:107
(anonymous) @ rpcProtocol.ts:303
e.fire @ event.ts:140
c @ ipc.net.ts:81
(anonymous) @ ipc.net.ts:108
emitOne @ events.js:96
emit @ events.js:191
readableAddChunk @ _stream_readable.js:178
Readable.push @ _stream_readable.js:136
onread @ net.js:560
console.ts:136 [Extension Host] Error: Child process already exited.
    at sendIpc (/home/jacksons/.vscode/extensions/anseki.vscode-color-0.4.5/node_modules/process-bridge/process-bridge.js:415:31)
    at Timeout.<anonymous> (/home/jacksons/.vscode/extensions/anseki.vscode-color-0.4.5/node_modules/process-bridge/process-bridge.js:394:19)
    at ontimeout (timers.js:386:14)
    at tryOnTimeout (timers.js:250:5)
    at Timer.listOnTimeout (timers.js:214:5)
t.log @ console.ts:136
t._logExtensionHostMessage @ extensionHost.ts:393
(anonymous) @ extensionHost.ts:210
emitTwo @ events.js:106
emit @ events.js:194
process.nextTick @ internal/child_process.js:766
_combinedTickCallback @ internal/process/next_tick.js:73
_tickCallback @ internal/process/next_tick.js:104
notificationsAlerts.ts:42 [processBridge]: Error: Child process already exited.
xereda commented 6 years ago

I executed npm install in the extension repo, but it's not work.

npm-install

anseki commented 6 years ago

Hi @xereda, thank you for the report.

Electron might have been installed globally in your computer. That should not be installed globally because various apps may not work by the confliction. Try to remove that. (except there are special reasons)

npm uninstall -g electron
npm uninstall -g electron-prebuilt
xereda commented 6 years ago

It's not working.

eletron

anseki commented 6 years ago

Were multiple versions of Node.js (and NPM) installed in your computer?

xereda commented 6 years ago

@anseki yes! I have nvm control manager.

anseki commented 6 years ago

At least, it seems that the Electron in a version of Node.js that was activated doesn't work. That might be broken. Try this:

  1. By using NVM, activate a version of Node.js that VS Code uses.
  2. Execute commands:
npm uninstall -g electron
npm uninstall -g electron-prebuilt

cd ~/.vscode/extensions/anseki.vscode-color-0.4.5
npm uninstall electron-prebuilt
  1. Call the "Pick Color" command, and wait for a while that installs the Electron.
xereda commented 6 years ago

And it did not work.

electron_pre

[processBridge]: Error: `options.hostModule` and `package.json` are required.
anseki commented 6 years ago

That new error message means that the extension is broken. Re-install that.

  1. Uninstall the extension.
  2. Command to remove NPM cache data.
    npm cache clean
  3. Command to confirm the cache data were cleared.
    npm cache ls
  4. Remove Electron cache data in ~/.electron.
  5. Re-install the extension.
anseki commented 6 years ago

No reply came. I close this issue.

xereda commented 6 years ago

This did not solve the problem. @anseki.

anseki commented 6 years ago

Try the steps above.

kinoli commented 6 years ago

Same issue here. I don't even have Electron installed on this OSX machine. I just installed the extension, but same error as shown in above video.

screen shot 2018-08-15 at 9 19 44 pm
anseki commented 6 years ago

Hi @kinoli, thank you for the report. Could you write following information? https://github.com/anseki/vscode-color/blob/master/.github/ISSUE_TEMPLATE.md

jnelken commented 6 years ago

For anyone having this issue, try a simple reinstall. I Suffered the same. I Tried to use the package for the first time, waited for the install (~15s), and then the error message brought me here. After uninstalling and reinstalling, things work smoothly. I can access it with the keyboard shortcut (opt + c, p on Mac) and also from the command menu @kinoli @xereda

anseki commented 6 years ago

Hi @jnelken, thank you for the report. :smile:

greenais commented 5 years ago

Exactly the same issue here. All the most recent versions of VSC and CP. Windows 8.1 Reinstalling, clearing cache don't help - first time CP opens with no issue, all subsequent ones fail with error "[processBridge]: Error: Child process already exited." To note: for several months it worked like a charm, issue started after recent VSC update

UPD: seems to be resoved after adding to config:

"colorHelper.pickerForm": "compact2",
"colorHelper.disableGpu": 1,
anseki commented 5 years ago

Hi @greenais, thank you for the comment. Sorry, my English is poor. Do you mean that the issue was solved?

greenais commented 5 years ago

Yes, I do. I suppose disableGpu worked.

anseki commented 5 years ago

Thank you @greenais :smile: However, it seems that your case is unrelated to this issue. This issue is a case about installation. Your case is a problem of your GPU driver. So, your case is related to the following issues rather than this issue. https://github.com/anseki/vscode-color/issues/40 https://github.com/anseki/vscode-color/issues/45