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

Functions download throwing rust error on windows PC #252

Open
lucas-codes-stuff opened this issue Jan 11, 2024 · 4 comments
Open

Functions download throwing rust error on windows PC #252

lucas-codes-stuff opened this issue Jan 11, 2024 · 4 comments

Comments

@lucas-codes-stuff
Copy link

Describe the bug
Currently trying to download a function from my Supabase project and it's throwing a strange error no matter what I do

Error states:

thread 'main' panicked at crates/sb_graph/lib.rs:144:61:
called Result::unwrap() on an Err value: StripPrefixError(())
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
error running container: exit 101
Try rerunning the command with --debug to troubleshoot the error.

To Reproduce
Steps to reproduce the behavior:

  1. init and login to supabase cli
  2. download function from online project
  3. error throws

Expected behavior
The function is downloaded locally

Screenshots
image

Desktop (please complete the following information):

  • OS: Win 11
  • Version of CLI v 1.131.3
@sweatybridge
Copy link

Could you run supabase functions download userAdd --create-ticket to send a crash report? It helps us collect context information to help reproduce.

@sweatybridge sweatybridge transferred this issue from supabase/cli Jan 26, 2024
@nyannyacha
Copy link
Collaborator

Note: This is probably due to a Windows path separator being in the argument.

@nyannyacha
Copy link
Collaborator

fn main() {
    let x = Path::new("\\aaa\\aa");

    dbg!(x.strip_prefix("/"));
}
[src/main.rs:6] x.strip_prefix("/") = Err(
    StripPrefixError(
        (),
    ),
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants