Open Nezteb opened 9 months ago
Reading more, I'm guessing this project requires the nightly Rust build for the time being and that's just how it is. Keyword is "guessing", hence why I'm not closing this issue yet. ๐
As for how to prevent newcomers from hitting this in the future, I did find docs about how to specify which Rust release channel to use for a project.
Hey @Nezteb, thanks for opening the issue. You are right, we are currently using two nightly features of rust and thereby require the nightly channel to be used. It seems like I forgot to update the Readme. Will do so later. For now, first install rustup. You can then install nightly rust with
rustup-init --default-toolchain nightly -y
.
This is very interesting. I installed rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
I had no issues running the commands in the readme but if I try to run rustup-init
says command not found
rustup
is a command but not rustup-init
hey @nicoabie, can you check if cargo
or rustc
are available on your system? I have installed rustup
with homebrew and it works fine - maybe you need some additional setup when installing it via curl
.
I have both cargo and rustc.
The difference relies in that it seems you installed rustup with homebrew and I followed the instructions on the website https://www.rust-lang.org/learn/get-started
The website does not tell you to use homebrew.
Probably the homebrew formula is old and has the deprecated rustup-init command
Bug report
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:
git submodule update --init --recursive
and verified the submodule was populated correctly.cargo xtask install
but it eventually errored; see output below.I'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
asdf
package manager with asdf-rust pluginAdditional context
I ended up here because I was reminded about
postgres_lsp
from a related HN thread posted today.