Skip to content

Various improvements inspired by working on VSCode extension - #2309

Merged
JaroslavTulach merged 9 commits into
apache:masterfrom
JaroslavTulach:jtulach/LspInspired
Aug 18, 2020
Merged

JaroslavTulach merged 9 commits into
apache:masterfrom
JaroslavTulach:jtulach/LspInspired

Conversation

@JaroslavTulach

@JaroslavTulach JaroslavTulach commented Aug 13, 2020 •

Copy link
Copy Markdown

Recently I was working on LSP VSCode extension. Before I could work on the polyglot debugging using NetBeans Truffle Debugger implementation, I had to polish the system to:

  • make the TypeScript debuggable
  • make the Java code debuggable
  • make it run in headless mode
  • improve README
  • and few more.

My debugging improvements aren't ready yet, however I believe the existing VSCode extension is going to benefit from my changes even without debugging. I propose to integrate these changes into Apache NetBeans 12.2

@JaroslavTulach JaroslavTulach added this to the 12.2 milestone Aug 13, 2020
@JaroslavTulach
JaroslavTulach requested a review from jlahoda August 13, 2020 08:23
@JaroslavTulach JaroslavTulach self-assigned this Aug 13, 2020

@jlahoda jlahoda left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look good to me, thanks!

There may be some tweaks required, to make rat happy - possibly by tweaking java/java.lsp.server/licenseinfo.xml.

@JaroslavTulach
JaroslavTulach merged commit 04597fc into apache:master Aug 18, 2020
@JaroslavTulach
JaroslavTulach deleted the jtulach/LspInspired branch August 18, 2020 15:51
@matthiasblaesing

matthiasblaesing commented Aug 18, 2020 via email

Copy link
Copy Markdown
Contributor

@JaroslavTulach

Copy link
Copy Markdown
Author

Opps. I haven't realized that. I am sorry.

@matthiasblaesing

matthiasblaesing commented Aug 18, 2020 via email

Copy link
Copy Markdown
Contributor

@neilcsmith-net

Copy link
Copy Markdown
Member

@JaroslavTulach OK. Are you not following dev@? (there was a message from @geertjanw about another PR we were hoping might be mergeable, but too late now for beta3). Luckily this just missed release branch syncing, so might be OK to stay in if beta 3 becomes 12.1 release. OTOH, if we need to merge fixes into master then this will need reverting out first. I'll update here.

@matthiasblaesing matthiasblaesing left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought whether this needs to be removed from master for 12.1 (if we need to respin the build). From my POV we should back it out if we further changes for 12.1. The changes to the common code look save for the normal NetBeans use case (headful display), but I think it would be better to give them some time to settle for 12.2.

@neilcsmith-net

Copy link
Copy Markdown
Member

From my POV we should back it out if we further changes for 12.1

@matthiasblaesing yes, that is what I meant by my comment - I will definitely back it out if we need changes, but at the moment I'm hopeful that the release branch is OK for the final release.

This is assuming I'm correct at quick glance that nothing here will change sig file generation @JaroslavTulach ?

@JaroslavTulach

Copy link
Copy Markdown
Author

@JaroslavTulach OK. Are you not following dev@?

I am sorry, I didn't read dev@ recently. I was completely focused on VSCode and elsewhere. Once all this PR checks got green, I integrated without realizing the master is supposed to be frozen. I should be more careful. This is a second time I made such mistake, I should learn my lesson.

Possibly I was influenced by considering my change just a robustness fix that cannot break anything. Running the diff and eliminating all VSCode specific changes:

$ curl 'https://patch-diff.githubusercontent.com/raw/apache/netbeans/pull/2309.diff' \
  | grep ^diff | grep -v java/java.lsp.server | grep -v nbbuild/misc/prepare-bundles \
  | cut -f3 -d " "
a/ide/spi.debugger.ui/src/org/netbeans/modules/debugger/ui/DebuggerManagerListener.java
a/java/debugger.jpda.truffle/manifest.mf
a/java/debugger.jpda.truffle/nbproject/project.xml
a/java/maven/src/org/netbeans/modules/maven/api/execute/RunUtils.java
a/java/maven/src/org/netbeans/modules/maven/execute/cmd/ExecutionEventObject.java
a/nbbuild/build.xml
a/platform/core.windows/src/org/netbeans/core/windows/services/DialogDisplayerImpl.java

leaves us with isHeadless() checks:

these checks shall not influence the release as NetBeans IDE isn't running in headless mode. Then there is another robustness check:

it shall not influence NetBeans IDE as NetBeans IDE is using core.output2 implementation of output window which supports folding. One more robustness check is done in buildsystem:

that only fixes problem of running ant tryme on GraalVM, other JVMs continue to behave the same. And then there is the change of dependencies in debugger.jpda.truffle module which replaces strict dependency on java.kit with a recommendation. That's the only change that changes some behavior in the NetBeans IDE - however as the java.kit is present in the NetBeans IDE the change shall be idempotent.

With the robustness fixes in master my debugging in VSCode branch is much cleaner. Nice, but poor excuse for the organizational problems my integration causes just before release of 12.1. Once again, please accept my apology.

@neilcsmith-net

Copy link
Copy Markdown
Member

@JaroslavTulach no worries! You're not the only one. 😄 Both Eric and I have used a [NOTICE] tag on dev@ for merge window opening and closing, etc. If following all of dev@ gets a bit much (which it does!) might be worth filtering on that tag and a few others like that.

@neilcsmith-net

neilcsmith-net commented Aug 23, 2020 •

Copy link
Copy Markdown
Member

OK, @matthiasblaesing @JaroslavTulach it looks like we need to merge #2325 for 12.1, which means we may need one more beta - so, do I revert this or keep it in for 12.1 release?

@JaroslavTulach

Copy link
Copy Markdown
Author

I have just built NetBeans from most recent master and started with fresh user directory. I can debug JavaScript in a Maven project that launches JavaScript via ScriptEngineManager and I can debug Node.js project on top of GraalVM that calls into Java.

I am fine with leaving my accidental changes in. If you or others feel different, feel free to revert. Once again sorry for the mess.

@neilcsmith-net

Copy link
Copy Markdown
Member

Thanks, @JaroslavTulach that's fine with me. Will be in.

@neilcsmith-net neilcsmith-net modified the milestones: 12.2, 12.1 Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants