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

cargo xtask install command is not working #139

Open
timurzdev opened this issue Aug 13, 2024 · 2 comments
Open

cargo xtask install command is not working #139

timurzdev opened this issue Aug 13, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@timurzdev
Copy link

Bug report

Describe the bug

cargo xtask install command is not working properly

To Reproduce

follow readme to install with cargo

➜  postgres_lsp git:(main) cargo xtask install
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.07s
     Running `target/debug/xtask install`
$ cargo install --path crates/postgres_lsp --locked --force
error: `/Users/tmogus/Desktop/code/postgres_lsp/crates/postgres_lsp` is not a directory. --path must point to a directory containing a Cargo.toml file.
Error: install server

Caused by:
    command exited with non-zero code `cargo install --path crates/postgres_lsp --locked --force`: 101

Expected behavior

successful installation

System information

macOS 14.5 23F79 arm64

Additional context

crates/postgres_lsp doesn't exists,

cargo install --path crates/pg_lsp --locked --force worked well

@timurzdev timurzdev added the bug Something isn't working label Aug 13, 2024
@psteinroe
Copy link
Collaborator

hey! Thanks for opening the issue. It's because of a recent refactor where the lsp crate now has a different name.

I am currently working on a few improvements to the core logic to make it ready for an alpha release. Will look into xtask and the release process once that's done 🙏🏼

@ngynkvn
Copy link

ngynkvn commented Aug 26, 2024

Hi! I'm interested in contributing to this LSP, so looking forward to the alpha release :). For the time being, I was able to unblock myself here by following these steps:

  • Inside xtask/src/install.rs:142, replace postgres_lsp with pg_lsp
  • Have an available instance of postgres on port 5432 with credentials postgres:postgres when running cargo xtask install. The easiest way to do this is by spinning up a docker container via docker compose up.

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

3 participants