先上结论,有两种可能:

1. git的user.name使用了中文

通过git config use.name ‘myname’ 改成英文

2. 没有以管理员身份运行命令行工具

详情

在使用rebar3的时候,无论是编译还是创建erlang项目,都会有提示错误,说是有非法的参数

rebar3 new app myapp
......
===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace or consult rebar3.crashdump
===> Uncaught error: badarg

但是查看rebar3.crashdump,发现错误信息只有下边这两行

//rebar3.crashdump
Error: badarg
[]

后边查询资料,发现没有和我相同问题的,判断应该是我这边配置的问题。加上debug=1后执行,发现中间有很多获取本地git的use.name use.email配置的信息,然后我查看这两个配置,发现user.name是中文,怀疑是编码的问题,修改后果然好了。

debug=1 rebar3 new app myapp
===> Expanded command sequence to be run: [{default,new}]
===> Provider: {default,new}
===> Available templates: [{"app",escript,"rebar/priv/templates/app.template"},{"cmake",escript,"rebar/priv/templates/cmake.template"},{"escript",escript,"rebar/priv/templates/escript.template"},{"lib",escript,"rebar/priv/templates/lib.template"},{"plugin",escript,"rebar/priv/templates/plugin.template"},{"release",escript,"rebar/priv/templates/release.template"},{"umbrella",escript,"rebar/priv/templates/umbrella.template"}]===> Available templates: [{"app",escript,"rebar/priv/templates/app.template"},{"cmake",escript,"rebar/priv/templates/cmake.template"},{"escript",escript,"rebar/priv/templates/escript.template"},{"lib",escript,"rebar/priv/templates/lib.template"},{"plugin",escript,"rebar/priv/templates/plugin.template"},{"release",escript,"rebar/priv/templates/release.template"},{"umbrella",escript,"rebar/priv/templates/umbrella.template"}]===> sh info:cwd: "d:/Data/Erlang"cmd: git config --global user.name===>    opts: [return_on_error]===> Port Cmd: cmd /q /c git config --global user.name
Port Opts: [exit_status,{line,16384},use_stdio,stderr_to_stdout,hide,eof,binary]
........===> Executing template file "app.erl"
===> File "myapp/src/myapp_app.erl" already exists
===> Executing template file "sup.erl"
===> File "myapp/src/myapp_sup.erl" already exists
===> Executing template file "otp_app.app.src"
===> File "myapp/src/myapp.app.src" already exists
===> Executing template file "app_rebar.config"
===> File "myapp/rebar.config" already exists
===> Executing template file "gitignore"
===> File "myapp/.gitignore" already exists
===> Executing template file "LICENSE"
===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace or consult rebar3.crashdump
===> Uncaught error: badarg
===> When submitting a bug report, please include the output of `rebar3 report "your command"`

