now for me rls works for some imple project like
Details
Diff Detail
- Repository
- R40 Kate
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
according to the recent discussion on rust-analyzer (rls 2.0), it's better to look for Cargo.lock - it should work for workspace based projects too.
https://github.com/rust-analyzer/rust-analyzer/issues/1650#issuecomment-518219611
Is it better to search for only the "Cargo.lock" or shall one search just for both and use the first director with a hit?
Is it better to search for only the "Cargo.lock" or shall one search just for both and use the first director with a hit?
disclaimer: i have no expertise in this area :).
this comment is clearer https://github.com/rust-analyzer/rust-analyzer/issues/1650#issuecomment-518088316
it looks like the problem is that search for .toml stops too early, so using both and use first directory with a hit would not work. each project in a workspace have it's own Cargo.toml, but there is only one top-level Cargo.lock.
Hmm, ok, let's wait if there is more input in the rls issue linked here ;=)
I have no issues with changing the file name to the right thing (tm).
I posted https://www.reddit.com/r/rust/comments/cmvy9b/help_needed_kate_rust_lsp_support/? - maybe we get more feedback this way.
I will already commit a bit simplified version, I guess the pattern is overkill (and slow for large directories).
Later we can tweak this further, at least for me this make rls at all usable.