Comments (3)
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.
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.
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)
- Ease parser access
- Simplify options/configuration of the parsed model HOT 2
- Move parallel process from choco-parsers to choco-solver
- Define free search
- Enable SetVar
- Error when there is no strategy in fzn file
- Invalid description pom.xml
- Reading XCSP3 files HOT 2
- "-a" prints twice the last solution
- update license text with IMT Atlantique
- Error in Knapsack cstr
- Export a choco model to XCSP3 HOT 1
- XCSP: Build problem? HOT 7
- Connecting choco with PuLP HOT 13
- unexpected behavior in some mps tests HOT 7
- write solution (and possibly logging) into file HOT 4
- Infinite solving time while using "-a -bb 3" options HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from choco-parsers.