【转载】stackoverflow 上关于 rebar 的讨论

简介:

  rebar-include-ext-libs-error    

Your config file worked for me so I'd suggest doing the following:  
  • make sure you have git installed
  • put the most recent build of rebar in your project directory
  • use a Makefile like the one I described here
  • delete your existing deps directory
  • run make
If you want to use rebar directly instead of using make you can do:  
?
1
2
$ . /rebar get-deps
$ . /rebar compile


  erlang-and-toolchains    

Editor: you can use whatever you want. I used emacs for my first year of erlang, but I'm currently using gedit.  
Version Control: I like git. It seems that most of the erlang community agrees (most projects are hosted on github).  
Workflow: I'd recommend getting familiar with rebar.  

Here is an example of a rebar-flavored Makefile:  
?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
REBAR := . /rebar
 
.PHONY: all deps doc test clean release
 
all: deps
     $(REBAR) compile
 
deps:
     $(REBAR) get-deps
 
doc:
     $(REBAR) doc skip_deps= true
 
test :
     $(REBAR) eunit skip_deps= true
 
clean:
     $(REBAR) clean
 
release: all test
     dialyzer --src src/*.erl deps/* /src/ *.erl
Here are some basic pointers:  
  • Put your unit tests in the same modules as the code they are testing. See the rebar wiki for details.
  • Add {cover_enabled, true} to your rebar.config file. Every time you run make test you get a coverage report in HTML!
  • Add your project's dependencies to your rebar.config and you can fetch and build them when you run make deps.
  • Make sure to comment your code with edoc. If you do, rebar can build all of your docs when your run make doc.
目录
相关文章
|
8月前
|
数据可视化 数据挖掘 Linux
​分享小知识点,顺便考考ChatGPT
​分享小知识点,顺便考考ChatGPT
​分享小知识点,顺便考考ChatGPT
|
8月前
|
Go
如何利用ChatPDF快速阅读英文论文,帮你写文章
如何利用ChatPDF快速阅读英文论文,帮你写文章
112 0
|
11月前
|
机器学习/深度学习 移动开发 前端开发
想加入大厂?看这篇文章也许会帮助到你
相信加入互联网大厂是每个程序员梦寐以求的事情,无论是从工作环境、员工福利,或者说是技术氛围以及接触到的人所给你带来的一些好的机遇,都是值得我们去追求的,因此程序员可以在职业生涯初期、或者在整个职业生涯中加入过大厂,无论对自己的履历还是阅历都是很有帮助的一件事。
75 0
想加入大厂?看这篇文章也许会帮助到你
|
Python
一个在交流群里讨论过两轮的问题,答案竟然跟一个 PEP 有关
这个问题的关键是要使用在 Python 3.3 中引入的__qualname__ 属性,通过它可以获取上层类的名称。 铺垫了这么多,开始进入本文的正题了:__qualname__ 属性是什么东西?为什么 Python 3 要特别引入它呢?
101 0
|
搜索推荐 定位技术 iOS开发
用了 Google 这么久,竟然不知道还有这些高级技巧
搜索引擎基本上是我们每个人天天都要用的东西,但大部分人使用搜索引擎的时候多半是输入关键字之后直接回车,那么你是否遇到过在试了各种关键字之后依然没找到自己想要的答案的时候呢,搜索引擎是智能的,同时也是不智能的,比如我们输入关键字苹果,它怎么知道你是想找水果苹果,还是想找苹果手机呢。
122 0
用了 Google 这么久,竟然不知道还有这些高级技巧
|
Java 程序员 API
Stackoverflow 高赞答案,为什么牛逼的程序员都不用 “ ! = null ' 做判空?
Stackoverflow 高赞答案,为什么牛逼的程序员都不用 “ ! = null ' 做判空?
88 0
|
自然语言处理 JavaScript 前端开发
2018-07-18 万马齐喑究可哀-中文编程的又一波"讨论"
对问题"假设中国人最先开发电脑和设计程序语言,那么各种程序语言会使用汉字吗?"的回应. A response to the question "what if the Chinese invented computer first?"
808 0
以前的摘录
图片发自简书App
702 0

相关实验场景

更多