-
Notifications
You must be signed in to change notification settings - Fork 108
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug report
- I confirm this is a bug with Supabase, not with my own application.
- I confirm I have searched the Docs, GitHub Discussions, and Discord.
FYI to the maintainers, the above bullet points for this issue template still reference Supabase directly, not postgres_lsp. 😄
Describe the bug
I was trying to follow the "building from source" section of the docs:
- I ran
git submodule update --init --recursiveand verified the submodule was populated correctly. - Then I ran
cargo xtask installbut it eventually errored; see output below.
❯ cargo xtask install
...
...
...
$ cargo install --path crates/postgres_lsp --locked --force
...
...
...
error[E0554]: `#![feature]` may not be used on the stable release channel
--> crates/parser/src/lib.rs:18:12
|
18 | #![feature(lazy_cell, is_sorted)]
| ^^^^^^^^^
error[E0554]: `#![feature]` may not be used on the stable release channel
--> crates/parser/src/lib.rs:18:23
|
18 | #![feature(lazy_cell, is_sorted)]
| ^^^^^^^^^
For more information about this error, try `rustc --explain E0554`.
error: could not compile `parser` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `postgres_lsp v0.0.0 (/Users/noah/Git/postgres_lsp/crates/postgres_lsp)`, intermediate artifacts can be found at `/Users/noah/Git/postgres_lsp/target`
Error: install server
Caused by:
command exited with non-zero code `cargo install --path crates/postgres_lsp --locked --force`: 101I'm relatively unfamiliar with Rust and its tooling; I found an SO thread online but the suggested fix is to just install the nightly version of Rust/cargo? That feels odd to me, so I'll wait for maintainer feedback. 😅
System information
- macOS Sonoma 14.1.1
asdfpackage manager with asdf-rust plugin
❯ asdf plugin list --refs --urls
╭────┬────────────┬─────────────────────────────────────────────────────┬────────┬─────────╮
│ # │ name │ repository │ branch │ ref │
├────┼────────────┼─────────────────────────────────────────────────────┼────────┼─────────┤
│ 0 │ nodejs │ https://github.com/asdf-vm/asdf-nodejs.git │ master │ 150ec5d │
│ 1 │ rust │ https://github.com/code-lever/asdf-rust.git │ master │ 95acf4f │
╰────┴────────────┴─────────────────────────────────────────────────────┴────────┴─────────╯❯ rustc --version
rustc 1.71.1 (eb26296b5 2023-08-03)
❯ cargo --version
cargo 1.71.1 (7f1d04c00 2023-07-29)
❯ node --version
v18.15.0Additional context
I ended up here because I was reminded about postgres_lsp from a related HN thread posted today.
matoous
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working