diem/move

[Bug]cant run debug_script.move

Opened this issue · 2 comments

zq19 commented

when i run the debug_script.move. here are two issue:
1、Error: Unable to find package manifest in '.' or in its parents. i have solved it through create a new package named manifest.
2、error[E01001]: invalid character
┌─ ./sources/debug_script.move:1:9

1 │ script {
' found when reading file. Only ASCII printable characters, tabs (\t), and line endings (\n) are permitted.

zq19 commented

i have know the reason.
reason: newline
ide:sublime、vscode
when i keep all code in one line,it worked------
script {use Std::Debug;fun debug_script(account: signer) {Debug::print(&account)}}
but the form is too diffcult to use and read,can you fix it ?

I have same error, which ide should we use to pass this problem!