[erlang-questions] Emacs + Flycheck + rebar3 + proper

Tristan Sloughter t@REDACTED
Tue Nov 27 15:29:06 CET 2018


Hm, I'm surprised flycheck-rebar3 doesn't fix it. 

It should be compiling with rebar3 and parsing the errors from it, meaning if it builds with rebar3 in the terminal there should be no errors. Can you check the messages buffer for output? And ensure it is indeed running rebar3 when doing the check.

On Tue, Nov 27, 2018, at 02:36, Frans Schneider wrote:
> Yes, I use `rebar3 as test proper`, or just `rebar3 proper`, to tun the 
> tests. It's just while editing that it gives the error `can't find 
> include lib "proper/include/proper.hrl`
> 
> The flycheck-rebar3 checker doesn't help: to bad.
> 
> I am switching between projects on a regular basis, so it would be nice 
> if setting the ERL_LIBS path would be done auto-magically.
> 
> 
> 
> 
> On 11/26/18 8:58 PM, Tristan Sloughter wrote:
> > Is it building with rebar3? I use https://github.com/joedevivo/flycheck-rebar3
> > 
> > If it isn't building with rebar3 and you don't want it to then you'd need to be setting ERL_LIBS to include the libs in the _build directory.
> > 
> > On Mon, Nov 26, 2018, at 02:18, Frans Schneider wrote:
> >> Hi all,
> >>
> >> In emacs while editing PropEr tests, flycheck complains about not being
> >> able to find "proper/include/proper.hrl" which is obvious since that lib
> >> is somewhere sitting in the _build directory and not defined in ERL_LIBS.
> >> How do you guys configure emacs in a situation like this?
> >> PropEr is part of the test profile in rebar3.
> >>
> >> Thanks.
> >>
> >> Frans
> >> _______________________________________________
> >> erlang-questions mailing list
> >> erlang-questions@REDACTED
> >> http://erlang.org/mailman/listinfo/erlang-questions
> > _______________________________________________
> > erlang-questions mailing list
> > erlang-questions@REDACTED
> > http://erlang.org/mailman/listinfo/erlang-questions
> > 



More information about the erlang-questions mailing list