sui move build编译是总是遇到很多错误
想要输出一个hello却无法编译?毕竟这个是新人第一次要做得编码事件
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!
PS D:\SUI\web3\01\hello_world> sui move build [note] Dependencies on Bridge, MoveStdlib, Sui, and SuiSystem are automatically added, but this feature is disabled for your package because you have explicitly included dependencies on Sui. Consider removing these dependencies from Move.toml. UPDATING GIT DEPENDENCY https://github.com/MystenLabs/sui.git fatal: unable to access 'https://github.com/MystenLabs/sui.git/': Recv failure: Connection was reset INCLUDING DEPENDENCY Sui INCLUDING DEPENDENCY MoveStdlib BUILDING hello_world warning[W01004]: invalid documentation comment ┌─ .\sources\hello_world.move:34:5 │ 34 │ /// 简单的 Hello World 函数 │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ Documentation comment cannot be matched to a language item
warning[W09002]: unused variable ┌─ .\sources\hello_world.move:79:13 │ 79 │ let mut message = string::utf8(b"Hello, "); │ ^^^ Unused local variable 'mut'. Consider removing or prefixing with an underscore: '_mut' │ = This warning can be suppressed with '#[allow(unused_variable)]' applied to the 'module' or module member ('const', 'fun', or 'struct')
error[E01002]: unexpected token ┌─ .\sources\hello_world.move:79:17 │ 79 │ let mut message = string::utf8(b"Hello, "); │ ^^^^^^^ │ │ │ Unexpected 'message' │ Expected ';'
error[E03009]: unbound variable ┌─ .\sources\hello_world.move:85:29 │ 85 │ string::append(&mut message, name_str); │ ^^^^^^^ Unbound variable 'message'
error[E03009]: unbound variable ┌─ .\sources\hello_world.move:86:29 │ 86 │ string::append(&mut message, suffix); │ ^^^^^^^ Unbound variable 'message'
error[E03009]: unbound variable ┌─ .\sources\hello_world.move:92:13 │ 92 │ message, // 这里直接使用拼接好的 message │ ^^^^^^^ Unbound variable 'message'
Failed to build Move modules: Compilation error. PS D:\SUI\web3\01\hello_world> sui move build FETCHING GIT DEPENDENCY https://github.com/MystenLabs/sui.git Cloning into 'C:\Users\15236/.move\https___github_com_MystenLabs_sui_git_c1f1ae650fb9f9248b39a569400b4420820868db'... remote: Enumerating objects: 34380, done. remote: Counting objects: 100% (3/3), done. remote: Compressing objects: 100% (3/3), done. remote: Total 34380 (delta 0), reused 0 (delta 0), pack-reused 34377 (from 2) Receiving objects: 100% (34380/34380), 18.31 MiB | 692.00 KiB/s, done. Resolving deltas: 100% (3502/3502), done. INCLUDING DEPENDENCY Bridge INCLUDING DEPENDENCY SuiSystem INCLUDING DEPENDENCY Sui INCLUDING DEPENDENCY MoveStdlib BUILDING hello_world error[E03001]: address with no value ┌─ .\sources\hello_world.move:2:8 │ 2 │ module hello_simple::hello { │ ^^^^^^^^^^^^ address 'hello_simple' is not assigned a value. Try assigning it a value when calling the compiler
Failed to build Move modules: Compilation error. PS D:\SUI\web3\01\hello_world>
多次遇见,也修改很多,但总是失败