[英]Mix.exs file changes - (SyntaxError) mix.exs:65: unexpected token: “” (column 1, codepoint U+0000)
saving any changes made to mix.exs
file on Mac OS High Sierra 10.13.6 results in null character at beginning of file. 在Mac OS High Sierra 10.13.6上保存对mix.exs
文件所做的任何更改都会导致文件开头的字符为空。
I originally opened this against the intellij elixir plugin, but the problem is created from using ANY text editor (sublime, vim, intellij). 我最初是使用intellij elixir插件打开的,但是问题是使用ANY文本编辑器(sublime,vim,intellij)创建的。
demo of issue: https://github.com/KronicDeth/intellij-elixir/issues/1165 问题演示: https : //github.com/KronicDeth/intellij-elixir/issues/1165
What Mac setting is this? 这是什么Mac设置? How do I fix? 我该如何解决?
** (SyntaxError) mix.exs:65: unexpected token: "" (column 1, codepoint U+0000) (elixir) lib/code.ex:629: Code.load_file/2 (mix) lib/mix/cli.ex:29: Mix.CLI.proceed/1 (elixir) lib/code.ex:677: Code.require_file/2 **(SyntaxError)mix.exs:65:意外令牌:“”(第1列,代码点U + 0000)(elixir)lib / code.ex:629:Code.load_file / 2(混合)lib / mix / cli。例如:29:Mix.CLI.proceed / 1(elixir)库/代码。例如:677:Code.require_file / 2
All this weirdness happens when editing code on a mac, and running it within the VM (linux). 当在Mac上编辑代码并在VM(Linux)中运行代码时,就会发生所有这些怪异现象。
Are you on Erlang 21? 您正在使用Erlang 21吗? If so, try downgrading to Erlang 20. I've heard there are issues between that version and VirtualBox. 如果是这样,请尝试降级到Erlang20。我听说该版本和VirtualBox之间存在问题。 A similar question: https://elixirforum.com/t/error-unexpected-token-column-1-codepoint-u-0000-when-making-file-changes-with-a-code-editor/15785/3 一个类似的问题: https : //elixirforum.com/t/error-unexpected-token-column-1-codepoint-u-0000-when-making-file-changes-with-a-code-editor/15785/3
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.