move-language / move

Apache License 2.0
2.24k stars 676 forks source link

Error while following tutorial, Error message : ' found when reading file. Only ASCII printable characters, tabs (\t), and line endings (\n) are permitted. #1099

Open LionDigi opened 4 months ago

LionDigi commented 4 months ago

Hello,

I am following the tutorial on https://diem.github.io/move/creating-coins.html

I am stuck and receive an error when trying to execute $ move sandbox publish src/modules

error[E01001]: invalid character
  ┌─ .\src\scripts\test-coin.move:1:9
  │
1 │ script {
' found when reading file. Only ASCII printable characters, tabs (\t), and line endings (\n) are permitted.

Currently I am using Windows 11.

My code for "Coin.move" file

address 0x2 {
    module Coin {

        struct Coin {
            value: u64,
        }

    }
}

I've no idea what is the meaning of the error, any help would be much appreciated.