Skip to content

can't get the extension to work with WSL / global install #534

@ahmadnassri

Description

@ahmadnassri

What version of this package are you using?

What operating system, Node.js, and npm version?

  • WSL / Ubuntu
  • node v20.5.0 (nvm)
  • npm v9.8.0

What happened?

when using the following configuration:

    "standard.enable": true,
    "standard.enableGlobally": true,
    "standard.usePackageJson": false,
    "standard.autoFixOnSave": true,
    "standard.validate": ["javascript", "javascript react"],
    "standard.nodePath": "/home/ahmad/.nvm/versions/node/v20.5.0/lib/node_modules",

I get the following error:

[Error - 10:35:53 AM] Failed to apply command: standard.applyAutoFix

if I remove the nodePath config, I get the following error instead:

[Info  - 10:36:24 AM] 
Failed to load the JavaScript Standard Style library for the document [...]/server.js

To use JavaScript Standard Style please install JavaScript Standard Style by running 'npm install standard' in the workspace folder node-serve-reload-replace
or globally using 'npm install -g standard'. You need to reopen the workspace after installing JavaScript Standard Style.

Alternatively you can disable JavaScript Standard Style for the workspace folder node-serve-reload-replace by executing the 'Disable JavaScript Standard Style' command.

What did you expect to happen?

should work without requiring to install standard as a direct project dependency.

Are you willing to submit a pull request to fix this bug?

If I have a clear direction to where the fix might be, sure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions