mrmlnc / vscode-csscomb

:electric_plug: VS Code plugin for CSScomb — CSS coding style formatter.
https://goo.gl/lKARa5
MIT License
65 stars 11 forks source link

command 'csscomb.execute' not found #108

Closed frux closed 4 years ago

frux commented 6 years ago

Environment

Actual behavior

Plugin does format code

Expected behavior

Plugin doesn't format code. VSCode shows error command 'csscomb.execute' not found.

Steps to reproduce

  1. Install plugin vscode-csscomb.
  2. Run formatting.

Config

    "csscomb.preset": "yandex",
    "csscomb.formatOnSave": true,

screencast 2018-05-03 10-52-55

mrmlnc commented 6 years ago

Hello, @frux,

Works fine for me with VS Code v1.23.0 and your settings.

You can provide more information about your editor settings, output from Developer Tools after broken command and list of installed extensions.

frux commented 6 years ago

In developer tools console I see

notificationsAlerts.ts:39 command 'csscomb.execute' not found
e.onDidNotificationChange @ notificationsAlerts.ts:39
(anonymous) @ notificationsAlerts.ts:28
e.fire @ event.ts:140
e.notify @ notifications.ts:127
e.error @ notificationService.ts:61
t.onError @ commandsHandler.ts:326
(anonymous) @ commandsHandler.ts:311
done @ winjs.base.js:1393
(anonymous) @ commandsHandler.ts:307
done @ winjs.base.js:1539
g @ winjs.base.js:1195
enter @ winjs.base.js:867
_run @ winjs.base.js:1083
_completed @ winjs.base.js:1051

List of installed plugins:

[
    "auto-rename-tag",
    "babelrc",
    "bracket-pair-colorizer",
    "code-settings-sync",
    "EditorConfig",
    "gitflow",
    "gitignore",
    "gitlens",
    "material-icon-theme",
    "npm-intellisense",
    "path-autocomplete",
    "postcss",
    "stylelint",
    "touchbar-command-palette",
    "tslint",
    "vscode-csscomb",
    "vscode-docker",
    "vscode-eslint",
    "vscode-jumpy",
    "vscode-open",
    "vscode-snazzy-operator",
    "vscode-stylefmt",
    "vscode-theme-superonedark",
    "vscode-todo-highlight"
]
IiroP commented 6 years ago

Same problem, using Arch Linux & VS Code 1.25.1.

DevTools show an error saying Activating extension 'mrmlnc.vscode-csscomb' failed: Cannot find module 'is-descriptor'.

mrmlnc commented 4 years ago

It looks like the problem is in the environment. Unfortunately, I can't help you here.