Giter VIP home page Giter VIP logo

Comments (3)

cprudhom avatar cprudhom commented on August 26, 2024

Hi,

I'm not sure I got your needs.
We do not plan to make the current code java 7 compliant, but you can fork the code and change it the way you like.

CP

from choco-parsers.

thierry-martinez avatar thierry-martinez commented on August 26, 2024

Hi!

CP:

I'm not sure I got your needs.

Well, I just need to be able to compile choco-parsers!

My remark is that the code as it is shared on GitHub does not compile.

Here is how to reproduce the problem:
$ git clone https://github.com/chocoteam/choco-parsers.git
$ cd choco-parsers
$ mvn clean compile
[...]
[INFO] BUILD FAILURE
[...]
[ERROR] [...]/src/main/java/parser/flatzinc/Flatzinc.java:[101,42] error: method references are not supported in -source 1.7

That is because the code uses Java 1.8 features (as I said in my initial report) but the pom.xml file that you distribute declares Java 1.7. You may want to change 1.7 to 1.8 for source and target in the pom.xml of the project, otherwise all of your users would have to make this change manually.

$ sed -i -e s/1.7/1.8/ pom.xml

Besides of that, even with the above correction, the code that is distributed does not compile as it is.

$ mvn clean compile
[...]
[INFO] BUILD FAILURE
[...]
[ERROR] [...]/src/main/java/parser/flatzinc/Flatzinc4Parser.java:[39,22] error: cannot find symbol

You may want to put the right package path for FZNLayout, otherwise all of your users would have to make this fix manually.
$ sed -i -e s/parser.flatzinc.FZNLayout/parser.flatzinc.layout.FZNLayout/ src/main/antlr4/parser/flatzinc/Flatzinc4Parser.g4

$ mvn clean compile
[...]
[INFO] BUILD SUCCESS

Best regards.

Thierry.

----- Original Message -----

From: "cprudhom" [email protected]
To: "chocoteam/choco-parsers" [email protected]
Cc: "thierry-martinez" [email protected]
Sent: Tuesday, September 1, 2015 1:37:57 PM
Subject: Re: [choco-parsers] java 1.8 needed and wrong package for FZNLayout
(#6)

Hi,
I'm not sure I got your needs.
We do not plan to make the current code java 7 compliant, but you can fork
the code and change it the way you like.
CP

Reply to this email directly or view it on GitHub .

from choco-parsers.

cprudhom avatar cprudhom commented on August 26, 2024

Ok, I didn't understand that you gave us a patch. Sorry for the misunderstanding and thank you for your help, I'll fix it right now.

CP

from choco-parsers.

Related Issues (18)

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.