2

我正在将 Ideaj 配置为通过将其设置为外部工具来打开 Erlang REPL,但是工作目录参数被忽略。有没有办法在 REPL 打开后切换工作目录?

4

2 回答 2

2

在 shell 中使用该命令cd("some/path"),它的工作方式与您对普通 shell 的期望几乎相同。

这意味着您可以在项目目录中移动并运行c(module_name),也可以在本地加载路径中——这在手动调整/测试事物时非常方便。

顺便说一句……大多数人不使用带有 Erlang 的 IDE,因为 shell 已经内置了很多东西,而且你的操作系统本身已经有了你通常想要的任何其他工具。我还没有看到有人从 IDE 开始并在 Erlang 中坚持使用它(通常最终成为 Emacs 用户或走 vim + coreutils 路线)。

于 2014-12-15T22:31:53.627 回答
1

Also, pwd() and ls() work as you'd expect.

Regarding IDEs- I find the Erlang Intellij plugin (http://ignatov.github.io/intellij-erlang/) very usable, and when doing more than relatively short one-offs in vim (with Erlang plugin) the code completion and Find Usages kinds of IDE functionality to be useful.

Give it a shot - YMMV.

于 2014-12-16T15:17:40.993 回答