【erlang】rebar3创建、编译报错:badarg相关推荐

  1. less background url相对路径取不到编译报错问题

    2019独角兽企业重金招聘Python工程师标准>>> 用react create app创建一个项目 执行npm run test 添加less支持,并添加modules:true ...

  2. 【错误记录】Android Studio 4.2.1 编译报错 ( 设置支持的 Java 和 Kotlin 版本 | java.lang.BootstrapMethodError )

    文章目录 一.报错信息 二.解决方案 一.报错信息 更新了 Android Studio 到 4.2.14.2.14.2.1 , 打开之前的老项目 , 部分界面是由 Kotlin 开发的 , 进入 K ...

  3. android 编译报错,android avc 编译报错neverallow问题查找

    android avc 编译报错neverallow问题查找 2020年08月11日 | 萬仟网移动技术 | 我要评论 在修改avc后,有时候编译会报错neverallow.这个具体是在什么地方定义的 ...

  4. php baocuo error,PHP编译报错configure: error: Cannot find libmysqlclient under /usr.

    今天编译PHP的时候遇到了几个错误,记录一下 第一次编译的时候报错如下: configure: error: mcrypt.h not found. Please reinstall libmcryp ...

  5. linux jsp 编译报错,JSP简要介绍

    JSP全称为Java Server Pages,其根本是一个简化的Servlet设计,实现了在Java中使用html标签.JSP是一种动态网页技术标准,也是JavaEE的标准.JSP同Servlet一 ...

  6. Android 12源码编译报错:FAILED: out/soong/build.ninja

    Android 12源码编译报错:FAILED: out/soong/build.ninja android12源码编译中报如下错误: 网上查了比较多资料发现是swap分区不够导致的,报错时使用fre ...

  7. CCS编译报错“tirtos_builds_cc32xx_release_does not exist in the workspace……”如何解决?

    CCS中一个正常的项目文件夹包括两个文件夹,一个是项目的代码文件夹,另一个是tirtos_builds_cc32xx_release_ccs文件夹,如下图所示: 这个报错是因为该项目的文件夹中 要么没 ...

  8. Maven - 编译报错Execution repackage of goal spring-boot-maven-plugin;Unable to find main class

    Maven - 编译报错Execution repackage of goal spring-boot-maven-plugin;Unable to find main class 一. common ...

  9. ubuntu 找不到mysql.h_ubuntu安装了mysql 但是编译报错 mysql.h: No such file or directory

    在Ubuntu体系中,已经安装了mysql,即应用sudo apt-get install mysql-server mysql-client 但是用C编译mysql数据库时,报错 fatal err ...

  10. Android Studio 的一些 常用操作和 编译报错 整理(持续更新中...)

    Android Studio 的一些 常用操作和 编译报错 整理(持续更新中...) 目录 Android Studio 的一些 常用操作和 编译报错 整理(持续更新中...) 一.Android s ...

最新文章

  1. CVPR2020 | 参数量减半,北大开源全新高效空域转换模块,还原图像逼真细节
  2. ProjectorShadow 和 ShadowMap对比
  3. 推荐20款基于 jQuery CSS 的文本效果插件
  4. const在c语言中作用,在C语言中const作用全面总结.doc
  5. Tensorflow教程: tf.Variable() 和tf.get_variable()
  6. Transformer新内核Synthesizer:低复杂度的attention代替点乘式的注意力机制
  7. 浮动和清浮动,内外边距和margin的坑
  8. 【web组件库系列】纯CSS实现典型网页数据分页器
  9. 计算机作业个人简历word,计算机毕业生个人简历模板word模板
  10. 房屋户型图设计工具Room Arranger for Mac
  11. c语言中windows头文件,windows与linux 标准c语言头文件
  12. 毕业论文系列-公式编号-等号对齐及编号
  13. 微信记账本小程序(代码+功能介绍)
  14. 实现微信打开网页时,获取当前微信用户信息(Java)(基于snsapi_userinfo方式)
  15. 源码解析-偏向锁撤销流程解读
  16. 为什么使用 LinkedIn 进行联盟营销活动?
  17. Python编写一个程序来计算 BMI 值。
  18. 常用搜索引擎链接及参数
  19. 技术沙龙|这期我们聊聊软件工程师的区块链升级挑战(杭州)
  20. docker manifest 使用实战

热门文章

  1. 【算法】05 Gibbs采样估计线性回归参数
  2. DP1.4协议 关键特性总结
  3. 数字图像处理|Matlab-数字图像编码实验-有损压缩/压缩算法实验-JPEG编码压缩
  4. 【懒人必备】一款Android自动设置代理神器
  5. TCP协议:SYN、ACK、ISN、SeqNumber
  6. html5模拟真实摇骰子,js实现简单掷骰子效果
  7. mysql 存储 session
  8. 机械学习与R语言--Naive Bayes 朴素贝叶斯在R语言中的实现
  9. Python 命名管道
  10. 《笑着离开惠普》读书笔记之领导艺术和人才培养