Coder Social home page Coder Social logo

Netbeans support about lombok HOT 7 CLOSED

lombokissues avatar lombokissues commented on July 17, 2024
Netbeans support

from lombok.

Comments (7)

lombokissues avatar lombokissues commented on July 17, 2024

๐Ÿ‘ค 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.

lombokissues avatar lombokissues commented on July 17, 2024

๐Ÿ‘ค 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.

lombokissues avatar lombokissues commented on July 17, 2024

๐Ÿ‘ค 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.

lombokissues avatar lombokissues commented on July 17, 2024

๐Ÿ‘ค 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.

lombokissues avatar lombokissues commented on July 17, 2024

๐Ÿ‘ค r.spilker ย  ๐Ÿ•— Dec 01, 2009 at 23:10 UTC

Just added to master basic netbeans support! Now just need to update installer.

from lombok.

lombokissues avatar lombokissues commented on July 17, 2024

๐Ÿ‘ค 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.

lombokissues avatar lombokissues commented on July 17, 2024

End of migration

from lombok.

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.