使用代码编辑器更改文件时出现错误意外标记:“”(第 1 列,代码点 U+0000)

Error unexpected token: "" (column 1, codepoint U+0000) when making file changes with a code editor

每当我使用 Atom 或 PhpStorm 对文件进行更改时,我都会收到以下错误:

unexpected token: "" (column 1, codepoint U+0000)

但是,如果我使用 VIM,它工作正常。这是怎么回事?我过去在编写 Elixir 时使用过 PhpStorm,没有遇到任何问题。我正在使用 Ubuntu 18.04 和 PhpStorm。 2018.2

我在 Vagrant 中切换到 Ubuntu 18.04 盒子,问题不再出现。