Skip to content

Windows CLI not working as expected #21515

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

Open
alvissraghnall opened this issue Mar 17, 2025 · 8 comments
Open

Windows CLI not working as expected #21515

alvissraghnall opened this issue Mar 17, 2025 · 8 comments
Assignees
Labels
cli Command line tools

Comments

@alvissraghnall
Copy link

Steps to Reproduce Issue

download the sui binary for windows.
run sui move build

Expected Result

to run? or at least provide feedback of run details.

Actual Result

freezes. basically runs forever.

System Information

  • OS: Windows 10
  • Compiler: sui 1.44.3-615516edb0ed
Copy link
Contributor

Thank you for opening this issue, a team member will review it shortly. Until then, please do not interact with any users that claim to be from Sui support and do not click on any links!

@stefan-mysten
Copy link
Contributor

@alvissraghnall Windows is a bit buggy.

You might need to run a PowerShell with admin enabled. You also need to set git config --system core.longpaths true.

Ultimately, if these don't work, try using WSL2, that should be more straightforward.

@stefan-mysten
Copy link
Contributor

Also, try to update Git to the latest version.

@stefan-mysten stefan-mysten self-assigned this Mar 17, 2025
@stefan-mysten stefan-mysten added the cli Command line tools label Mar 17, 2025
@stefan-mysten stefan-mysten changed the title Sui Code Bug or Feature Request Windows CLI not working as expected Mar 17, 2025
@Banksy-w
Copy link

I encountered the same problem, it's because there's nothing in the [dependencies] in the move.toml file after running sui move new <name>, add this Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "framework/testnet", override = true } to the [dependencies] and then run sui move build again . it works for me.

@alvissraghnall
Copy link
Author

I encountered the same problem, it's because there's nothing in the [dependencies] in the move.toml file after running sui move new <name>, add this Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "framework/testnet", override = true } to the [dependencies] and then run sui move build again . it works for me.

Running sui move new already includes that line in move.toml …

@alvissraghnall
Copy link
Author

@alvissraghnall Windows is a bit buggy.

You might need to run a PowerShell with admin enabled. You also need to set git config --system core.longpaths true.

Ultimately, if these don't work, try using WSL2, that should be more straightforward.

This worked. But eventually I didn't have to use powershell on admin. git bash & cmd worked just fine. However, it only worked when I closed Vs code in the background. So I guess it's something to do with Vs code running move-analyzer lsp server in the background…

@stefan-mysten
Copy link
Contributor

Just for your info @alvissraghnall, we just had a new release of VSCode plugin.

@stefan-mysten
Copy link
Contributor

#21515 (comment)

@Banksy-w - we introduced a new feature that does not require you to add those deps anymore by hand, but it seems there's a strange interaction with the IDE that we're working on to fix.

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

No branches or pull requests

3 participants