简体   繁体   English

如何为erlang构建工具rebar3配置Intellij?

[英]How to configure Intellij for the erlang build tool rebar3?

I have started developing for Erlang using Rebar3 in the IntelliJ IDE and have run into the following problem - when trying to use the ide to clean or run i get the following error:我已经开始在 IntelliJ IDE 中使用 Rebar3 为 Erlang 开发并遇到以下问题 - 当尝试使用 ide 进行清理或运行时,我收到以下错误:

Testing started at 8:33 AM ... D:\\DevelopmentTools\\erl10.0.1\\bin\\escript.exe D:\\DevelopmentTools\\erl10.0.1\\rebar\\rebar3.cmd skip_deps=true clean -CC:\\Users\\coreRNM\\AppData\\Local\\Temp\\eunit_teamcity1\\rebar.config D:\\DevelopmentTools\\erl10.0.1\\rebar\\rebar3.cmd:2: syntax error before: set escript: There were compilation errors.测试在上午 8:33 开始... D:\\DevelopmentTools\\erl10.0.1\\bin\\escript.exe D:\\DevelopmentTools\\erl10.0.1\\rebar\\rebar3.cmd skip_deps=true clean -CC:\\Users\\coreRNM\\ AppData\\Local\\Temp\\eunit_teamcity1\\rebar.config D:\\DevelopmentTools\\erl10.0.1\\rebar\\rebar3.cmd:2:之前的语法错误:set escript:存在编译错误。

It should be a fairly easy configuration but the code breaks in the following location.它应该是一个相当简单的配置,但代码在以下位置中断。

@echo off setlocal set rebarscript=%~f0 escript.exe "%rebarscript:.cmd=%" %* @echo off setlocal set rebarscript=%~f0 escript.exe "%rebarscript:.cmd=%" %*

My question is: has anyone experienced this before or am I missing something?我的问题是:以前有没有人经历过这种情况,或者我错过了什么?

Honestly, I have no idea what's happened here and it doesn't look like an integration issue.老实说,我不知道这里发生了什么,而且看起来不像是集成问题。 Better ask guys about running rebar3 on Windows.最好询问有关在 Windows 上运行 rebar3 的问题。

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

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