errata-ai / LSP-vale-ls

A vale-ls client for Sublime Text.
https://packagecontrol.io/packages/LSP-vale-ls
MIT License
0 stars 1 forks source link

vale-ls only logs errors #1

Open jo3w4rd opened 1 year ago

jo3w4rd commented 1 year ago

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 commented 1 year ago

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 commented 11 months ago

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.