Skip to content

Project fails to build on macOS Sonoma 14.1.1 (arm64) #60

@Nezteb

Description

@Nezteb

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 --recursive and verified the submodule was populated correctly.
  • Then I ran cargo xtask install but 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`: 101

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

  • macOS Sonoma 14.1.1
  • asdf package 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.0

Additional context

I ended up here because I was reminded about postgres_lsp from a related HN thread posted today.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions