VS Code plugin for OpenJDK development
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Fri May 13 13:50:37 UTC 2022
On 13/05/2022 14:41, Jan Lahoda wrote:
> Hi Maurizio,
>
> Thanks for trying out, and for your comments.
>
> Regarding --enable-preview, I believe there's currently no way, but
> I'll add --enable-preview to all test parsing (first I thought I could
> parse the compile tags, but it seems it is not quite straightforward
> to do, and --enable-preview by should not be too bad for tests).
I understand. Enabling always seems like a good thing.
>
> Regarding tests, seems there were some changes recently. I'll need to
> discuss what and how needs to be done. Assuming jtreg was specified
> while configuring the JDK build, there should be "Run main" and "Debug
> main" over main method in the test (and there may be something similar
> for TestNG), and for a certain test I tried, that worked. Does not
> sadly show the output/result under VS Code currently. Run Start
> Debugging might work as well, Run without Debugger is trying to run an
> action the OpenJDK projects don't support, and hence that does not work.
WIth testng tests (most of the Panama tests) I don't see any action in
the source code.
With a javac test (StructuralMostSpecificTest), which has a main
method, I see "Run main|Debug main" but if I click I get "Internal
error" and a suggestion to add launch.json (and ends up with the same
jdk8+ configuration).
Maurizio
>
> Jan
>
> ------------------------------------------------------------------------
> *From:* ide-support-dev <ide-support-dev-retn at openjdk.java.net> on
> behalf of Maurizio Cimadamore <maurizio.cimadamore at oracle.com>
> *Sent:* Friday, May 13, 2022 1:21 PM
> *To:* Martin Balin <martin.balin at oracle.com>
> *Cc:* Magnus Ihse Bursie <magnus.ihse.bursie at oracle.com>;
> ide-support-dev at openjdk.java.net <ide-support-dev at openjdk.java.net>
> *Subject:* Re: VS Code plugin for OpenJDK development
> Hi Martin,
> that's the plugin I installed and tried out.
>
> I also found that wiki page, and I had some questions - see:
>
> https://mail.openjdk.java.net/pipermail/ide-support-dev/2022-May/000142.html
>
> Cheers
> Maurizio
>
> On 13/05/2022 11:56, Martin Balin wrote:
> > Hi Maurizio,
> > There is a NetBeans VSCode extension which allows to work with OpenJDK
> > sources
> >
> https://marketplace.visualstudio.com/items?itemName=ASF.apache-netbeans-java
> >
> > Description how to setup JDK sources is here:
> >
> https://cwiki.apache.org/confluence/display/NETBEANS/Apache+NetBeans+Extension+for+Visual+Studio+Code
> > section Scenario 3: Open OpenJDK Source
> >
> > Hope you will find it useful
> > Martin
> >
> >> On 12. 5. 2022, at 13:12, Maurizio Cimadamore
> >> <maurizio.cimadamore at oracle.com> 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!
> >>
> >> 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
> >>>
> >>> 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
> >>>
> >>> /Magnus
> >
More information about the ide-support-dev
mailing list