Giter VIP home page Giter VIP logo

Comments (12)

oblitum avatar oblitum commented on June 14, 2024

It can be fixed setting rust-client.rls-name, but still, I'm leaving issue open because I'm not sure what should be the default, maybe both?

from coc-rls.

chemzqm avatar chemzqm commented on June 14, 2024

Checkout rust-lang/rls#641

from coc-rls.

oblitum avatar oblitum commented on June 14, 2024

@chemzqm not sure what's there to help. I have RLS, it's just named rls locally, not rls-preview anymore.

from coc-rls.

chemzqm avatar chemzqm commented on June 14, 2024

You can disable rust-client and use rls command to start server.

from coc-rls.

oblitum avatar oblitum commented on June 14, 2024

Hi @chemzqm, it starts fine, I just need to set rust-client.rls-name to rls and all works. Another user that reported to have to set it here: neoclide/coc.nvim#235.

I'm not sure whether the RLS devs flipped and changed names from rls-preview to just rls lately. Hence I've left the issue open as suggestion on that.

from coc-rls.

chemzqm avatar chemzqm commented on June 14, 2024

Checkout rls's documentation: https://github.com/rust-lang/rls#note-nightly-only

from coc-rls.

oblitum avatar oblitum commented on June 14, 2024

But it is included, I'm using it, that's not the issue.... Anyway, closing.

from coc-rls.

oblitum avatar oblitum commented on June 14, 2024
❯❯❯ rustup component add rls-preview rust-analysis rust-src
...
❯❯❯ rustup component list --toolchain nightly
cargo-x86_64-unknown-linux-gnu (default)
clippy-x86_64-unknown-linux-gnu
llvm-tools-preview-x86_64-unknown-linux-gnu
rls-x86_64-unknown-linux-gnu (installed)                   <<<<<<<< rls, not rls-preview as name anymore
rust-analysis-x86_64-unknown-linux-gnu (installed)
rust-docs-x86_64-unknown-linux-gnu (default)
rust-src (installed)
...

from coc-rls.

oblitum avatar oblitum commented on June 14, 2024

This is the recent discussion where renaming of RLS component from "rls-preview" to "rls" is mentioned:

from coc-rls.

oblitum avatar oblitum commented on June 14, 2024

It can already be installed with just rls:

rustup component add rls rust-analysis rust-src

The above works, which means "rls-preview" is being phased out. rustup component add rls-preview rust-analysis rust-src still works, but when installed the component will be named simply "rls".

from coc-rls.

chemzqm avatar chemzqm commented on June 14, 2024

It's fixed, just like rls-vscode did rust-lang/vscode-rust@037807f

from coc-rls.

oblitum avatar oblitum commented on June 14, 2024

@chemzqm OK. Looks like I needed to remove <project-dir>/target/rls/ (or just the whole <project-dir>/target/) from project directory for coc stop offering installation of RLS when it was already installed in the system. The <project-dir>/target/rls had cached reference to the previous rls-preview component, and that made coc look up for rls-preview instead of rls. After deleting that folder, coc was able to pick rls by default now. So there's this problem with those project caches.

from coc-rls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.