Comments (7)
๐ค reinierz ย ๐ Aug 05, 2009 at 20:21 UTC
Lombok doesn't currently work with netbeans.
netbeans internally uses the Javac AST model, so the only thing that needs to be done is to make
netbeans hand off generated JCCompilationUnit objects to lombok at the appropriate time.
Shouldn't be /too/ difficult.
There's a branch named 'addNetbeans' with ongoing development effort for this issue, and there's
some background on what's been done so far on the wiki:
http://wiki.github.com/rzwitserloot/lombok/netbeans
from lombok.
๐ค reinierz ย ๐ Oct 31, 2009 at 20:16 UTC
See also netbeans umbrella issue: http://www.netbeans.org/issues/show_bug.cgi?id=173063
as well as netbeans wiki page: http://wiki.netbeans.org/Lombok
from lombok.
๐ค reinierz ย ๐ Nov 04, 2009 at 02:58 UTC
Some relevant API documentation:
http://bits.netbeans.org/dev/javadoc/org-netbeans-modules-java-
source/org/netbeans/api/java/source/CompilationInfo.html
http://forums.netbeans.org/topic18270.html
(These last 2 links found by Marvin Hansen via the google groups).
from lombok.
๐ค lahoda ย ๐ Nov 27, 2009 at 22:31 UTC
I experimented a bit with NetBeans support for Lombok. My current set of patches is here:
http://lahoda.info/hg/lombok/
There are three patches:
-netbeans.diff (patch for NetBeans sources (trunk)): introduces TaskListenerProvider,
which is used to create TaskListener, which is attached to each internal javac
instance used by the NetBeans Java support. Also fixes a few places which were not
prepared to get -1 positions.
-lombok.diff (patch for Lombok sources, against revision
e10d58e): the actual support for Lombok in NetBeans.
Consists of two parts: a NetBeans module (in src/netbeans), which uses the
TaskListenerProvider to create a TaskListener. The TaskListener implementation is
src/core/lombok/javac/netbeans/NetBeans.java, which performs needed transformations
after parsing any file. Both parts will need improvements. netbeans/NetBeans.java and
apt/Processor.java could probably share a lot of code. Also includes a change to
JavaAST.java, which ensures that the newly-generated elements have (-1) position.
-nb-javac.diff (patch for nb-javac): prebuilt version of nb-javac with this patch is
referenced from netbeans.diff
With these patches, the Lombok generated methods (e.g. getProperty()) appear in
navigator, are visible in code completion, and can be used from other source files.
from lombok.
๐ค r.spilker ย ๐ Dec 01, 2009 at 23:10 UTC
Just added to master basic netbeans support! Now just need to update installer.
from lombok.
๐ค reinierz ย ๐ Dec 02, 2009 at 23:33 UTC
0.9.2 beta 3 is out with netbeans support. It's still in the early phases.
I haven't actually used your patches, Jan (lahoda) - in order to stick with the lombok install model (lombok
installs into a vanilla IDE installation without replacing anything, just by adding to your config file, as a
separate agent), I've agent-ified the stuff you've done in the patch. Still, the patch told me exactly what to
change, so, you're awesome!
The plus side is that lombok.jar now installs cleanly and easily into any netbeans. It does have to be 6.8, it
doesn't seem to work at all in 6.7. Should be okay though - 6.8 is in RC.
from lombok.
End of migration
from lombok.
Related Issues (20)
- [FEATURE] @FieldNameConstants Easier overwrite for generated fields HOT 2
- @FieldDefaults: Keep the global setting experimental, make the annotation permanent.
- [FEATURE] Allow to easily add interfaces to Builders
- [BUG] Support for Eclipse 2024-06 (4.32) HOT 11
- [FEATURE] Super Constructor
- [FEATURE] enhance @FieldNameConstants with specific prefix string HOT 2
- [BUG] SuperBuilder does not compile then binding generics to an array HOT 5
- [BUG] SaSessionForFastjsonCustomized็ฑปไธญ็getModelๆฅ้ HOT 1
- [FEATURE] setX() for mutable state, fluent otherwise HOT 2
- [BUG] Lombok 1.18.34 (Edit updated) not working with eclipse 24-06 HOT 3
- [QUESTION} How to build lombok using JDK21 (javac)
- Support for an entirely new constructor generation HOT 2
- [FEATURE] Support for use extension method within the same class it was declared in
- [@ToStringJSON, @ToStringJSONPretty] Please add feature when class have some others lombok JSON. For default actual mode of lombok ToString. HOT 1
- [BUG] Lombok with Java 21 Compilation failure with v1.18.32
- [BUG] Warning when using @StandardException with the -Xlint:this-escape compiler flag
- [BUG] Potential NPE in EclipseHandlerUtil.setDocComment(..)
- [BUG] @Delegate throwing null pointer exception on enums
- [BUG] `@Getter` with `AccessLevel` and `onMethod_` causes a compile error
- [BUG] `StringIndexOutOfBoundsException` in `EclipseHandlerUtil.getDocComment()`
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 lombok.