Code Monkey home page Code Monkey logo

Comments (7)

kostis avatar kostis commented on May 16, 2024

I am afraid I cannot reproduce what you are reporting. Is it possible that you need to do a 'make distclean' first? Do you have a compile_flags.hrl file in the include dir? (This file could actually be empty, depending on the OTP version you are using.)

from proper.

fisher avatar fisher commented on May 16, 2024

I'm sorry, but bug still in there. It can't be reproduced when compiled as a standalone application. Instead, try to compile it as 'dependency' application usin 'rebar' tool:

==> vsports (get-deps)
[...]
Pulling proper from {git,"https://github.com/manopapad/proper.git","master"}
Cloning into 'proper'...
[...]
==> proper (compile)
src/strip_types.erl:50: Warning: missing specification for function parse_transform/2
Compiled src/strip_types.erl
include/proper_internal.hrl:26: can't find include file "compile_flags.hrl"
make: *** [all] Error 1

The file compile_flags.hrl didn't created, find (1) didn't found it. I think this is because you try to execute 'write_compile_flags' script in current directory, when, in fact, the current directory is for upper level application and proper located in 'deps/proper' directory.

from proper.

kostis avatar kostis commented on May 16, 2024

I see. However, I am not convinced that this is a problem in PropEr instead of your rebar use or your directory structure.
For example, due to issues 23, 25 and 26 , I know for a fact that there are various projects that use PropEr as a dependency and do not have the problem that you reported (this is because they found other problems, which by now are solved). You may want to look at the code bases of the developers that reported the issues and get some inspiration on how to add PropEr as a dependency in your code base.

In any case, if you do not manage to fix the problem in the way I suggested, we'll gladly consider to include in PropEr's code base a pull request that fixes the problem.

from proper.

kostis avatar kostis commented on May 16, 2024

Is this issue fixed by now or you still have problems? If you have managed to solve it somehow we would be interested in finding out how this was done and possibly incorporate your fix into PropEr.

from proper.

kostis avatar kostis commented on May 16, 2024

Since a month has passed and there have been no replies from the person staring this thread, I am closing it. Open a new issue if there are still problems.

from proper.

JonGretar avatar JonGretar commented on May 16, 2024

For those who end up here after google search of this error. It's caused by having too old version of rebar installed. Just upgrade rebar and you will be fine.

from proper.

jstasiak avatar jstasiak commented on May 16, 2024

I had the same issue and your note helped solving it. Thank you @JonGretar.

from proper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.