Skip to content

vale-ls only logs errors #1

@jo3w4rd

Description

@jo3w4rd

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions