E1105: module source file cannot be read

View source

The compiler reads every file of a module: the facade and its siblings.

The compiler reads every file of a module: the facade and its siblings. This error means that the operating system could not read one of them. The message names the file and the reason given by the system. The error is reported on the file that cannot be read, with no line and column, and not on the file that imports the module.

Cause

The file exists, but its content cannot be read as text. The common causes are:

  • the file is not valid UTF-8, for example after an editor saved it in another encoding;
  • the user who runs the compiler has no read permission on the file.

The same fault in the entry file that actus check is given is reported with this code too, on that file and with no line and column, as src/main.act: error[E1105]: cannot read `src/main.act`: <reason>. A program cannot trigger this error on purpose, so it has no example.

Fix

Save the file as UTF-8 and give the user who runs the compiler read permission on it. Then run the command again.


Run actus explain E1105 in your terminal to read this entry offline. Browse Modules & rules or all error codes.