get-alex / alex

Catch insensitive, inconsiderate writing
https://alexjs.com
MIT License
4.81k stars 207 forks source link

Request workspace/executeCommand failed #310

Closed aaronfranke closed 3 years ago

aaronfranke commented 3 years ago

Subject of the issue

When I try to run AlexLinter, I get this error message:

[Error - 1:06:34 PM] Request workspace/executeCommand failed.
  Message: Request workspace/executeCommand failed with message: Cannot read property 'uri' of undefined
  Code: -32603 

Your environment

Steps to reproduce

  1. Install Alex from VS Code, "AlexJS Linter tlahmann.alex-linter"
  2. I noticed that it wasn't doing anything by itself. Not on plain text files, not on code files.
  3. Press Ctrl+Shift+P
  4. Select "AlexLiner: Check for insensitive, inconsiderate writing" (btw, "AlexLiner" is misspelled, should be "AlexLinter")
  5. VS Code says "A request has failed. See the output for more information.
  6. I get the error message in the output.

Expected behaviour

It should work and not throw an error.

Actual behaviour

I get this error message:

[Error - 1:06:34 PM] Request workspace/executeCommand failed.
  Message: Request workspace/executeCommand failed with message: Cannot read property 'uri' of undefined
  Code: -32603 
wooorm commented 3 years ago

Hi there!

This sounds like a VSCode related issue, not something with the core of Alex.

I do maintain Alex, but not the VSCode extension. So I have no knowledge of how that works, and it sounds like it can’t be fixed in this project. Perhaps ask the folks of tlahmann.alex-linter?

Happy holidays!