[jira] [Created] (NETBEANS-6422) PHP named argument indentation
Jayce created NETBEANS-6422: --- Summary: PHP named argument indentation Key: NETBEANS-6422 URL: https://issues.apache.org/jira/browse/NETBEANS-6422 Project: NetBeans Issue Type: Improvement Components: php - Editor Affects Versions: 12.5, 12.6 Reporter: Jayce Hi, Netbeans does not align code with named Arguments (php8.x) correctly {code:java} class Foo { public static function m1(string $arg1, string $arg2): void { } } class Test { function badIndentation(): void { Foo::m1( arg1: self::create($this->create('ni')), arg2: 'something' ); } public function create(string $test): string { return $test; } } {code} Note the "arg2" line to the far right, aligned with the create function. arg1: and arg2: must have the same alignment. I checked my formatting preferences, i can't find something strange. I addition, is there a way to have a PSR-12 compliant formatting option without manually changing Netbeans preferences ? Thanks -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[netbeans] branch delivery updated: Manually disable other Java extension
This is an automated email from the ASF dual-hosted git repository. jtulach pushed a commit to branch delivery in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/delivery by this push: new 33025dc Manually disable other Java extension new 10d85e4 Merge pull request #3510 from JaroslavTulach/jtulach/DetectMultipleJavaExtensions 33025dc is described below commit 33025dc24074a3d6886ccde51d4c8777c993dea2 Author: Jaroslav Tulach AuthorDate: Wed Jan 12 16:55:26 2022 +0100 Manually disable other Java extension --- java/java.lsp.server/vscode/src/extension.ts | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/java/java.lsp.server/vscode/src/extension.ts b/java/java.lsp.server/vscode/src/extension.ts index 9594f53..8ee2ccc 100644 --- a/java/java.lsp.server/vscode/src/extension.ts +++ b/java/java.lsp.server/vscode/src/extension.ts @@ -274,17 +274,15 @@ export function activate(context: ExtensionContext): VSNetBeansAPI { let conf = workspace.getConfiguration(); if (conf.get("netbeans.conflict.check")) { -let e = vscode.extensions.getExtension('redhat.java'); +const id = 'redhat.java'; +let e = vscode.extensions.getExtension(id); function disablingFailed(reason: any) { handleLog(log, 'Disabling some services failed ' + reason); } if (e && workspace.name) { -vscode.window.showInformationMessage(`redhat.java found at ${e.extensionPath} - Suppressing some services to not clash with Apache NetBeans Language Server.`); -conf.update('java.completion.enabled', false, false).then(() => { -vscode.window.showInformationMessage('Usage of only one Java extension is recommended. Certain services of redhat.java have been disabled. '); -conf.update('java.debug.settings.enableRunDebugCodeLens', false, false).then(() => {}, disablingFailed); -conf.update('java.test.editor.enableShortcuts', false, false).then(() => {}, disablingFailed); -}, disablingFailed); +vscode.window.showInformationMessage(`Another Java support extension is already installed. It is recommended to use only one Java support per workspace.`, `Manually disable`).then(() => { + vscode.commands.executeCommand('workbench.extensions.action.showInstalledExtensions'); +}); } } - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Resolved] (NETBEANS-6384) Detect another Java support ext and recommend to Disable one
[ https://issues.apache.org/jira/browse/NETBEANS-6384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jaroslav Tulach resolved NETBEANS-6384. --- Resolution: Fixed [PR-3510|https://github.com/apache/netbeans/pull/3510] has been integrated and will be available in 13.0.0 version of the Apache NetBeans Language Server extension. > Detect another Java support ext and recommend to Disable one > > > Key: NETBEANS-6384 > URL: https://issues.apache.org/jira/browse/NETBEANS-6384 > Project: NetBeans > Issue Type: Task > Components: vscode >Affects Versions: 12.5 >Reporter: Martin Balin >Assignee: Jaroslav Tulach >Priority: Major > Labels: pull-request-available > Fix For: NB13 > > Attachments: Screenshot 2022-01-25 at 11.59.09.png > > Time Spent: 20m > Remaining Estimate: 0h > > VSNetBeans currently detects installation of MS Java ext pack and informs > user it disables some services of it, code lenses and code completion. > See > [https://github.com/apache/netbeans/blob/master/java/java.lsp.server/vscode/src/extension.ts#L284] > {code:javascript} > conf.update('java.test.editor.enableShortcuts', false, false).then(() => {}, > disablingFailed); > conf.update('java.debug.settings.enableRunDebugCodeLens', false, > false).then(() => {}, disablingFailed); > {code} > This behaviour should change to better coexist with MS Java ext. > VSNetBeans needs to show user a dialog recommending to Enable per workspace > one of the Java ext packs. Looking at VSCode API it seems there is still > missing API to DISABLE extension programatically, while there is > [uninstallExtension|https://code.visualstudio.com/api/references/commands] > command? > Proposed solution is not perfect: > VSNetBeans will show dialog with text like: _Another Java support extension > is already installed. It is recommended to use only one Java support per > workspace. Please Disable one of Java ext for workspace._ *OK* button to open > Extensions panel and user has to do it UX is TBD. > Some context info: > VSCode plans to stop recommend extensions see > [https://github.com/microsoft/vscode/issues/136301] in Feb. > And they are also working on extension sets per workspace > [https://github.com/microsoft/vscode/issues/40239] -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-6421) Netbeans 12.6 freezes AWT from Micronaut Support
[ https://issues.apache.org/jira/browse/NETBEANS-6421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stefan Röper updated NETBEANS-6421: --- Description: Netbeans GUI freezes occasionally during save of file or during navigation. This happens since 12.6 on my system with a frequency of once every two hours. Disabling micronaut plugin helps to prevent that freezing GUI but also makes Netbeans more responsive and less memory hungry( 2.3 GB instead of 3.5 GB). After some hours Netbeans again freezes even with micronaut disabled. The frozen GUI does not let the user save a file or change a tab nor let him further editing the file. The Window can still be moved and the menu is still responsive. After choosing a menu item (i.e. Quit) the spinning ball shows up and the only possibility is to kill the netbeans process. I also get the message: Even though the source level of .../src/main/resources is set to: 11, java.util.zip.CRC32C cannot be found on the system module path: Changing source level to 1.8 This is combined with lots of *.dump files. All start with "Incorrectly reparsed file" was: Netbeans GUI freezes occasionally during save of file or during navigation. This happens since 12.6 on my system with a frequency of once every two hours. Disabling micronaut plugin not only prevents the freezing GUI but also makes Netbeans more responsive and less memory hungry( 2.3 GB instead of 3.5 GB). I also get the message: Even though the source level of .../src/main/resources is set to: 11, java.util.zip.CRC32C cannot be found on the system module path: Changing source level to 1.8 > Netbeans 12.6 freezes AWT from Micronaut Support > > > Key: NETBEANS-6421 > URL: https://issues.apache.org/jira/browse/NETBEANS-6421 > Project: NetBeans > Issue Type: Bug >Affects Versions: 12.6 > Environment: *Product Version:* Apache NetBeans IDE 12.6 > *Java:* 11.0.13; OpenJDK 64-Bit Server VM 11.0.13+8 > *Runtime:* OpenJDK Runtime Environment 11.0.13+8 > *System:* Mac OS X version 12.1 running on x86_64; UTF-8; de_DE (nb) > nbjavac enabled > Compile on save enabled > maven multi module project (> 1000 classes) >Reporter: Stefan Röper >Priority: Major > > Netbeans GUI freezes occasionally during save of file or during navigation. > This happens since 12.6 on my system with a frequency of once every two hours. > > Disabling micronaut plugin helps to prevent that freezing GUI but also makes > Netbeans more responsive and less memory hungry( 2.3 GB instead of 3.5 GB). > After some hours Netbeans again freezes even with micronaut disabled. > The frozen GUI does not let the user save a file or change a tab nor let him > further editing the file. The Window can still be moved and the menu is still > responsive. After choosing a menu item (i.e. Quit) the spinning ball shows up > and the only possibility is to kill the netbeans process. > > I also get the message: > Even though the source level of .../src/main/resources is set to: 11, > java.util.zip.CRC32C cannot be found on the system module path: > Changing source level to 1.8 > > This is combined with lots of *.dump files. All start with > "Incorrectly reparsed file" -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Created] (NETBEANS-6421) Netbeans 12.6 freezes AWT from Micronaut Support
Stefan Röper created NETBEANS-6421: -- Summary: Netbeans 12.6 freezes AWT from Micronaut Support Key: NETBEANS-6421 URL: https://issues.apache.org/jira/browse/NETBEANS-6421 Project: NetBeans Issue Type: Bug Affects Versions: 12.6 Environment: *Product Version:* Apache NetBeans IDE 12.6 *Java:* 11.0.13; OpenJDK 64-Bit Server VM 11.0.13+8 *Runtime:* OpenJDK Runtime Environment 11.0.13+8 *System:* Mac OS X version 12.1 running on x86_64; UTF-8; de_DE (nb) nbjavac enabled Compile on save enabled maven multi module project (> 1000 classes) Reporter: Stefan Röper Netbeans GUI freezes occasionally during save of file or during navigation. This happens since 12.6 on my system with a frequency of once every two hours. Disabling micronaut plugin not only prevents the freezing GUI but also makes Netbeans more responsive and less memory hungry( 2.3 GB instead of 3.5 GB). I also get the message: Even though the source level of .../src/main/resources is set to: 11, java.util.zip.CRC32C cannot be found on the system module path: Changing source level to 1.8 -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Created] (NETBEANS-6420) GUI bug, Find toolbar
Thomas Kirby created NETBEANS-6420: -- Summary: GUI bug, Find toolbar Key: NETBEANS-6420 URL: https://issues.apache.org/jira/browse/NETBEANS-6420 Project: NetBeans Issue Type: Bug Environment: This seems to be related to a recent upgrade from Windows 10 pro to Windows 11 pro. The problem was not present in Windows 10. This behavior was noted in Netbeans 12.5, and now in 12.6. *Product Version:* Apache NetBeans IDE 12.6 *Java:* 16.0.1; Java HotSpot(TM) 64-Bit Server VM 16.0.1+9-24 *Runtime:* Java(TM) SE Runtime Environment 16.0.1+9-24 *System:* Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb) *User directory:* C:\Users\tkirb\AppData\Roaming\NetBeans\12.6 *Cache directory:* C:\Users\tkirb\AppData\Local\NetBeans\Cache\12.6 Reporter: Thomas Kirby Fix For: 12.6 Attachments: Netbeans-Jira-Find.png Problem with Find toolbar (see attached image). The icons for Match Case, Whole Word, and Regular Expression are not showing the current state of those settings. When enabled, they should be highlighted, but are not. This happens for both clicking the controls and using the keyboard shortcuts. The functions seem to be active, but the user has no confirmation of the current settings. This happens for any file that supports the Find toolbar (e.g. txt, c, php, etc.). -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[netbeans] branch master updated: Payara Micro Hot Deploy support in Apache NetBeans (#3248)
This is an automated email from the ASF dual-hosted git repository. jgauravgupta pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/master by this push: new 47f0466 Payara Micro Hot Deploy support in Apache NetBeans (#3248) 47f0466 is described below commit 47f0466f202eb2b0025520e9104f958d967146c2 Author: Gaurav Gupta AuthorDate: Wed Jan 26 23:25:55 2022 +0530 Payara Micro Hot Deploy support in Apache NetBeans (#3248) * Payara Micro Hot Deploy support in Apache NetBeans * Fixes selectedPayaraVersion NPE --- .../fish/payara/micro/plugin/Constants.java| 1 + .../fish/payara/micro/project/Bundle.properties| 2 + .../payara/micro/project/DeployOnSaveManager.java | 52 +- .../payara/micro/project/MicroActionsProvider.java | 20 ++ .../micro/project/MicroExecutionChecker.java | 3 +- .../payara/micro/project/MicroPropertiesPanel.form | 36 -- .../payara/micro/project/MicroPropertiesPanel.java | 41 --- .../fish/payara/micro/project/ReloadAction.java| 83 +- 8 files changed, 172 insertions(+), 66 deletions(-) diff --git a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/plugin/Constants.java b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/plugin/Constants.java index c8d6642..7f8b78b 100644 --- a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/plugin/Constants.java +++ b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/plugin/Constants.java @@ -43,6 +43,7 @@ public interface Constants { String PROP_CONTEXT_ROOT = "contextRoot"; String VERSION = "version"; +String HOT_DEPLOY = "hotDeploy"; String WAR_PACKAGING = "war"; diff --git a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/Bundle.properties b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/Bundle.properties index 8f2e73f..aee40ac 100644 --- a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/Bundle.properties +++ b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/Bundle.properties @@ -23,3 +23,5 @@ MSG_IncrementalDeployFailed=Error during incremental deploy\: {0} TXT_Reload=Reload ({0}) ERR_Compile_On_Save_Not_Enabled=Reload Error ({0} : Compile on save not enabled) ERR_Payara_Micro_Plugin_Not_Found=Reload Error ({0} : Payara Micro plugin not found) +MicroPropertiesPanel.hotDeployLabel.text=Hot Deploy: +MicroPropertiesPanel.hotDeployCheckBox.text= diff --git a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/DeployOnSaveManager.java b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/DeployOnSaveManager.java index 53044d2..0bd7796 100644 --- a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/DeployOnSaveManager.java +++ b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/DeployOnSaveManager.java @@ -97,10 +97,9 @@ public final class DeployOnSaveManager { return t; }); -//private final ExecutorService EXECUTOR = Executors.newFixedThreadPool(1); /** GuardedBy("this") */ -private Map> toDeploy = new HashMap<>(); +private Map toDeploy = new HashMap<>(); /** GuardedBy("this") */ @@ -230,19 +229,16 @@ public final class DeployOnSaveManager { } } -public void submitChangedArtifacts(J2eeModuleProvider provider, Iterable artifacts) { +public void submitChangedArtifacts(Project project, J2eeModuleProvider provider, Iterable artifacts) { assert provider != null; assert artifacts != null; synchronized (this) { -Set preparedArtifacts = toDeploy.get(provider); +DeployArtifact preparedArtifacts = toDeploy.get(provider); if (preparedArtifacts == null) { -preparedArtifacts = new HashSet<>(); +preparedArtifacts = new DeployArtifact(project, artifacts); toDeploy.put(provider, preparedArtifacts); } -for (Artifact artifact : artifacts) { -preparedArtifacts.add(artifact); -} boolean delayed = true; if (current != null && !current.isDone()) { @@ -308,7 +304,7 @@ public final class DeployOnSaveManager { LOGGER.log(Level.FINE, "Delivered compile artifact: {0}", artifact); } } - DeployOnSaveManager.getDefault().submitChangedArtifacts(realProvider, realArtifacts); + DeployOnSaveManager.getDefault().submitChangedArtifacts(realProject, realProvider, realArtifacts); try { current.get(); @@ -354,7 +350,7 @@ public final class DeployOnSaveManager {
[netbeans] branch delivery updated: Update FlatLaf from 2.0 to 2.0.1
This is an automated email from the ASF dual-hosted git repository. neilcsmith pushed a commit to branch delivery in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/delivery by this push: new e4bf509 Update FlatLaf from 2.0 to 2.0.1 new ca66c2b Merge pull request #3504 from DevCharly/flatlaf-2.0.1 e4bf509 is described below commit e4bf50930fcc923ed8452c67572b068dbf68fcdb Author: Karl Tauber AuthorDate: Tue Jan 25 19:13:27 2022 +0100 Update FlatLaf from 2.0 to 2.0.1 --- platform/libs.flatlaf/external/binaries-list | 2 +- .../external/{flatlaf-2.0-license.txt => flatlaf-2.0.1-license.txt} | 4 ++-- platform/libs.flatlaf/nbproject/project.properties| 2 +- platform/libs.flatlaf/nbproject/project.xml | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/platform/libs.flatlaf/external/binaries-list b/platform/libs.flatlaf/external/binaries-list index 90013fc..feececd 100644 --- a/platform/libs.flatlaf/external/binaries-list +++ b/platform/libs.flatlaf/external/binaries-list @@ -15,4 +15,4 @@ # specific language governing permissions and limitations # under the License. -A45856E4115136977C662298BAC02F3B428082DB com.formdev:flatlaf:2.0 +5CD4AE96F6B538FB784549F2636E50122FDBB5D8 com.formdev:flatlaf:2.0.1 diff --git a/platform/libs.flatlaf/external/flatlaf-2.0-license.txt b/platform/libs.flatlaf/external/flatlaf-2.0.1-license.txt similarity index 99% rename from platform/libs.flatlaf/external/flatlaf-2.0-license.txt rename to platform/libs.flatlaf/external/flatlaf-2.0.1-license.txt index 55fd370..6f0e442 100644 --- a/platform/libs.flatlaf/external/flatlaf-2.0-license.txt +++ b/platform/libs.flatlaf/external/flatlaf-2.0.1-license.txt @@ -1,7 +1,7 @@ Name: FlatLaf Look and Feel Description: FlatLaf Look and Feel -Version: 2.0 -Files: flatlaf-2.0.jar +Version: 2.0.1 +Files: flatlaf-2.0.1.jar License: Apache-2.0 Origin: FormDev Software GmbH. URL: https://www.formdev.com/flatlaf/ diff --git a/platform/libs.flatlaf/nbproject/project.properties b/platform/libs.flatlaf/nbproject/project.properties index 7014d12..7a58873 100644 --- a/platform/libs.flatlaf/nbproject/project.properties +++ b/platform/libs.flatlaf/nbproject/project.properties @@ -20,4 +20,4 @@ javac.compilerargs=-Xlint:unchecked javac.source=1.8 nbm.target.cluster=platform -release.external/flatlaf-2.0.jar=modules/ext/flatlaf-2.0.jar +release.external/flatlaf-2.0.1.jar=modules/ext/flatlaf-2.0.1.jar diff --git a/platform/libs.flatlaf/nbproject/project.xml b/platform/libs.flatlaf/nbproject/project.xml index a0ca5ca..befc44c 100644 --- a/platform/libs.flatlaf/nbproject/project.xml +++ b/platform/libs.flatlaf/nbproject/project.xml @@ -30,8 +30,8 @@ com.formdev.flatlaf.util - ext/flatlaf-2.0.jar -external/flatlaf-2.0.jar + ext/flatlaf-2.0.1.jar +external/flatlaf-2.0.1.jar - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[netbeans] branch delivery updated: No doctype is a fallback for missing doctype
This is an automated email from the ASF dual-hosted git repository. neilcsmith pushed a commit to branch delivery in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/delivery by this push: new c72bf12 No doctype is a fallback for missing doctype new 38dd781 Merge pull request #3505 from JaroslavTulach/jtulach/FallbackDoctype c72bf12 is described below commit c72bf12f38512bef446c1b449d46962ac1f58236 Author: Jaroslav Tulach AuthorDate: Tue Jan 25 20:14:11 2022 +0100 No doctype is a fallback for missing doctype --- ide/html/src/org/netbeans/modules/html/templates/html.html | 2 +- ide/html/src/org/netbeans/modules/html/templates/xhtml.xhtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ide/html/src/org/netbeans/modules/html/templates/html.html b/ide/html/src/org/netbeans/modules/html/templates/html.html index 3be05dd..859df65 100644 --- a/ide/html/src/org/netbeans/modules/html/templates/html.html +++ b/ide/html/src/org/netbeans/modules/html/templates/html.html @@ -18,7 +18,7 @@ under the License. --> -${doctype} +${doctype!""} <#assign licenseFirst = ""> diff --git a/ide/html/src/org/netbeans/modules/html/templates/xhtml.xhtml b/ide/html/src/org/netbeans/modules/html/templates/xhtml.xhtml index 430b344..cbcd48f 100644 --- a/ide/html/src/org/netbeans/modules/html/templates/xhtml.xhtml +++ b/ide/html/src/org/netbeans/modules/html/templates/xhtml.xhtml @@ -23,7 +23,7 @@ <#assign licensePrefix = ""> <#assign licenseLast = "-->"> <#include "${project.licensePath}"> -${doctype} +${doctype!""} http://www.w3.org/1999/xhtml;> TODO supply a title - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[netbeans] branch master updated (f9c7526 -> c4c3086)
This is an automated email from the ASF dual-hosted git repository. neilcsmith pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git. from f9c7526 Updating vsce to the 2.6.4 version. (#3499) add 995df87 [NETBEANS-6117] Fix Gradle project load operation in Wizards add ced2db4 Merge pull request #3480 from lkishalmi/NETBEANS-6117 add 7be809f javafx ide.ergonomics config should not try to load the old nb-javac. add aca6ea1 Merge pull request #3488 from mbien/nb-javac-ergo-fix add 151a212 Fix Gradle popup menu Tasks.. action not functioning. add 67dac6a Merge pull request #3490 from neilcsmith-net/fix-gradle-custom-ui add 41a8292 set shift+enter as line break and add multi-line info message. add 83fe403 Merge pull request #3489 from mbien/use-the-mouse add 51e3aa8 Ensure BufferedInputStream is not initialized with a buffer size of 0 add a42b661 Merge pull request #3491 from matthiasblaesing/error_multiline_search add 4f1bbbf [#3494] Organize Imports inspection is not record aware. add 26e299c Merge pull request #3497 from mbien/keep-records add 4b74969 fix dependencies groupId for maven 3.8.4 add dd0b0b9 Merge pull request #3496 from ebarboni/maven384depfix add 82a0ab7 Fixes to LSP client/server related to semantic highlighting. add 8387f9f Merge pull request #3492 from jlahoda/LSP-client-semantic-fixes add 7d132ee Cache netbeanrelease.json for offline builds and source releases. add 5cf25fd Merge pull request #3500 from neilcsmith-net/ebarboni-offlinebuild add 738c656 Update README with JDK 11 requirement. add c9af6ea Merge pull request #3501 from neilcsmith-net/readme-nb13 add c4c3086 Merge pull request #3484 from apache/delivery No new revisions were added by this update. Summary of changes: .gitignore | 1 + README.md | 5 +- ergonomics/ide.ergonomics/javafx.properties| 3 - .../modules/gradle/ActionProviderImpl.java | 3 +- .../gradle/loaders/AbstractProjectLoader.java | 2 +- .../gradle/spi/newproject/TemplateOperation.java | 40 + .../netbeans/modules/lsp/client/LSPBindings.java | 13 +++ .../client/bindings/CompletionProviderImpl.java| 6 +- .../lsp/client/bindings/SemanticHighlight.java | 73 ++-- .../textmate/lexer/resources/fontsColors.xml | 2 + .../modules/java/hints/OrganizeImports.java| 1 + .../netbeans/modules/java/lsp/server/Utils.java| 4 + .../server/protocol/TextDocumentServiceImpl.java | 7 +- .../java/lsp/server/protocol/ServerTest.java | 99 +- java/maven.embedder/external/binariesembedded-list | 4 +- .../netbeans/nbbuild/ReleaseJsonProperties.java| 2 +- nbbuild/build.xml | 85 +-- nbbuild/rat-exclusions.txt | 1 + .../netbeans/modules/search/BasicSearchForm.java | 19 - .../modules/search/BasicSearchProvider.java| 3 +- .../org/netbeans/modules/search/Bundle.properties | 1 + .../netbeans/modules/search/PatternSandbox.java| 2 +- .../search/matcher/BufferedCharSequence.java | 2 +- .../modules/search/ui/ShorteningCellRenderer.java | 2 +- 24 files changed, 267 insertions(+), 113 deletions(-) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Created] (NETBEANS-6419) Help Online Support and Docs does not work
Kenneth Fogel created NETBEANS-6419: --- Summary: Help Online Support and Docs does not work Key: NETBEANS-6419 URL: https://issues.apache.org/jira/browse/NETBEANS-6419 Project: NetBeans Issue Type: Bug Components: platform - Help System Affects Versions: 12.6 Reporter: Kenneth Fogel When I select Help Online Support and Docs I get an error message in a popup that says: Cannot open file "C:\dev\NetBeans-12.6\https:\netbeans.apache.org\help\index.html" cannot be opened: Folder : "C:\dev\NetBeans-12.6\https:\netbeans.apache.org\help" doesn't exist. It is appending the location where I installed NetBeans to what should have been a URL. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Created] (NETBEANS-6418) On Windows 11 Copy does not work to external applications
Kenneth Fogel created NETBEANS-6418: --- Summary: On Windows 11 Copy does not work to external applications Key: NETBEANS-6418 URL: https://issues.apache.org/jira/browse/NETBEANS-6418 Project: NetBeans Issue Type: Bug Components: editor - Other Affects Versions: 12.6 Environment: Intel i9 32 G Ram Windows 11 Java 17 Reporter: Kenneth Fogel The Copy command or Ctrl-C will copy whatever is selected so that it can be pasted into a file opened in NetBeans. It does not work if you are copying to an external program such as NotePad++ or MS Word. These programs show that there is nothing to paste. However, if you Cut or Ctrl-X the selection then it can be pasted into an external program. I have seen this behaviour in earlier versions. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-6417) Unable to register TopComponents when using java 17
[ https://issues.apache.org/jira/browse/NETBEANS-6417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] anton updated NETBEANS-6417: Priority: Blocker (was: Major) > Unable to register TopComponents when using java 17 > --- > > Key: NETBEANS-6417 > URL: https://issues.apache.org/jira/browse/NETBEANS-6417 > Project: NetBeans > Issue Type: Bug > Components: platform - Module System, platform - Window System >Affects Versions: 12.6 > Environment: Windows 10, > OpenJDK 17, > Netbeans 12.6, > Netbeans APIs; RELEASE126 >Reporter: anton >Priority: Blocker > > We have a Netbeans platform project and currently changing java platform from > java 1.8 to java 17. Along with that we've updated all the netbeans APIs to > RELEASE126. When doing this, Netbeans seems to be unable to generate/ read > the resource bundle. I think the issue stems from > org.openide.windows.TopComponent, but I'm not sure. > The following error message is present for all our TopComponents: > {code:java} > INFO [org.netbeans.core.windows.persistence]: > [PersistenceManager.getTopComponentForID] Problem when deserializing > TopComponent for tcID:'ProblemTopComponent'. Reason: null > Content: > > "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd;> > > > > Class: class ...core.problem.ProblemTopComponent > Source: > MultiFileObject@73a721d9[Windows2Local/Components/ProblemTopComponent.settings] > Content: > > "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd;> > > > > Class: class ...core.problem.ProblemTopComponent > Source: > MultiFileObject@73a721d9[Windows2Local/Components/ProblemTopComponent.settings] > Caused: java.util.MissingResourceException: Can't find resource for bundle > org.openide.util.NbBundle$PBundle, key CTL_ProblemTopComponent > at java.base/java.util.ResourceBundle.getObject(ResourceBundle.java:564) > at java.base/java.util.ResourceBundle.getString(ResourceBundle.java:521) > at org.openide.util.NbBundle.getMessage(NbBundle.java:637) > at ...core.problem.Bundle.CTL_ProblemTopComponent(Bundle.java:16) > at ...core.problem.ProblemTopComponent.(ProblemTopComponent.java:67) > Caused: java.lang.reflect.InvocationTargetException > at > java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) > at > java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at > java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) > at > java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480) > at > org.netbeans.modules.settings.convertors.XMLSettingsSupport.newInstance(XMLSettingsSupport.java:75) > at > org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.instanceCreate(XMLSettingsSupport.java:603) > Caused: java.io.IOException > at > org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.instanceCreate(XMLSettingsSupport.java:605) > at > org.netbeans.modules.settings.convertors.SerialDataConvertor$SettingsInstance.instanceCreate(SerialDataConvertor.java:401) > [catch] at > org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentPersistentForID(PersistenceManager.java:547) > at > org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentForID(PersistenceManager.java:657) > at > org.netbeans.core.windows.PersistenceHandler.getTopComponentForID(PersistenceHandler.java:453) > at org.netbeans.core.windows.LazyLoader.loadNow(LazyLoader.java:135) > at org.netbeans.core.windows.LazyLoader.access$400(LazyLoader.java:39) > at org.netbeans.core.windows.LazyLoader$2.run(LazyLoader.java:106) > at > java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318) > at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771) > at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722) > at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716) > at > java.base/java.security.AccessController.doPrivileged(AccessController.java:399) > at > java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) > at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741) > at > org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136) > at > java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) > at > java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) > at >
[jira] [Updated] (NETBEANS-6416) No way to find original stream handler for jar protocol
[ https://issues.apache.org/jira/browse/NETBEANS-6416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] anton updated NETBEANS-6416: Priority: Blocker (was: Major) > No way to find original stream handler for jar protocol > --- > > Key: NETBEANS-6416 > URL: https://issues.apache.org/jira/browse/NETBEANS-6416 > Project: NetBeans > Issue Type: Bug > Components: platform - JDK Problems >Affects Versions: 12.6 > Environment: Windows 10, > Openjdk 17, > Netbeans 12.6 > Netbeans API versions: RELEASE126 > >Reporter: anton >Priority: Blocker > > We're currently trying to migrate a Netbeans platform project from java 1.8 > to 17, and are running into multiple Netbeans related problems. When > launching the application, the very first error that is occurring is the > following: > {code:java} > SEVERE: No way to find original stream handler for jar protocol > java.lang.reflect.InaccessibleObjectException: Unable to make field transient > java.net.URLStreamHandler java.net.URL.handler accessible: module java.base > does not "opens java.net" to unnamed module @448139f0 > at > java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354) > at > java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) > at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178) > at java.base/java.lang.reflect.Field.setAccessible(Field.java:172) > at > org.netbeans.ProxyURLStreamHandlerFactory.register(ProxyURLStreamHandlerFactory.java:59) > at org.netbeans.JarClassLoader.(JarClassLoader.java:117) > at org.netbeans.MainImpl.execute(MainImpl.java:153) > at org.netbeans.MainImpl.main(MainImpl.java:60) > at org.netbeans.Main.main(Main.java:58){code} > }}{}}}I've tried adding {-}J{-}-add-opens java.base/java.net=ALL-UNNAMED > to the maven-compiler-plugin as a compiler argument in multiple modules to > try and fix the problem, but it doesn't seem to work. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Created] (NETBEANS-6417) Unable to register TopComponents when using java 17
anton created NETBEANS-6417: --- Summary: Unable to register TopComponents when using java 17 Key: NETBEANS-6417 URL: https://issues.apache.org/jira/browse/NETBEANS-6417 Project: NetBeans Issue Type: Bug Components: platform - Module System, platform - Window System Affects Versions: 12.6 Environment: Windows 10, OpenJDK 17, Netbeans 12.6, Netbeans APIs; RELEASE126 Reporter: anton We have a Netbeans platform project and currently changing java platform from java 1.8 to java 17. Along with that we've updated all the netbeans APIs to RELEASE126. When doing this, Netbeans seems to be unable to generate/ read the resource bundle. I think the issue stems from org.openide.windows.TopComponent, but I'm not sure. The following error message is present for all our TopComponents: {code:java} INFO [org.netbeans.core.windows.persistence]: [PersistenceManager.getTopComponentForID] Problem when deserializing TopComponent for tcID:'ProblemTopComponent'. Reason: null Content: http://www.netbeans.org/dtds/sessionsettings-1_0.dtd;> Class: class ...core.problem.ProblemTopComponent Source: MultiFileObject@73a721d9[Windows2Local/Components/ProblemTopComponent.settings] Content: http://www.netbeans.org/dtds/sessionsettings-1_0.dtd;> Class: class ...core.problem.ProblemTopComponent Source: MultiFileObject@73a721d9[Windows2Local/Components/ProblemTopComponent.settings] Caused: java.util.MissingResourceException: Can't find resource for bundle org.openide.util.NbBundle$PBundle, key CTL_ProblemTopComponent at java.base/java.util.ResourceBundle.getObject(ResourceBundle.java:564) at java.base/java.util.ResourceBundle.getString(ResourceBundle.java:521) at org.openide.util.NbBundle.getMessage(NbBundle.java:637) at ...core.problem.Bundle.CTL_ProblemTopComponent(Bundle.java:16) at ...core.problem.ProblemTopComponent.(ProblemTopComponent.java:67) Caused: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480) at org.netbeans.modules.settings.convertors.XMLSettingsSupport.newInstance(XMLSettingsSupport.java:75) at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.instanceCreate(XMLSettingsSupport.java:603) Caused: java.io.IOException at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.instanceCreate(XMLSettingsSupport.java:605) at org.netbeans.modules.settings.convertors.SerialDataConvertor$SettingsInstance.instanceCreate(SerialDataConvertor.java:401) [catch] at org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentPersistentForID(PersistenceManager.java:547) at org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentForID(PersistenceManager.java:657) at org.netbeans.core.windows.PersistenceHandler.getTopComponentForID(PersistenceHandler.java:453) at org.netbeans.core.windows.LazyLoader.loadNow(LazyLoader.java:135) at org.netbeans.core.windows.LazyLoader.access$400(LazyLoader.java:39) at org.netbeans.core.windows.LazyLoader$2.run(LazyLoader.java:106) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) Content:
[jira] [Updated] (NETBEANS-395) Please add option to automatically add closing tag after close the start tag
[ https://issues.apache.org/jira/browse/NETBEANS-395?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Lenz updated NETBEANS-395: External issue URL: https://bz.apache.org/netbeans/show_bug.cgi?id=249706 (was: https://netbeans.org/bugzilla/show_bug.cgi?id=249706) > Please add option to automatically add closing tag after close the start tag > > > Key: NETBEANS-395 > URL: https://issues.apache.org/jira/browse/NETBEANS-395 > Project: NetBeans > Issue Type: Improvement > Components: web - HTML Editor, xml - Text-Edit >Affects Versions: Next >Reporter: Christian Lenz >Priority: Major > Attachments: visualStudioEndTagCompletion.gif > > > In Visual Studio (Attachment: Visual Studio endtag completion) you can see > that, when I type: "" (Without quotes) I don't get a > popup which shows me the end tag, it will add the end tag automatically, > which is very nice. > For my perspective, many people will write the start tag and the end tag > after this so why do we need the extra popup? with only one entry? For those > who don't want/need it, it would be nice if we can have an option for (X)HTML > and XML to enable/disable: Add end tag automatically. And if you have divs, > and you forgot a parent element, so you will surround the code. So in my > opinion, there won't be big problems for this very nice enhancement. > Same exists in WebStorm and I guess in VS Code too. > The current behaviour is: type "" and the code > completion popup comes up with only one entry, the closing tag. This is not > needed in my perspective. > If so, then we should make it optional with an option like: "Enable > automatically closing end tags" or whatever. > This will make you much more productive. > Regards > Chris -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-6384) Detect another Java support ext and recommend to Disable one
[ https://issues.apache.org/jira/browse/NETBEANS-6384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ASF GitHub Bot updated NETBEANS-6384: - Labels: pull-request-available (was: ) > Detect another Java support ext and recommend to Disable one > > > Key: NETBEANS-6384 > URL: https://issues.apache.org/jira/browse/NETBEANS-6384 > Project: NetBeans > Issue Type: Task > Components: vscode >Affects Versions: 12.5 >Reporter: Martin Balin >Assignee: Jaroslav Tulach >Priority: Major > Labels: pull-request-available > Fix For: NB13 > > Attachments: Screenshot 2022-01-25 at 11.59.09.png > > Time Spent: 10m > Remaining Estimate: 0h > > VSNetBeans currently detects installation of MS Java ext pack and informs > user it disables some services of it, code lenses and code completion. > See > [https://github.com/apache/netbeans/blob/master/java/java.lsp.server/vscode/src/extension.ts#L284] > {code:javascript} > conf.update('java.test.editor.enableShortcuts', false, false).then(() => {}, > disablingFailed); > conf.update('java.debug.settings.enableRunDebugCodeLens', false, > false).then(() => {}, disablingFailed); > {code} > This behaviour should change to better coexist with MS Java ext. > VSNetBeans needs to show user a dialog recommending to Enable per workspace > one of the Java ext packs. Looking at VSCode API it seems there is still > missing API to DISABLE extension programatically, while there is > [uninstallExtension|https://code.visualstudio.com/api/references/commands] > command? > Proposed solution is not perfect: > VSNetBeans will show dialog with text like: _Another Java support extension > is already installed. It is recommended to use only one Java support per > workspace. Please Disable one of Java ext for workspace._ *OK* button to open > Extensions panel and user has to do it UX is TBD. > Some context info: > VSCode plans to stop recommend extensions see > [https://github.com/microsoft/vscode/issues/136301] in Feb. > And they are also working on extension sets per workspace > [https://github.com/microsoft/vscode/issues/40239] -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-6384) Detect another Java support ext and recommend to Disable one
[ https://issues.apache.org/jira/browse/NETBEANS-6384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jaroslav Tulach updated NETBEANS-6384: -- Description: VSNetBeans currently detects installation of MS Java ext pack and informs user it disables some services of it, code lenses and code completion. See [https://github.com/apache/netbeans/blob/master/java/java.lsp.server/vscode/src/extension.ts#L284] {code:javascript} conf.update('java.test.editor.enableShortcuts', false, false).then(() => {}, disablingFailed); conf.update('java.debug.settings.enableRunDebugCodeLens', false, false).then(() => {}, disablingFailed); {code} This behaviour should change to better coexist with MS Java ext. VSNetBeans needs to show user a dialog recommending to Enable per workspace one of the Java ext packs. Looking at VSCode API it seems there is still missing API to DISABLE extension programatically, while there is [uninstallExtension|https://code.visualstudio.com/api/references/commands] command? Proposed solution is not perfect: VSNetBeans will show dialog with text like: _Another Java support extension is already installed. It is recommended to use only one Java support per workspace. Please Disable one of Java ext for workspace._ *OK* button to open Extensions panel and user has to do it UX is TBD. Some context info: VSCode plans to stop recommend extensions see [https://github.com/microsoft/vscode/issues/136301] in Feb. And they are also working on extension sets per workspace [https://github.com/microsoft/vscode/issues/40239] was: VSNetBeans currently detects installation of MS Java ext pack and informs user it will disable some services of it, code lenses and code completion. See [https://github.com/apache/netbeans/blob/master/java/java.lsp.server/vscode/src/extension.ts#L284] {code:javascript} conf.update('java.test.editor.enableShortcuts', false, false).then(() => {}, disablingFailed); conf.update('java.debug.settings.enableRunDebugCodeLens', false, false).then(() => {}, disablingFailed); {code} This behaviour should change to better coexist with MS Java ext. VSNetBeans needs to show user a dialog recommending to Enable per workspace one of the Java ext packs. Looking at VSCode API it seems there is still missing API to DISABLE extension programatically, while there is [uninstallExtension|https://code.visualstudio.com/api/references/commands] command? Proposed solution is not perfect: VSNetBeans will show dialog with text like: _Another Java support extension is already installed. It is recommended to use only one Java support per workspace. Please Disable one of Java ext for workspace._ *OK* button to open Extensions panel and user has to do it UX is TBD. Some context info: VSCode plans to stop recommend extensions see [https://github.com/microsoft/vscode/issues/136301] in Feb. And they are also working on extension sets per workspace [https://github.com/microsoft/vscode/issues/40239] > Detect another Java support ext and recommend to Disable one > > > Key: NETBEANS-6384 > URL: https://issues.apache.org/jira/browse/NETBEANS-6384 > Project: NetBeans > Issue Type: Task > Components: vscode >Affects Versions: 12.5 >Reporter: Martin Balin >Assignee: Jaroslav Tulach >Priority: Major > Fix For: NB13 > > Attachments: Screenshot 2022-01-25 at 11.59.09.png > > > VSNetBeans currently detects installation of MS Java ext pack and informs > user it disables some services of it, code lenses and code completion. > See > [https://github.com/apache/netbeans/blob/master/java/java.lsp.server/vscode/src/extension.ts#L284] > {code:javascript} > conf.update('java.test.editor.enableShortcuts', false, false).then(() => {}, > disablingFailed); > conf.update('java.debug.settings.enableRunDebugCodeLens', false, > false).then(() => {}, disablingFailed); > {code} > This behaviour should change to better coexist with MS Java ext. > VSNetBeans needs to show user a dialog recommending to Enable per workspace > one of the Java ext packs. Looking at VSCode API it seems there is still > missing API to DISABLE extension programatically, while there is > [uninstallExtension|https://code.visualstudio.com/api/references/commands] > command? > Proposed solution is not perfect: > VSNetBeans will show dialog with text like: _Another Java support extension > is already installed. It is recommended to use only one Java support per > workspace. Please Disable one of Java ext for workspace._ *OK* button to open > Extensions panel and user has to do it UX is TBD. > Some context info: > VSCode plans to stop recommend extensions see > [https://github.com/microsoft/vscode/issues/136301] in Feb. > And they are also working on extension sets per
[jira] [Updated] (NETBEANS-6416) No way to find original stream handler for jar protocol
[ https://issues.apache.org/jira/browse/NETBEANS-6416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] anton updated NETBEANS-6416: Description: We're currently trying to migrate a Netbeans platform project from java 1.8 to 17, and are running into multiple Netbeans related problems. When launching the application, the very first error that is occurring is the following: {code:java} SEVERE: No way to find original stream handler for jar protocol java.lang.reflect.InaccessibleObjectException: Unable to make field transient java.net.URLStreamHandler java.net.URL.handler accessible: module java.base does not "opens java.net" to unnamed module @448139f0 at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354) at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178) at java.base/java.lang.reflect.Field.setAccessible(Field.java:172) at org.netbeans.ProxyURLStreamHandlerFactory.register(ProxyURLStreamHandlerFactory.java:59) at org.netbeans.JarClassLoader.(JarClassLoader.java:117) at org.netbeans.MainImpl.execute(MainImpl.java:153) at org.netbeans.MainImpl.main(MainImpl.java:60) at org.netbeans.Main.main(Main.java:58){code} }}{}}}I've tried adding {-}J{-}-add-opens java.base/java.net=ALL-UNNAMED to the maven-compiler-plugin as a compiler argument in multiple modules to try and fix the problem, but it doesn't seem to work. was: We're currently trying to migrate a Netbeans platform project from java 1.8 to 17, and are running into multiple Netbeans related problems. When launching the application, the very first error that is occurring is the following: {code:java} SEVERE: No way to find original stream handler for jar protocol java.lang.reflect.InaccessibleObjectException: Unable to make field transient java.net.URLStreamHandler java.net.URL.handler accessible: module java.base does not "opens java.net" to unnamed module @448139f0 at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354) at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178) at java.base/java.lang.reflect.Field.setAccessible(Field.java:172) at org.netbeans.ProxyURLStreamHandlerFactory.register(ProxyURLStreamHandlerFactory.java:59) at org.netbeans.JarClassLoader.(JarClassLoader.java:117) at org.netbeans.MainImpl.execute(MainImpl.java:153) at org.netbeans.MainImpl.main(MainImpl.java:60) at org.netbeans.Main.main(Main.java:58){code} {{{}{}}}I've tried adding -J--add-opens java.base/java.net=ALL-UNNAMED to the maven-compiler-plugin in multiple modules to try and fix the problem, but it doesn't seem to work. > No way to find original stream handler for jar protocol > --- > > Key: NETBEANS-6416 > URL: https://issues.apache.org/jira/browse/NETBEANS-6416 > Project: NetBeans > Issue Type: Bug > Components: platform - JDK Problems >Affects Versions: 12.6 > Environment: Windows 10, > Openjdk 17, > Netbeans 12.6 > Netbeans API versions: RELEASE126 > >Reporter: anton >Priority: Major > > We're currently trying to migrate a Netbeans platform project from java 1.8 > to 17, and are running into multiple Netbeans related problems. When > launching the application, the very first error that is occurring is the > following: > {code:java} > SEVERE: No way to find original stream handler for jar protocol > java.lang.reflect.InaccessibleObjectException: Unable to make field transient > java.net.URLStreamHandler java.net.URL.handler accessible: module java.base > does not "opens java.net" to unnamed module @448139f0 > at > java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354) > at > java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) > at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178) > at java.base/java.lang.reflect.Field.setAccessible(Field.java:172) > at > org.netbeans.ProxyURLStreamHandlerFactory.register(ProxyURLStreamHandlerFactory.java:59) > at org.netbeans.JarClassLoader.(JarClassLoader.java:117) > at org.netbeans.MainImpl.execute(MainImpl.java:153) > at org.netbeans.MainImpl.main(MainImpl.java:60) > at org.netbeans.Main.main(Main.java:58){code} > }}{}}}I've tried adding {-}J{-}-add-opens java.base/java.net=ALL-UNNAMED > to the maven-compiler-plugin as a compiler argument in multiple modules to > try and fix the problem, but it doesn't seem to work. -- This message was sent by Atlassian
[jira] [Created] (NETBEANS-6416) No way to find original stream handler for jar protocol
anton created NETBEANS-6416: --- Summary: No way to find original stream handler for jar protocol Key: NETBEANS-6416 URL: https://issues.apache.org/jira/browse/NETBEANS-6416 Project: NetBeans Issue Type: Bug Components: platform - JDK Problems Affects Versions: 12.6 Environment: Windows 10, Openjdk 17, Netbeans 12.6 Netbeans API versions: RELEASE126 Reporter: anton We're currently trying to migrate a Netbeans platform project from java 1.8 to 17, and are running into multiple Netbeans related problems. When launching the application, the very first error that is occurring is the following: {code:java} SEVERE: No way to find original stream handler for jar protocol java.lang.reflect.InaccessibleObjectException: Unable to make field transient java.net.URLStreamHandler java.net.URL.handler accessible: module java.base does not "opens java.net" to unnamed module @448139f0 at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354) at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178) at java.base/java.lang.reflect.Field.setAccessible(Field.java:172) at org.netbeans.ProxyURLStreamHandlerFactory.register(ProxyURLStreamHandlerFactory.java:59) at org.netbeans.JarClassLoader.(JarClassLoader.java:117) at org.netbeans.MainImpl.execute(MainImpl.java:153) at org.netbeans.MainImpl.main(MainImpl.java:60) at org.netbeans.Main.main(Main.java:58){code} {{{}{}}}I've tried adding -J--add-opens java.base/java.net=ALL-UNNAMED to the maven-compiler-plugin in multiple modules to try and fix the problem, but it doesn't seem to work. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[netbeans] branch master updated: Updating vsce to the 2.6.4 version. (#3499)
This is an automated email from the ASF dual-hosted git repository. dbalek pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/master by this push: new f9c7526 Updating vsce to the 2.6.4 version. (#3499) f9c7526 is described below commit f9c75266d97f86c4ae7eaa214ee31bb6164a283e Author: Dusan Balek AuthorDate: Wed Jan 26 14:03:51 2022 +0100 Updating vsce to the 2.6.4 version. (#3499) --- .travis.yml |2 +- java/java.lsp.server/build.xml|2 +- java/java.lsp.server/vscode/package-lock.json | 1292 - java/java.lsp.server/vscode/package.json | 15 +- 4 files changed, 1260 insertions(+), 51 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7793495..d561c3b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -652,7 +652,7 @@ matrix: - name: Build the Visual Studio Code extension for Java jdk: openjdk8 before_install: -- nvm install 12.14.1 +- nvm install 16.13.2 env: - OPTS="-Dmetabuild.jsonurl=https://raw.githubusercontent.com/apache/netbeans-jenkins-lib/master/meta/netbeansrelease.json -quiet -Dcluster.config=java -Djavac.compilerargs=-nowarn -Dbuild.compiler.deprecation=false -Dtest-unit-sys-prop.ignore.random.failures=true" before_script: diff --git a/java/java.lsp.server/build.xml b/java/java.lsp.server/build.xml index 6bc4c5c..57daa82 100644 --- a/java/java.lsp.server/build.xml +++ b/java/java.lsp.server/build.xml @@ -97,7 +97,7 @@ - + diff --git a/java/java.lsp.server/vscode/package-lock.json b/java/java.lsp.server/vscode/package-lock.json index 0ce5eb8..964eeb1 100644 --- a/java/java.lsp.server/vscode/package-lock.json +++ b/java/java.lsp.server/vscode/package-lock.json @@ -1,8 +1,1232 @@ { "name": "apache-netbeans-java", "version": "0.1.0", - "lockfileVersion": 1, + "lockfileVersion": 2, "requires": true, + "packages": { + "": { + "name": "apache-netbeans-java", + "version": "0.1.0", + "license": "Apache 2.0", + "dependencies": { + "jsonc-parser": "3.0.0", + "vscode-debugadapter": "1.42.1", + "vscode-languageclient": "7.0.0" + }, + "devDependencies": { + "@types/glob": "^7.1.1", + "@types/mocha": "^9.0.0", + "@types/node": "^13.11.0", + "@types/ps-node": "^0.1.0", + "@types/vscode": "^1.60.0", + "glob": "^7.1.6", + "mocha": "^9.1.2", + "ps-node": "^0.1.6", + "typescript": "^3.8.3", + "vscode-test": "^1.3.0" + }, + "engines": { + "vscode": "^1.60.0" + } + }, + "node_modules/@types/glob": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.3.tgz;, + "integrity": "sha512-SEYeGAIQIQX8NN6LDKprLjbrd5dARM5EXsd8GI/A5l0apYI1fGMWgPHSe4ZKL4eozlAyI+doUE9XbYS4xCkQ1w==", + "dev": true, + "dependencies": { + "@types/minimatch": "*", + "@types/node": "*" + } + }, + "node_modules/@types/minimatch": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz;, + "integrity": "sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==", + "dev": true + }, + "node_modules/@types/mocha": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-9.0.0.tgz;, + "integrity": "sha512-scN0hAWyLVAvLR9AyW7HoFF5sJZglyBsbPuHO4fv7JRvfmPBMfp1ozWqOf/e4wwPNxezBZXRfWzMb6iFLgEVRA==", + "dev": true + }, + "node_modules/@types/node": { + "version": "13.13.15", + "resolved": "https://registry.npmjs.org/@types/node/-/node-13.13.15.tgz;, + "integrity":
[netbeans-jenkins-lib] branch master updated: put vsix generation under withmaven
This is an automated email from the ASF dual-hosted git repository. skygo pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans-jenkins-lib.git The following commit(s) were added to refs/heads/master by this push: new c0ae2ab put vsix generation under withmaven c0ae2ab is described below commit c0ae2ab6202c31d6fec7813c96fcf2284a9289ee Author: Eric Barboni AuthorDate: Wed Jan 26 12:24:37 2022 +0100 put vsix generation under withmaven --- vars/asfMainNetBeansBuild.groovy | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/vars/asfMainNetBeansBuild.groovy b/vars/asfMainNetBeansBuild.groovy index 561aa78..b96dbe2 100644 --- a/vars/asfMainNetBeansBuild.groovy +++ b/vars/asfMainNetBeansBuild.groovy @@ -368,12 +368,14 @@ def doParallelClusters(cconfigs) { def commonparam = "-Dexternallist=${netbeansbase}/build/external.info" //sh "mvn org.apache.netbeans.utilities:nb-repository-plugin:1.5:download ${commonparam} -DrepositoryUrl=https://repo.maven.apache.org/maven2; sh "mvn org.apache.netbeans.utilities:nb-repository-plugin:${repopluginversion}:populate ${commonparam} -DnetbeansNbmDirectory=${netbeansbase}/nbms -DnetbeansInstallDirectory=${netbeansbase}/netbeans -DnetbeansSourcesDirectory=${netbeansbase}/build/source-zips -DnetbeansJavadocDirectory=${netbeansbase}/build/javadoc -DparentGAV=org.apache.netbeans:netbeans-parent:2 -DforcedVersion=${mavenVersion} -DskipInstall=true -DdeployUrl=file://${env.WORKSPACE}/m [...] + + // make vsix available to dist to pickup (only for main release) need a maven setup + sh "ant -f build-${clustername}-temp/java/java.lsp.server build-vscode-ext -Dvsix.version=${vsixversion}" + sh "cp -r build-${clustername}-temp/java/java.lsp.server/build/*.vsix dist/vsix/" } archiveArtifacts 'mavenrepository/**' -// make vsix available to dist to pickup (only for main release) -sh "ant -f build-${clustername}-temp/java/java.lsp.server build-vscode-ext -Dvsix.version=${vsixversion}" -sh "cp -r build-${clustername}-temp/java/java.lsp.server/build/*.vsix dist/vsix/" + } // do checksum - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-6384) Detect another Java support ext and recommend to Disable one
[ https://issues.apache.org/jira/browse/NETBEANS-6384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17482327#comment-17482327 ] Martin Balin commented on NETBEANS-6384: I propose to integrate this into NB13 with changed text. And fix {{{}'java.clean.workspace' already exists{}}}? as separate issue. > Detect another Java support ext and recommend to Disable one > > > Key: NETBEANS-6384 > URL: https://issues.apache.org/jira/browse/NETBEANS-6384 > Project: NetBeans > Issue Type: Task > Components: vscode >Affects Versions: 12.5 >Reporter: Martin Balin >Assignee: Jaroslav Tulach >Priority: Major > Fix For: NB13 > > Attachments: Screenshot 2022-01-25 at 11.59.09.png > > > VSNetBeans currently detects installation of MS Java ext pack and informs > user it will disable some services of it, code lenses and code completion. > See > [https://github.com/apache/netbeans/blob/master/java/java.lsp.server/vscode/src/extension.ts#L284] > {code:javascript} > conf.update('java.test.editor.enableShortcuts', false, false).then(() => {}, > disablingFailed); > conf.update('java.debug.settings.enableRunDebugCodeLens', false, > false).then(() => {}, disablingFailed); > {code} > This behaviour should change to better coexist with MS Java ext. > VSNetBeans needs to show user a dialog recommending to Enable per workspace > one of the Java ext packs. Looking at VSCode API it seems there is still > missing API to DISABLE extension programatically, while there is > [uninstallExtension|https://code.visualstudio.com/api/references/commands] > command? > Proposed solution is not perfect: > VSNetBeans will show dialog with text like: _Another Java support extension > is already installed. It is recommended to use only one Java support per > workspace. Please Disable one of Java ext for workspace._ *OK* button to open > Extensions panel and user has to do it UX is TBD. > Some context info: > VSCode plans to stop recommend extensions see > [https://github.com/microsoft/vscode/issues/136301] in Feb. > And they are also working on extension sets per workspace > [https://github.com/microsoft/vscode/issues/40239] -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists