简体   繁体   English

Mix.exs文件更改-(SyntaxError)mix.exs:65:意外令牌:“”(第1列,代码点U + 0000)

[英]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

EDIT: 编辑:

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.

相关问题 在我运行 docker compose up 后,我的 mac 返回错误,指出它找不到我的 mix phx.server。 如何向 docker 显示我的 mix.exs 文件在哪里? - After I run docker compose up, my mac returns error stating that it can't find my mix phx.server. How do I show docker where my mix.exs file is? 如何在Mac上以编程方式将2个音频文件混合为一个 - How to mix down 2 audio file into one programmatically on Mac Uncaught SyntaxError:意外的令牌非法-PHP和Javascript Zend Studio - Uncaught SyntaxError: Unexpected token ILLEGAL - PHP and Javascript Zend Studio Flipper 错误:检索市场插件时失败 SyntaxError: Unexpected token &lt; in JSON at position 0 - Flipper Error: Failed while retrieving marketplace plugins SyntaxError: Unexpected token < in JSON at position 0 c++ Boost Mix with Objective-c - c++ Boost Mix with objective-c 我可以将 Catalyst 与 MacOS 目标混合使用吗? - Can I mix Catalyst with MacOS target? “iex -S mix”返回错误服务器无法在Mac中启动 - “iex -S mix” returns error server cannot start in Mac opencv mix with Objective C for OS X app development? - Could opencv mix compile with Objective C for OS X app development? Qt链接库(C ++与目标C混合)错误 - Qt link library (C++ mix with objective C) error 在 bash if 语句中混合使用正则表达式和非正则表达式 - Mix of regex and non-regex in bash if-statement
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM