Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

VSCode sui-move-analyzer plugin problem #1109

Open
cyberpo9t opened this issue Apr 8, 2024 · 1 comment
Open

VSCode sui-move-analyzer plugin problem #1109

cyberpo9t opened this issue Apr 8, 2024 · 1 comment

Comments

@cyberpo9t
Copy link

When I use the sui-move-analyzer plugin in VSCode, I encountered the following issues:

parse manifest '"/home/user/.move/https___github_com_MystenLabs_sui_git_framework__testnet/crates/sui-framework/packages/sui-framework" 'failed.
 addr must exactly 32 length or start with '0x' like '0x2'
Error parsing '[package]' section of manifest

Caused by:
    Invalid 'edition'. Unsupported edition "2024.beta". Current supported editions include: "legacy", "2024.alpha"

My Move.toml :

[package]
name = "task1"

version = "1.0.0"
edition = "2024.alpha"
license = "MIT"
authors = ["Joe Smith (joesmith@noemail.com)"]

[dependencies]
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "framework/testnet" }

[addresses]
task1 = "0x0"

[dev-dependencies]

[dev-addresses]

My VSCode settings.json:

{
  "sui-move-analyzer.server.path": "~/.cargo/bin/sui-move-analyzer",
  "move-analyzer.server.path": "~/.cargo/bin/move-analyzer",
  "move.server.path": "~/.cargo/bin/move-analyzer"
}

The command executed during the installation of sui-move-analyzer is:

cargo install --git https://github.com/movebit/move --branch sui_move_analyzer sui-move-analyzer

I made some attempts to resolve this issue, and eventually, I found that installing sui-move-analyzer with another command, while keeping all configurations unchanged, solved the problem.

cargo install --git https://github.com/movebit/move --branch move-analyzer2 move-analyzer

By using this command to install move-analyzer and then renaming it to sui-move-analyzer, the issue was perfectly resolved.
So, is there a bug in the sui_move_analyzer branch?

@MentalistTR
Copy link

for the beta version you should mystan labs move analyzer

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

No branches or pull requests

2 participants