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

Frans Schneider fchschneider@REDACTED
Thu Nov 29 10:43:58 CET 2018

Sorry for the late reply.

Still having trouble. After cleaning out the mess in my Emacs setup, I 
did the following:

- installed flycheck (version 31) from melpa
- installed flycheck-rebar3 (version 1.1.0) also from melpa
- check flycheck compile (C-c ! C-c) gives no errors with the output:

   rebar3 compile
   ===> Verifying dependencies...
   ===> Compiling myapp

   Compilation finished at Thu Nov 29 10:23:32

- introducing an error in the rebar.conf file and editing an Erlang 
file, tells me flycheck does use the erlang-rebar3 checker with the 
following error:

   Suspicious state from syntax checker erlang-rebar3...

So I guess the setup is correct.
Any more suggestions?


On 11/27/18 3:29 PM, Tristan Sloughter wrote:
> 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