Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vale-ls only logs errors #1

Open
jo3w4rd opened this issue May 8, 2023 · 2 comments
Open

vale-ls only logs errors #1

jo3w4rd opened this issue May 8, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@jo3w4rd
Copy link

jo3w4rd commented May 8, 2023

After installing LSP and vale-ls, I see no linting and see errors in the LSP log:

:: [11:02:51.733]  -> vale-ls textDocument/didOpen: {'textDocument': {'languageId': 'markdown', 'version': 0, 'uri': 'file:///D:/UnitySrc/docs/2021.3/Documentation/ManualDocs/md/xr-audio.md', 'text': '# XR audio\n\nYou can use 3D audio to enhance the immersiveness of your VR game or application. 3D audio goes beyond typical stereo or multi-speaker audio set ups that typically change only the relative volume of point audio sources in each speaker. \n\n\n\nAn ambisonic decoder plug-in decodes specially recorded ambisonic audio. Ambisonic encoding is often used for ambient sound sources, sometimes described as an "audio skybox." While you can use ambisonic \n\nYou can use both spatializer and ambisonic decoder plug-ins outside of VR applications, although they might not have the same fidelity without head tracking.\n\n'}}
:: [11:02:51.734] --> vale-ls textDocument/documentLink (495): {'textDocument': {'uri': 'file:///D:/UnitySrc/docs/2021.3/Documentation/ManualDocs/md/xr-audio.md'}}
vale-ls: Parsing error: Io(Os { code: 267, kind: NotADirectory, message: "The directory name is invalid." })
:: [11:02:51.736] --> vale-ls textDocument/codeLens (496): {'textDocument': {'uri': 'file:///D:/UnitySrc/docs/2021.3/Documentation/ManualDocs/md/xr-audio.md'}}
:: [11:02:51.738] <-  vale-ls window/logMessage: {'message': 'Parsing error: Io(Os { code: 267, kind: NotADirectory, message: "The directory name is invalid." })', 'type': 1}
:: [11:02:51.738] <-  vale-ls window/showMessage: {'message': 'expected value at line 1 column 1', 'type': 1}
:: [11:02:51.738] <<< vale-ls (495) (duration: 3ms): None
:: [11:02:51.741] <<< vale-ls (496) (duration: 4ms): None

Note that vale works when invoked on the command line with the file path shown in the error (D:/UnitySrc/docs/2021.3/Documentation/ManualDocs/md/xr-audio.md), minus the "file:///" part.

vale-ls v0.2.1
LSP v1.23.0
Sublime Stable Channel, build 4143
Vale 2.25.2

@jdkato jdkato added the bug Something isn't working label May 18, 2023
@jdkato
Copy link
Member

jdkato commented May 18, 2023

I've tried replicating the file path + file contents and I can't reproduce the issue.

Does it only occur on this particular file or do you see the error for every file?

@honekamp
Copy link

Unfortunately, I suffer from exactly the same error. I've tried different locations (with and without whitespaces in the path name, short and long path names) for the styles directory and .vale.ini file. I've tried different markdown files. The error shows up regardless. Is there any hint about what I could try to make the vale language server work for me?

On the command line, vale works just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants