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.

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

@LionDigi

Description

@LionDigi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions