rzwitserloot / lombok.ast Goto Github PK
View Code? Open in Web Editor NEWRobust parser + AST for the java language.
Home Page: http://projectlombok.org/
License: MIT License
Robust parser + AST for the java language.
Home Page: http://projectlombok.org/
License: MIT License
The build system here downloads and executes lots of jars via plain text HTTP connections. This is a large security risk:
http://blog.ontoillogical.com/blog/2014/07/28/how-to-take-over-any-java-developer/
And there is a simple fix that will help a lot, switch the URLs to use HTTPS:
find * -name \*.xml|xargs sed -i 's,http://projectlombok.org,https://projectlombok.org,g'
And changing this in buildScripts/ivysettings.xml works for me:
<ibiblio name="maven-repo2" m2compatible="true" root="https://repo1.maven.org/maven2" />
This same issue also applies to lombok and ivyplusplus.
... due to the fact, that the ant job tries to download the zipped form of the java language specification, which appears to have disappeared from Oracle's pages.
For the time being, it seems to be a valid fix to replace http://java.sun.com/docs/books/jls/third_edition/download/langspec-3.0.zip with http://www.inf.uos.de/software/binf/jdk-papers/langspec-3.0.zip in build.xml line 219.
We want to deliver a separate lightweight jar without dependencies on Parboiled, Guava and cmdreader.
Jar 1, transformations
Jar 2, everything
For jar 1, we should remove some of the Guava static factory methods, like Lists.newArrayList()
When I import this project, I see AstVisitor has a method visitSelect, but I can't see Select.java in this package. Please help me. Thank you.
Hello
I am trying to package lombok-ast for Debian and I discovered that lombok-ast fails to build from source with the latest version of parboiled from https://github.com/sirthias/parboiled. Apparently this project uses a custom version of parboiled. I downloaded http://projectlombok.org/ivyrepo/parboiled/parboiled-0.9.7.2-src.jar but it contains no source and only class files.
Could you provide the sources for your custom version of parboiled please?
When running the EcjTreeConverter I get the following NoSuchFieldError on a bunch of different files. This is using Eclipse 3.7.1, on Mac OSX Snow Leopard. The Lombok AST library is from head a couple of days ago.
java.lang.NoSuchFieldError: type
at lombok.ast.ecj.EcjTreeConverter$2.visitCastExpression(EcjTreeConverter.java:831)
at lombok.ast.ecj.EcjTreeVisitor.visitEcjNode(EcjTreeVisitor.java:280)
at lombok.ast.ecj.EcjTreeConverter.visit(EcjTreeConverter.java:289)
at lombok.ast.ecj.EcjTreeConverter.toTree(EcjTreeConverter.java:230)
at lombok.ast.ecj.EcjTreeConverter.toTree(EcjTreeConverter.java:223)
at lombok.ast.ecj.EcjTreeConverter.createVariableDefinition(EcjTreeConverter.java:345)
at lombok.ast.ecj.EcjTreeConverter.toVariableDefinition(EcjTreeConverter.java:299)
at lombok.ast.ecj.EcjTreeConverter.fillList(EcjTreeConverter.java:274)
... lots of frames ...
at lombok.ast.ecj.EcjTreeConverter$2.visitCompilationUnitDeclaration(EcjTreeConverter.java:434)
at lombok.ast.ecj.EcjTreeVisitor.visitEcjNode(EcjTreeVisitor.java:264)
at lombok.ast.ecj.EcjTreeConverter.visit(EcjTreeConverter.java:289)
I get this on this file:
http://codesearch.google.com/#Z1yw3OC_QbA/astrid/rmilk-src/org/weloveastrid/rmilk/api/Invoker.java
(well I'm running it on a snapshot of that project which is older, but I'm hoping the above file will still trigger it, if not I can send it to you directly)
I'm new to lombok.ast and recently I want to do some code analysis work and need to use lombok.ast. But seems that there isn't any documentation about it. Would you offer some clues?
Hi, Reinier
Do you have any plans to adding the ant intellij
task in a near future? I tried adapting both the ant intellij task that appears in your rzwitserloot/lombok project and in rzwitserloot/ivyplusplus (the example) using the ant eclipse task (in lombok.ast/build.xml) as a reference. Unfortunately, I did not get good results. I was getting errors like lombok.ast/build.xml:361: module doesn't support the nested "apt" element.
or missing dependencies.
I would appreciate if you could let me know about this. Thanks.
I've seen lombok hit an apparent infinite loop when parsing stuff like
catch (IOException|SomeOtherExceptionType|SomeThirdExceptionType e) {
}
Is Java 7 not supported?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.