VS Code plugin for OpenJDK development
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Thu May 12 13:05:33 UTC 2022
Hi,
I'm giving this a try, it seems to work very very well.
I could open the java.base and jdk.compiler modules, and all indexing
seems to work correctly.
Two questions:
* is there any way to tell the plugin to use preview features? I get
lots of red squiggly lines in tests that use such features
* is there any way to run jtreg tests? I tried clicking on "run w/o
debug" but I get "internal error".
Thanks
Maurizio
On 12/05/2022 13:14, Geertjan Wielenga wrote:
> https://marketplace.visualstudio.com/items?itemName=ASF.apache-netbeans-java
> <https://urldefense.com/v3/__https://marketplace.visualstudio.com/items?itemName=ASF.apache-netbeans-java__;!!ACWV5N9M2RV99hQ!MR4wE-vym0xrOq4KO9gt5PBIOAqSGfu2KWOVZJe5eKt1Me0_LIFSK8jDkHjY9Zz_4OLnjxiFX0bW8NqcPpOBOdCetA$>
>
> Gj
>
> On Thu, 12 May 2022 at 13:11, Magnus Ihse Bursie
> <magnus.ihse.bursie at oracle.com> wrote:
>
> On 2022-05-12 13:12, Maurizio Cimadamore wrote:
> > Hi Magnus,
> > this is great news. While I've been working on IntelliJ support for
> > quite a bit, I was too thinking about VSCode, especially for the
> > ability to work with Java and CPP simultaneously. There's
> already some
> > support to work on VM code with VsCode. The Java support is missing
> > AFAIK, as well as ability to run and debug jtreg tests, which we
> have
> > with IntelliJ. But I welcome any initiative to make OpenJDK more
> > accessible to more IDEs!
> For pure Java development I still prefer IntelliJ. But due to my
> role in
> OpenJDK, I mostly change makefiles and shell scripts, and just
> hacks a
> bit in a Java file or native file here and there, and then VS
> Code just
> kicks *ss with the competition. :-) So simple edits to a few Java
> files
> works well, but the well-integrated code understanding (which
> underpins
> the set of refactoring options for instance) which is present in
> IntelliJ just isn't there, yet. So I'm not sure how much effort we
> should put into supporting VS Code for serious Java development,
> since I
> doubt anyone will use it at the moment.
>
> For native code, or when mixing Java and native code, that's another
> question. I do think there are Hotspot engineers using VS code as
> their
> primary editor. The compile_command.json support was added to benefit
> Hotspot development in VS Code, if I'm not misremembering.
>
> /Magnus
> >
> > Maurizio
> >
> > On 12/05/2022 11:50, Magnus Ihse Bursie wrote:
> >> Hi all,
> >>
> >> I've been using Visual Studio Code for most of my OpenJDK
> development
> >> needs for quite some time now, and grown very fond of it. A
> year ago
> >> or so, I wrote a plugin to support me in my daily tasks. It is
> >> available here:
> >>
> >>
> https://marketplace.visualstudio.com/items?itemName=magicus.openjdk-devel
> <https://urldefense.com/v3/__https://marketplace.visualstudio.com/items?itemName=magicus.openjdk-devel__;!!ACWV5N9M2RV99hQ!MR4wE-vym0xrOq4KO9gt5PBIOAqSGfu2KWOVZJe5eKt1Me0_LIFSK8jDkHjY9Zz_4OLnjxiFX0bW8NqcPpNutovbFQ$>
>
> >>
> >>
> >> After a year of testing, I think it has proven its worth (to
> me, at
> >> least), and I feel ready to recommend it to my fellow
> developers. The
> >> plugin currently gives you a separate view with Github
> integration,
> >> showing your notifications for OpenJDK projects, your personal
> PRs,
> >> and open PRs for a set of chosen tags (i.e. areas you want to
> watch).
> >>
> >> My initial idea was to add support for JBS integration as well,
> but
> >> that part is stalled until our Jira instance gets proper
> support for
> >> access tokens. :-(
> >>
> >> If you have suggestions or improvements, feel free to open an
> issue
> >> or PR here:
> >> https://github.com/magicus/vscode-openjdk-devel
> <https://urldefense.com/v3/__https://github.com/magicus/vscode-openjdk-devel__;!!ACWV5N9M2RV99hQ!MR4wE-vym0xrOq4KO9gt5PBIOAqSGfu2KWOVZJe5eKt1Me0_LIFSK8jDkHjY9Zz_4OLnjxiFX0bW8NqcPpMr13EfWA$>
> >>
> >> /Magnus
>
More information about the ide-support-dev
mailing list