Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation Error on Ubuntu 22.04 #52

Open
fahdmirza opened this issue Aug 6, 2024 · 1 comment
Open

Compilation Error on Ubuntu 22.04 #52

fahdmirza opened this issue Aug 6, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@fahdmirza
Copy link

Hello,
I am trying to install this lsp-ai on Ubuntu 22.04 and getting following error:

Compiling atoi v2.0.0
error: Unrecognized option: 'diagnostic-width'

error: could not compile atoi (lib)
warning: build failed, waiting for other jobs to finish...
error: failed to compile lsp-ai v0.4.0, intermediate artifacts can be found at /tmp/cargo-installbmlwJ1.
To reuse those artifacts with a future compilation, set the environment variable CARGO_TARGET_DIR to that path.

(lsp) Ubuntu@0136-ict-prxmx50056:/lsp-ai$ rustc -V
rustc 1.80.0 (051478957 2024-07-21)
(lsp) Ubuntu@0136-ict-prxmx50056:
/lsp-ai$ cargo --version
cargo 1.75.0

Also , its not clear from documentation what to do after you get lsp-ai installed? How do you integrate it with VSCode. After going through existing issues, I managed to get that lsp-ai extension needed to be installed. Once that extension is installed , how do I configure it to use lsp-ai server and Ollama? Where do I put that Ollama configuration which you have pasted in wiki?

Could I please request you to clarify above points as its not clear from documentation. Thanks.

@SilasMarvin
Copy link
Owner

I'll look into the compilation issues that is strange its not working on Ubuntu 22.04.

The home section of the wiki has a nice getting started section: https://github.com/SilasMarvin/lsp-ai/wiki

If you want to use it with VS Code you should install our official plugin: https://github.com/SilasMarvin/lsp-ai/wiki/Plugins

@SilasMarvin SilasMarvin added the bug Something isn't working label Aug 7, 2024
@SilasMarvin SilasMarvin changed the title rror: could not compile atoi (lib) Compilation Error on Ubuntu 22.04 Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants