You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rust: URI type implementation is non-compliant with LSP specification #442
Our current URI handling uses the rust-url crate, which implements the WHATWG URL spec. However, the Language Server Protocol (LSP) specification explicitly requires URI's to follow RFC 3986.
This causes parsing errors for valid file paths that contain special characters, such as [ or {, which are common in modern frontend frameworks (e.g., Next.js, SvelteKit).
Riley Bruins (@ribru17) It's a bit a different problem, but thanks for sharing. I would consider this crate just message formats, and would normalize urls when passing them to downstream code.
Activity
ribru17 commentedon Sep 13, 2025
lsp-types uses fluent_uri for this reason, with some drawbacks (gluon-lang/lsp-types#284).
solomatov commentedon Oct 27, 2025
Riley Bruins (@ribru17), Umesh Yadav (@imumesh18)
I tried parsing, and this code works fine:
solomatov commentedon Oct 27, 2025
Riley Bruins (@ribru17), Umesh Yadav (@imumesh18)
This works fine too:
ribru17 commentedon Oct 28, 2025
gluon-lang/lsp-types#261 (comment)
solomatov commentedon Oct 28, 2025
Riley Bruins (@ribru17) It's a bit a different problem, but thanks for sharing. I would consider this crate just message formats, and would normalize urls when passing them to downstream code.