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

VSCode sui-move-analyzer plugin problem #1109

@cyberpo9t

Description

@cyberpo9t

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions