简体   繁体   English

Erlang 找不到.erlang 文件

[英]Erlang cannot find .erlang file

This is my first Erlang project, so obviously I have a long way to go.这是我的第一个 Erlang 项目,所以显然我距离 go 还有很长的路要走。 My problem is that Erlang keeps looking for a file called ".erlang".我的问题是 Erlang 一直在寻找一个名为“.erlang”的文件。 Here, for example, is my first project incantation:例如,这里是我的第一个项目咒语:

C:\Users\niels\Documents\Edev>mix new hello
=ERROR REPORT==== 25-Sep-2022::21:14:02.952000 ===
file:path_eval(["U:\\","c:/Users/niels/AppData/Roaming/erlang"],".erlang"): no such device or address

* creating README.md
* creating .formatter.exs
* creating .gitignore
* creating mix.exs
* creating lib
* creating lib/hello.ex
* creating test
* creating test/test_helper.exs
* creating test/hello_test.exs

Your Mix project was created successfully.
You can use "mix" to compile it, test it, and more:

    cd hello
    mix test

Run "mix help" for more commands.

My interpretation is that Erlang looks for the file ".erlang", first in the root of the U: drive (which Windows set up as my home folder) and then in my private "erlang" folder.我的解释是 Erlang 查找文件“.erlang”,首先在 U: 驱动器的根目录中(Windows 设置为我的主文件夹),然后在我的私人“erlang”文件夹中。 The mix command seems to have worked but that error message annoys me. mix 命令似乎有效,但该错误消息让我很恼火。 I did try to create an empty file ".erlang" and put it in my c:/Users/niels/AppData/Roaming/erlang folder but the error message persists.我确实尝试创建一个空文件“.erlang”并将其放在我的 c:/Users/niels/AppData/Roaming/erlang 文件夹中,但错误消息仍然存在。

The mix tool you use is for Elixir not Erlang.您使用的混合工具适用于 Elixir 而不是 Erlang。 The Erlang equivalent tool you need is rebar3.您需要的 Erlang 等效工具是 rebar3。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM