ERROR rls::build::cargo_plan] Modified file XXX didn't correspond to any buildable unit! · Issue #1730 · rust-lang/rls · GitHub
More Web Proxy on the site http://driver.im/
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 }}
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
The error occurs because the path of modified file is /Volumes/Macintosh HD/Users/XXX/Downloads/hello_cargo/src/main.rs but the the src_dir (see here) is something like /XXX/Downloads/hello_cargo/src/, so they don't have the same prefix. But actually, /Volumes/Macintosh HD is just a symlink to /.
Possible solution: canonicalize the path of the modified file first, and then compare the path with the src_dir. Maybe someone can fix it ? (I'm not familiar with the codebase, otherwise I can make a pull request)
The text was updated successfully, but these errors were encountered:
I encountered this error when implement a rust extension:
The error comes from here.
The error occurs because the path of modified file is
/Volumes/Macintosh HD/Users/XXX/Downloads/hello_cargo/src/main.rs
but the thesrc_dir
(see here) is something like/XXX/Downloads/hello_cargo/src/
, so they don't have the same prefix. But actually,/Volumes/Macintosh HD
is just a symlink to/
.Possible solution:
canonicalize
the path of the modified file first, and then compare the path with thesrc_dir
. Maybe someone can fix it ? (I'm not familiar with the codebase, otherwise I can make a pull request)The text was updated successfully, but these errors were encountered: