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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] whenever compile move-cli has failed #10349

Open
lgphp opened this issue Aug 1, 2022 · 13 comments
Open

[Bug] whenever compile move-cli has failed #10349

lgphp opened this issue Aug 1, 2022 · 13 comments
Labels
bug Something isn't working

Comments

@lgphp
Copy link

lgphp commented Aug 1, 2022

馃悰 Bug

cargo install got a error :

error: 1 positional argument in format string, but no arguments were given
--> language/tools/move-cli/src/sandbox/utils/on_disk_state_view.rs:290:38
|
290 | bail!("Bad bytecode path {:?}. Needed file, found directory")
| ^^^^

error: could not compile move-cli due to previous error

@lgphp lgphp added the bug Something isn't working label Aug 1, 2022
@lgphp
Copy link
Author

lgphp commented Aug 1, 2022

in on_disk_state_view.rs at line 246 has same error

@magj2006
Copy link

magj2006 commented Aug 2, 2022

I also met this issue.

鎴睆2022-08-02 18 04 06

@lc
Copy link

lc commented Aug 3, 2022

I've also just encountered this:

error: 1 positional argument in format string, but no arguments were given
   --> language/tools/move-cli/src/sandbox/utils/on_disk_state_view.rs:246:38
    |
246 |             bail!("Bad resource path {:?}. Needed file, found directory")
    |                                      ^^^^

error: 1 positional argument in format string, but no arguments were given
   --> language/tools/move-cli/src/sandbox/utils/on_disk_state_view.rs:290:38
    |
290 |             bail!("Bad bytecode path {:?}. Needed file, found directory")
    |                                      ^^^^

error: could not compile `move-cli` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
warning: `move-model` (lib) generated 7 warnings
error: failed to compile `move-cli v0.1.0 (https://github.com/diem/diem#37fc28b3)`, intermediate artifacts can be found at `/var/folders/jh/x16r0qkd57gfgrwcxxpqpthc0000gn/T/cargo-installoAbfyo`

@ThreeAndTwo
Copy link

I've also just encountered this on m1 for Mac.

@Arinerron
Copy link

image
let's freaking gooooo

@Arinerron
Copy link

how did this buggy code even make it into main lol

@ifelsedeveloper
Copy link

Have the issue

@qq335103060
Copy link

image

image

@FineKe
Copy link

FineKe commented Aug 24, 2022

same wrong
image

@lgphp
Copy link
Author

lgphp commented Aug 29, 2022

You guys can compiled after fix the problem from source code

@exqlnet
Copy link

exqlnet commented Aug 29, 2022

Same error in mac m1. Does anyone have resolved it? I'm new to Rust. 馃槶

@deekshitLD
Copy link

Got the same issue on my M1 mac. Any fixes yet?

@deekshitLD
Copy link

Try and Run sudo cargo install --git https://github.com/diem/move move-cli --branch main

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

10 participants