【转载】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.
目录
打赏
0
0
0
0
34
分享
相关文章
开源项目在面试中的作用:如何用你的贡献加分
开源项目在面试中的作用:如何用你的贡献加分
137 0
大厂刷题实录:GitHub上获79w+ star,谷歌师兄的算法刷题笔记火了
最近一位谷歌大牛当时为了应对校招刷了几百道算法题,整理的LeetCode刷题笔记火了! 总结了他对校招算法刷题的心得+经验,整理出了这份在GitHub上火爆的LeetCode刷题笔记
大厂刷题实录:GitHub上获79w+ star,谷歌师兄开源的刷题笔记火了
最近一位谷歌大牛当时为了应对校招刷了几百道算法题,整理的LeetCode刷题笔记火了! 总结了他对校招算法刷题的心得+经验,整理出了这份在GitHub上火爆的LeetCode刷题笔记
疑惑、问题、生疏及解决(持续更新)
疑惑、问题、生疏及解决(持续更新)
159 0
疑惑、问题、生疏及解决(持续更新)
一个在交流群里讨论过两轮的问题,答案竟然跟一个 PEP 有关
这个问题的关键是要使用在 Python 3.3 中引入的__qualname__ 属性,通过它可以获取上层类的名称。 铺垫了这么多,开始进入本文的正题了:__qualname__ 属性是什么东西?为什么 Python 3 要特别引入它呢?
136 0
Stackoverflow 高赞答案,为什么牛逼的程序员都不用 “ ! = null ' 做判空?
Stackoverflow 高赞答案,为什么牛逼的程序员都不用 “ ! = null ' 做判空?
127 0
知乎高赞:985计算机视觉毕业后找不到工作怎么办?怒刷leetcode,还是另寻他路?
985 研究生,学计算机视觉,出来后找不到工作?本文带你看看这个 70 万浏览量问题下的答案干货:真正的人才什么时候都紧缺,搞扎实自己的基本功比什么都重要。心态放平,好好刷 leetcode,好 offer 总在不远处。
4176 0
知乎高赞:985计算机视觉毕业后找不到工作怎么办?怒刷leetcode,还是另寻他路?
2018-07-18 万马齐喑究可哀-中文编程的又一波"讨论"
对问题"假设中国人最先开发电脑和设计程序语言,那么各种程序语言会使用汉字吗?"的回应. A response to the question "what if the Chinese invented computer first?"
843 0
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等