[jira] [Updated] (NETBEANS-6069) netbeans insist that properties file should be encoded in ISO-8859-1, but is not correct in all cases
[ https://issues.apache.org/jira/browse/NETBEANS-6069?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pieter van den Hombergh updated NETBEANS-6069: -- Description: I happened to edit a bundle properties file with german UTF text inside, but NetBeans opens as ISO-8859-1. The use case in this case is PHP project, but I think it is no longer relevant to make NetBeans assume from the extension that the file is ISO-8859-1. NetBeans seems to silently convert, and thereby break the original UTF-8 file. Anyway, it was a surprise. Maybe this is adequate: 'assumption is the mother of all f**k-ups. was: I happened to edit a bundle properties file with german UTF text inside, but NetBeans opens as ISO-8859-1. The use case in this case is PHP project, but I think it is no longer relevant to make NetBeans assume from the extension that the file is ISO-8859-1 Anyway, it was a surprise. Maybe this is adequate: 'assumption is the mother of all f**k-ups. > netbeans insist that properties file should be encoded in ISO-8859-1, but is > not correct in all cases > - > > Key: NETBEANS-6069 > URL: https://issues.apache.org/jira/browse/NETBEANS-6069 > Project: NetBeans > Issue Type: Improvement > Components: cnd - Editor >Affects Versions: 12.5 >Reporter: Pieter van den Hombergh >Priority: Major > > > I happened to edit a bundle properties file with german UTF text inside, but > NetBeans opens as ISO-8859-1. > The use case in this case is PHP project, but I think it is no longer > relevant to > make NetBeans assume from the extension that the file is ISO-8859-1. > NetBeans seems to silently convert, and thereby break the original UTF-8 file. > > Anyway, it was a surprise. > Maybe this is adequate: 'assumption is the mother of all f**k-ups. > -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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-6069) netbeans insist that properties file should be encoded in ISO-8859-1, but is not correct in all cases
Pieter van den Hombergh created NETBEANS-6069: - Summary: netbeans insist that properties file should be encoded in ISO-8859-1, but is not correct in all cases Key: NETBEANS-6069 URL: https://issues.apache.org/jira/browse/NETBEANS-6069 Project: NetBeans Issue Type: Improvement Components: cnd - Editor Affects Versions: 12.5 Reporter: Pieter van den Hombergh I happened to edit a bundle properties file with german UTF text inside, but NetBeans opens as ISO-8859-1. The use case in this case is PHP project, but I think it is no longer relevant to make NetBeans assume from the extension that the file is ISO-8859-1 Anyway, it was a surprise. Maybe this is adequate: 'assumption is the mother of all f**k-ups. -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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-5327) closing bracket stays indented in source+format on record class.
[ https://issues.apache.org/jira/browse/NETBEANS-5327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pieter van den Hombergh updated NETBEANS-5327: -- Affects Version/s: 12.5 > closing bracket stays indented in source+format on record class. > - > > Key: NETBEANS-5327 > URL: https://issues.apache.org/jira/browse/NETBEANS-5327 > Project: NetBeans > Issue Type: Improvement > Components: editor - Formatting & Indentation >Affects Versions: 12.2, 12.3, 12.4, 12.5 > Environment: ubuntu 20.04 jjdk16 ea netbeans 12.2 and 12.3-beta2 >Reporter: Pieter van den Hombergh >Priority: Critical > > Normally the source formatter puts the class-closing brace > at the start of the line. > This is not the case for java 14+ (preview) record types. Tested on 12.2 and > 12.3-beta2 and 1.4-beta1 > Formatting happens when you select soure>format or ctrl+shift+f (linux, > windows). > The problem appears to be related to the canonical constructor definition > _before_ the opening braces, because my normal setting > to put white space before closing parenthesis is also ignored. > {code:java} > // Some comments here > public record IntegerRange( Integer start, Integer end) implements // closing > parens should be preceded > Range { // by whitespace with my > settings > } // offending line, not undented to column 1 > {code} > After further investigation, it appears to be influenced by the editor > settings 'spaces, within parenthesis, method declaration' When this is > turned off, the effect does not appear. -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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-6068) Groovy broken in 12.5
Mike created NETBEANS-6068: -- Summary: Groovy broken in 12.5 Key: NETBEANS-6068 URL: https://issues.apache.org/jira/browse/NETBEANS-6068 Project: NetBeans Issue Type: Bug Components: groovy - Editor Affects Versions: 12.5 Environment: Windows 10 JDK 17 Reporter: Mike Easy to replicate. On a clean install of NB 12.5 using numerous JDK versions. Install JDK Install NB 12.5 Enable Groovy plugin Create new project Create 'demo' package space in project Create new template groovy script in package. * Fails to create file * http://www.netbeans.org/dtds/sessionsettings-1_0.dtd";> ALL [null]: Class: class org.netbeans.modules.jshell.editor.ConsoleEditorALL [null]: Source: MultiFileObject@634c9c14[Windows2Local/Components/JShellEditor.settings]INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Resolving dependencies took: 4 msINFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 31 binary roots took: 3,452 msINFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\Temp\g4\test took: 2 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\Temp\g4\src took: 215 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 2 source roots took: 217 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]SEVERE [global]java.lang.IllegalArgumentException: No folders selected at org.netbeans.spi.java.project.support.ui.templates.JavaTemplates.createPackageChooser(JavaTemplates.java:95) at org.netbeans.spi.java.project.support.ui.templates.JavaTemplates.createPackageChooser(JavaTemplates.java:74) at org.netbeans.spi.java.project.support.ui.templates.JavaTemplates.createPackageChooser(JavaTemplates.java:49) at org.netbeans.modules.groovy.support.wizard.AbstractFileWizard.createPanels(AbstractFileWizard.java:99) at org.netbeans.modules.groovy.support.wizard.AbstractFileWizard.initialize(AbstractFileWizard.java:71) at org.netbeans.modules.groovy.support.wizard.AbstractGroovyWizard.initialize(AbstractGroovyWizard.java:61) If you click through the error if creates the template script. However, trying to run the file give this error; ant -f C:\\Temp\\g4 -Djavac.includes=demo/newGroovyScript.groovy -Drun.class=demo.newGroovyScript run-single init: Deleting: C:\Temp\g4\build\built-jar.properties deps-jar: Updating property file: C:\Temp\g4\build\built-jar.properties compile-single: run-single: Error: Could not find or load main class demo.newGroovyScript Caused by: java.lang.ClassNotFoundException: demo.newGroovyScript C:\Temp\g4\nbproject\build-impl.xml:1341: The following error occurred while executing this line: C:\Temp\g4\nbproject\build-impl.xml:936: Java returned: 1 BUILD FAILED (total time: 0 seconds) -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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-5722) NPE on "Open Project ..." with CDE/Motif Look and Feel
[ https://issues.apache.org/jira/browse/NETBEANS-5722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benjamin Asbach resolved NETBEANS-5722. --- Resolution: Fixed PR was merged into master. I guess this will be part of NetBeans 12.6 > NPE on "Open Project ..." with CDE/Motif Look and Feel > -- > > Key: NETBEANS-5722 > URL: https://issues.apache.org/jira/browse/NETBEANS-5722 > Project: NetBeans > Issue Type: Bug > Components: ide - UI >Affects Versions: 12.4, 12.5 >Reporter: Mario Bruckschwaiger >Assignee: Benjamin Asbach >Priority: Major > Labels: pull-request-available > Fix For: 12.6 > > Attachments: IDE-Log.txt, UI-Log.txt > > Time Spent: 0.5h > Remaining Estimate: 0h > > When selecting "Open Project ..." in the Projects-view with the CDE/Motif > Look and Feel, no dialog opens but the exception happens. No exception on > "New Project ..." or "New File ...", or when using a different Look and Feel. -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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-5722) NPE on "Open Project ..." with CDE/Motif Look and Feel
[ https://issues.apache.org/jira/browse/NETBEANS-5722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benjamin Asbach updated NETBEANS-5722: -- Fix Version/s: 12.6 > NPE on "Open Project ..." with CDE/Motif Look and Feel > -- > > Key: NETBEANS-5722 > URL: https://issues.apache.org/jira/browse/NETBEANS-5722 > Project: NetBeans > Issue Type: Bug > Components: ide - UI >Affects Versions: 12.4, 12.5 >Reporter: Mario Bruckschwaiger >Assignee: Benjamin Asbach >Priority: Major > Labels: pull-request-available > Fix For: 12.6 > > Attachments: IDE-Log.txt, UI-Log.txt > > Time Spent: 0.5h > Remaining Estimate: 0h > > When selecting "Open Project ..." in the Projects-view with the CDE/Motif > Look and Feel, no dialog opens but the exception happens. No exception on > "New Project ..." or "New File ...", or when using a different Look and Feel. -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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: NETBEANS-5722: Added `com.sun.java.swing.plaf.motif` to exported modules
This is an automated email from the ASF dual-hosted git repository. matthiasblaesing 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 8684f68 NETBEANS-5722: Added `com.sun.java.swing.plaf.motif` to exported modules new 843223d Merge pull request #3194 from asbachb/NETBEANS-5722 8684f68 is described below commit 8684f6835fc432326a21568ca4fb3a45a1bd81ae Author: Benjamin Asbach AuthorDate: Sun Sep 26 12:55:43 2021 -0600 NETBEANS-5722: Added `com.sun.java.swing.plaf.motif` to exported modules The module is not exported by OpenJDK. Without the manual export NetBeans is unable to invoke `MotifFileChooserUI.createUI(JComponent)` and falls back to `MetalFileChooser` which is also unable to create as the Look and Feel for Metal was not initialized. --- nb/ide.launcher/netbeans.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nb/ide.launcher/netbeans.conf b/nb/ide.launcher/netbeans.conf index c12595e..d1686c3 100644 --- a/nb/ide.launcher/netbeans.conf +++ b/nb/ide.launcher/netbeans.conf @@ -63,7 +63,7 @@ netbeans_default_cachedir="${DEFAULT_CACHEDIR_ROOT}/@@metabuild.RawVersion@@" # (see: https://issues.apache.org/jira/browse/NETBEANS-1344) # -netbeans_default_options="-J-XX:+UseStringDeduplication -J-Xss2m @@metabuild.logcli@@ -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true -J-Dplugin.manager.check.updates=false -J-Dnetbeans.extbrowser.manual_chrome_plugin_install=yes -J--add-opens=java.base/java.net=ALL-UNNAMED -J--add-opens=java.base/java.lang.ref=ALL-UNNAMED -J--add-opens=java.base/java.lang=ALL-UNNAMED [...] +netbeans_default_options="-J-XX:+UseStringDeduplication -J-Xss2m @@metabuild.logcli@@ -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true -J-Dplugin.manager.check.updates=false -J-Dnetbeans.extbrowser.manual_chrome_plugin_install=yes -J--add-opens=java.base/java.net=ALL-UNNAMED -J--add-opens=java.base/java.lang.ref=ALL-UNNAMED -J--add-opens=java.base/java.lang=ALL-UNNAMED [...] # Default location of JDK: # (set by installer or commented out if launcher should decide) - 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-6038) GIT not works on Apple Silicon (walk around: not check "save password")
[ https://issues.apache.org/jira/browse/NETBEANS-6038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17420903#comment-17420903 ] Pier Luigi commented on NETBEANS-6038: -- I've just verified the same bug in NB 12.5 > GIT not works on Apple Silicon (walk around: not check "save password") > --- > > Key: NETBEANS-6038 > URL: https://issues.apache.org/jira/browse/NETBEANS-6038 > Project: NetBeans > Issue Type: Bug >Affects Versions: 12.4 > Environment: *Product Version:* Apache NetBeans IDE 12.4 > *Java:* 11.0.11; OpenJDK 64-Bit Server VM 11.0.11+9-LTS > *Runtime:* OpenJDK Runtime Environment 11.0.11+9-LTS > *System:* Mac OS X version 11.6 running on aarch64; UTF-8; it_IT (nb) > *User directory:* /Users/picov/Library/Application Support/NetBeans/12.4 > *Cache directory:* /Users/picov/Library/Caches/NetBeans/12.4 > >Reporter: Pier Luigi >Priority: Major > Labels: applesilicon > Attachments: Schermata 2021-09-21 alle 15.34.09.png, Schermata > 2021-09-21 alle 15.36.16.png > > > I'working one the same project on an Intel Mac and on Apple Silicon Mac. > The project synch using a remote GIT repository. > On Apple Silicon, when I pull or push I got this error exception: > "Could not initialise class org.netbeans.modules.keyring.mac.SecurityLibrary" > The only way to make git works is to NOT check "save password" into the > repository dialog (in other words, the password should be written when asked > every time the app is reopened). > The problem occurs with latest version of NB from 12.2 to 12.4 with Azul Java > 1.8 or 11 JRE. > > -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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-6067) git over ssh: "Incorrect credentials for repository"
[ https://issues.apache.org/jira/browse/NETBEANS-6067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ronald Feicht updated NETBEANS-6067: Environment: Debian 11 Bullseye NetBeans 12.5 java version "1.8.0_172" Java(TM) SE Runtime Environment (build 1.8.0_172-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode) git version 2.30.2 ssh 1:8.4p1-5 was: Debian 11 Bullseye NetBeans 12.5 java version "1.8.0_172" Java(TM) SE Runtime Environment (build 1.8.0_172-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode) > git over ssh: "Incorrect credentials for repository" > > > Key: NETBEANS-6067 > URL: https://issues.apache.org/jira/browse/NETBEANS-6067 > Project: NetBeans > Issue Type: Bug > Components: versioncontrol - Git >Affects Versions: 12.5 > Environment: Debian 11 Bullseye > NetBeans 12.5 > java version "1.8.0_172" > Java(TM) SE Runtime Environment (build 1.8.0_172-b11) > Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode) > git version 2.30.2 > ssh 1:8.4p1-5 >Reporter: Ronald Feicht >Priority: Major > > When I try to "git fetch" from our git server I receive the following error: > "Incorrect credentials for repository at > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary" even though the > user name and password are correct. > When I uncheck "Save Password" the git fetch completes without error. > When I use Netbeans 12.4 the git fetch also works with and without "Save > Password". > tail ~/.netbeans/12.5/var/log/messages.log : > INFO [org.netbeans.modules.git.ui.repository.remote.SelectUriStep]: Auth > failed when accessing > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary > com.jcraft.jsch.JSchException: Auth fail > at com.jcraft.jsch.Session.connect(Session.java:519) > at > org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:112) > Caused: org.eclipse.jgit.errors.TransportException: > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary: Auth fail > at > org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:158) > at > org.netbeans.libs.git.jgit.JGitSshSessionFactory.getSession(JGitSshSessionFactory.java:100) > at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:107) > at > org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.(TransportGitSsh.java:247) > at > org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:137) > at > org.netbeans.libs.git.jgit.commands.ListRemoteObjectsCommand.runTransportCommand(ListRemoteObjectsCommand.java:51) > Caused: org.netbeans.libs.git.GitException$AuthorizationException: > ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary: Auth fail > at > org.netbeans.libs.git.jgit.commands.TransportCommand.handleException(TransportCommand.java:235) > at > org.netbeans.libs.git.jgit.commands.ListRemoteObjectsCommand.runTransportCommand(ListRemoteObjectsCommand.java:64) > at > org.netbeans.libs.git.jgit.commands.TransportCommand.run(TransportCommand.java:168) > at org.netbeans.libs.git.jgit.commands.GitCommand$1.run(GitCommand.java:57) > at org.netbeans.libs.git.jgit.commands.GitCommand$1.run(GitCommand.java:54) > at java.security.AccessController.doPrivileged(Native Method) > at org.netbeans.libs.git.jgit.commands.GitCommand.execute(GitCommand.java:54) > at org.netbeans.libs.git.GitClient.listRemoteBranches(GitClient.java:893) > at org.netbeans.modules.git.client.GitClient$36.call(GitClient.java:582) > at org.netbeans.modules.git.client.GitClient$36.call(GitClient.java:578) > at > org.openide.util.NetworkSettings.suppressAuthenticationDialog(NetworkSettings.java:138) > at > org.netbeans.modules.git.client.GitClient$CommandInvoker$1$1.call(GitClient.java:931) > at > org.netbeans.modules.git.client.GitClient$CommandInvoker$1$1.call(GitClient.java:937) > at > org.netbeans.modules.git.client.GitClient$CommandInvoker$1.call(GitClient.java:956) > at > org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethodIntern(GitClient.java:968) > at > org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethod(GitClient.java:897) > at > org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethod(GitClient.java:875) > at > org.netbeans.modules.git.client.GitClient$CommandInvoker.access$400(GitClient.java:869) > at > org.netbeans.modules.git.client.GitClient.listRemoteBranches(GitClient.java:578) > [catch] at > org.netbeans.modules.git.ui.repository.remote.SelectUriStep$2.perform(SelectUriStep.java:240) > at > org.netbeans.modules.git.client.GitProgressSupport.performIntern(GitProgressSupport.java:92) > at > org.netbeans.modules.git.client.GitProgressSupport.run(GitProgressSupport.j
[jira] [Created] (NETBEANS-6067) git over ssh: "Incorrect credentials for repository"
Ronald Feicht created NETBEANS-6067: --- Summary: git over ssh: "Incorrect credentials for repository" Key: NETBEANS-6067 URL: https://issues.apache.org/jira/browse/NETBEANS-6067 Project: NetBeans Issue Type: Bug Components: versioncontrol - Git Affects Versions: 12.5 Environment: Debian 11 Bullseye NetBeans 12.5 java version "1.8.0_172" Java(TM) SE Runtime Environment (build 1.8.0_172-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode) Reporter: Ronald Feicht When I try to "git fetch" from our git server I receive the following error: "Incorrect credentials for repository at ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary" even though the user name and password are correct. When I uncheck "Save Password" the git fetch completes without error. When I use Netbeans 12.4 the git fetch also works with and without "Save Password". tail ~/.netbeans/12.5/var/log/messages.log : INFO [org.netbeans.modules.git.ui.repository.remote.SelectUriStep]: Auth failed when accessing ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary com.jcraft.jsch.JSchException: Auth fail at com.jcraft.jsch.Session.connect(Session.java:519) at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:112) Caused: org.eclipse.jgit.errors.TransportException: ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary: Auth fail at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:158) at org.netbeans.libs.git.jgit.JGitSshSessionFactory.getSession(JGitSshSessionFactory.java:100) at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:107) at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.(TransportGitSsh.java:247) at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:137) at org.netbeans.libs.git.jgit.commands.ListRemoteObjectsCommand.runTransportCommand(ListRemoteObjectsCommand.java:51) Caused: org.netbeans.libs.git.GitException$AuthorizationException: ssh://git@srv06.scsynergy.local/var/scs-git/Java/Elementary: Auth fail at org.netbeans.libs.git.jgit.commands.TransportCommand.handleException(TransportCommand.java:235) at org.netbeans.libs.git.jgit.commands.ListRemoteObjectsCommand.runTransportCommand(ListRemoteObjectsCommand.java:64) at org.netbeans.libs.git.jgit.commands.TransportCommand.run(TransportCommand.java:168) at org.netbeans.libs.git.jgit.commands.GitCommand$1.run(GitCommand.java:57) at org.netbeans.libs.git.jgit.commands.GitCommand$1.run(GitCommand.java:54) at java.security.AccessController.doPrivileged(Native Method) at org.netbeans.libs.git.jgit.commands.GitCommand.execute(GitCommand.java:54) at org.netbeans.libs.git.GitClient.listRemoteBranches(GitClient.java:893) at org.netbeans.modules.git.client.GitClient$36.call(GitClient.java:582) at org.netbeans.modules.git.client.GitClient$36.call(GitClient.java:578) at org.openide.util.NetworkSettings.suppressAuthenticationDialog(NetworkSettings.java:138) at org.netbeans.modules.git.client.GitClient$CommandInvoker$1$1.call(GitClient.java:931) at org.netbeans.modules.git.client.GitClient$CommandInvoker$1$1.call(GitClient.java:937) at org.netbeans.modules.git.client.GitClient$CommandInvoker$1.call(GitClient.java:956) at org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethodIntern(GitClient.java:968) at org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethod(GitClient.java:897) at org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethod(GitClient.java:875) at org.netbeans.modules.git.client.GitClient$CommandInvoker.access$400(GitClient.java:869) at org.netbeans.modules.git.client.GitClient.listRemoteBranches(GitClient.java:578) [catch] at org.netbeans.modules.git.ui.repository.remote.SelectUriStep$2.perform(SelectUriStep.java:240) at org.netbeans.modules.git.client.GitProgressSupport.performIntern(GitProgressSupport.java:92) at org.netbeans.modules.git.client.GitProgressSupport.run(GitProgressSupport.java:85) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033) WARNING [org.netbeans.modules.progress.spi.InternalHandle]: Cannot call progress on a task that was never started at org.netbeans.modules.git.client.GitProgressSupport.setProgressMessage(GitProgressSupport.java:258) WARNING [org.netbeans.TopSecurityManager]: use of system property netbeans.user has been obsoleted in favor of InstalledFileLocator/Places at org.netbeans.modules.websvc.saas.model.SaasServicesModel.(SaasServicesModel.java:46) INFO [org.netbeans.core.netigso.Netigso]: bu
[netbeans] branch master updated: LSP: Test results displayed using the new TestExplorer API. (#3186)
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 253b52d LSP: Test results displayed using the new TestExplorer API. (#3186) 253b52d is described below commit 253b52dd2cebac79110b153fe0e90db72328649b Author: Dusan Balek AuthorDate: Mon Sep 27 10:33:02 2021 +0200 LSP: Test results displayed using the new TestExplorer API. (#3186) --- .../gsf/testrunner/ui/TestMethodFinderImpl.java| 4 +- .../gsf/testrunner/ui/api/TestMethodFinder.java| 6 +- .../server/debugging/launch/NbLaunchDelegate.java | 2 +- .../lsp/server/progress/TestProgressHandler.java | 6 +- .../java/lsp/server/protocol/TestSuiteInfo.java| 152 - .../lsp/server/protocol/WorkspaceServiceImpl.java | 18 +- .../server/progress/TestProgressHandlerTest.java | 13 +- java/java.lsp.server/vscode/package-lock.json | 27 +- java/java.lsp.server/vscode/package.json | 18 +- java/java.lsp.server/vscode/src/extension.ts | 36 +- java/java.lsp.server/vscode/src/protocol.ts| 54 ++- java/java.lsp.server/vscode/src/test/runTest.ts| 17 +- java/java.lsp.server/vscode/src/testAdapter.ts | 373 + 13 files changed, 308 insertions(+), 418 deletions(-) diff --git a/ide/gsf.testrunner.ui/src/org/netbeans/modules/gsf/testrunner/ui/TestMethodFinderImpl.java b/ide/gsf.testrunner.ui/src/org/netbeans/modules/gsf/testrunner/ui/TestMethodFinderImpl.java index 6588969..1198c8d 100644 --- a/ide/gsf.testrunner.ui/src/org/netbeans/modules/gsf/testrunner/ui/TestMethodFinderImpl.java +++ b/ide/gsf.testrunner.ui/src/org/netbeans/modules/gsf/testrunner/ui/TestMethodFinderImpl.java @@ -107,7 +107,9 @@ public final class TestMethodFinderImpl extends EmbeddingIndexer { pw.print("method: "); //NOI18N pw.print(method.method().getMethodName()); pw.print(':'); //NOI18N -pw.println(method.start().getOffset()); +pw.print(method.start().getOffset()); +pw.print('-'); //NOI18N +pw.println(method.end().getOffset()); } } catch (IOException ex) { Exceptions.printStackTrace(ex); diff --git a/ide/gsf.testrunner.ui/src/org/netbeans/modules/gsf/testrunner/ui/api/TestMethodFinder.java b/ide/gsf.testrunner.ui/src/org/netbeans/modules/gsf/testrunner/ui/api/TestMethodFinder.java index b1dc558..22ae987 100644 --- a/ide/gsf.testrunner.ui/src/org/netbeans/modules/gsf/testrunner/ui/api/TestMethodFinder.java +++ b/ide/gsf.testrunner.ui/src/org/netbeans/modules/gsf/testrunner/ui/api/TestMethodFinder.java @@ -102,8 +102,10 @@ public final class TestMethodFinder { String info = line.substring(8); int idx = info.lastIndexOf(':'); String name = (idx < 0 ? info : info.substring(0, idx)).trim(); -Position methodPosition = idx < 0 ? null : () -> Integer.parseInt(info.substring(idx + 1)); -testMethods.add(new TestMethodController.TestMethod(className, classPosition, new SingleMethod(fo, name), methodPosition, null, null)); +String[] range = idx < 0 ? new String[0] : info.substring(idx + 1).split("-"); +Position methodStart = range.length > 0 ? () -> Integer.parseInt(range[0]) : null; +Position methodEnd = range.length > 1 ? () -> Integer.parseInt(range[1]) : null; +testMethods.add(new TestMethodController.TestMethod(className, classPosition, new SingleMethod(fo, name), methodStart, null, methodEnd)); } } } catch (IOException ex) { diff --git a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/debugging/launch/NbLaunchDelegate.java b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/debugging/launch/NbLaunchDelegate.java index f05b675..ccfcece 100644 --- a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/debugging/launch/NbLaunchDelegate.java +++ b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/debugging/launch/NbLaunchDelegate.java @@ -508,7 +508,7 @@ public abstract class NbLaunchDelegate { if (provider == null) { command = debug ? mainSource ? ActionProvider.COMMAND_DEBUG - : ActionProvider.COMMAND_DEBUG // DEBUG_TEST is missing? + : ActionProvider.COMMAND_TEST //TODO: COMMAND_DEBUG_TEST is missing? : mainSource ? ActionProvider.COMMAND_RUN : ActionProvider.COMMAND_TEST; provider = findActionProvider(command, actionProviders, testLookup); di
[jira] [Created] (NETBEANS-6066) NullPointerException
Alexey created NETBEANS-6066: Summary: NullPointerException Key: NETBEANS-6066 URL: https://issues.apache.org/jira/browse/NETBEANS-6066 Project: NetBeans Issue Type: Bug Components: ide - Code Reporter: Alexey 2021-09-27T10:46:19 1632728779879 844 1000 40 Error in RequestProcessor org.netbeans.modules.navigator.NavigatorController$1 java.lang.NullPointerException org.netbeans.modules.cpplite.editor.lsp.LanguageServerImpl startServer 142 ${netBeansDir}modules/org-netbeans-modules-cpplite-editor.jar org.netbeans.modules.lsp.client.LSPBindings buildBindings 258 ${netBeansDir}modules/org-netbeans-modules-lsp-client.jar org.netbeans.modules.lsp.client.LSPBindings getBindingsImpl 194 ${netBeansDir}modules/org-netbeans-modules-lsp-client.jar org.netbeans.modules.lsp.client.LSPBindings getBindings 156 ${netBeansDir}modules/org-netbeans-modules-lsp-client.jar org.netbeans.modules.lsp.client.bindings.NavigatorPanelImpl$DynamicRegistrationImpl panelsFor 265 ${netBeansDir}modules/org-netbeans-modules-lsp-client.jar org.netbeans.modules.navigator.ProviderRegistry lambda$null$0 100 ${netBeansDir}modules/org-netbeans-spi-navigator.jar java.util.stream.ReferencePipeline$7$1 accept 271 jrt:/java.base/java/util/stream/ReferencePipeline$7$1.class java.util.Iterator forEachRemaining 133 jrt:/java.base/java/util/Iterator.class java.util.Spliterators$IteratorSpliterator forEachRemaining 1801 jrt:/java.base/java/util/Spliterators$IteratorSpliterator.class java.util.stream.AbstractPipeline copyInto 484 jrt:/java.base/java/util/stream/AbstractPipeline.class java.util.stream.AbstractPipeline wrapAndCopyInto 474 jrt:/java.base/java/util/stream/AbstractPipeline.class java.util.stream.ReduceOps$ReduceOp evaluateSequential 913 jrt:/java.base/java/util/stream/ReduceOps$ReduceOp.class java.util.stream.AbstractPipeline evaluate 234 jrt:/java.base/java/util/stream/AbstractPipeline.class java.util.stream.ReferencePipeline collect 578 jrt:/java.base/java/util/stream/ReferencePipeline.class org.netbeans.modules.navigator.ProviderRegistry lambda$getProviders$1 100 ${netBeansDir}modules/org-netbeans-spi-navigator.jar java.util.Map computeIfAbsent 1003 jrt:/java.base/java/util/Map.class org.netbeans.modules.navigator.ProviderRegistry getProviders 99 ${netBeansDir}modules/org-netbeans-spi-navigator.jar org.netbeans.modules.navigator.NavigatorController obtainProviders 593 ${netBeansDir}modules/org-netbeans-spi-navigator.jar org.netbeans.modules.navigator.NavigatorController access$200 76 ${netBeansDir}modules/org-netbeans-spi-navigator.jar org.netbeans.modules.navigator.NavigatorController$1 run 391 ${netBeansDir}modules/org-netbeans-spi-navigator.jar org.openide.util.RequestProcessor$Task run 1418 ${netbeans.home}lib/org-openide-util.jar org.netbeans.modules.openide.util.GlobalLookup execute 45 ${netbeans.home}lib/org-openide-util-lookup.jar org.openide.util.lookup.Lookups executeWith 278 ${netbeans.home}lib/org-openide-util-lookup.jar org.openide.util.RequestProcessor$Processor run 2033 ${netbeans.home}lib/org-openide-util.jar -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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] [Comment Edited] (NETBEANS-5722) NPE on "Open Project ..." with CDE/Motif Look and Feel
[ https://issues.apache.org/jira/browse/NETBEANS-5722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17420517#comment-17420517 ] Mario Bruckschwaiger edited comment on NETBEANS-5722 at 9/27/21, 7:27 AM: -- [~asbachb] you are right, it is JDK related. Works also for me with JDK11. Adding com.sun.java.swing.plaf.motif to exported modules fixes it for me for JDK17. Thanks. was (Author: mario.bruckschwaiger): [~asbachb] you are right, it is JDK related. Works also for me with JDK11. Adding com.sun.java.swing.plaf.motif to exported modules should fix it. Thanks. > NPE on "Open Project ..." with CDE/Motif Look and Feel > -- > > Key: NETBEANS-5722 > URL: https://issues.apache.org/jira/browse/NETBEANS-5722 > Project: NetBeans > Issue Type: Bug > Components: ide - UI >Affects Versions: 12.4, 12.5 >Reporter: Mario Bruckschwaiger >Assignee: Benjamin Asbach >Priority: Major > Labels: pull-request-available > Attachments: IDE-Log.txt, UI-Log.txt > > Time Spent: 10m > Remaining Estimate: 0h > > When selecting "Open Project ..." in the Projects-view with the CDE/Motif > Look and Feel, no dialog opens but the exception happens. No exception on > "New Project ..." or "New File ...", or when using a different Look and Feel. -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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-6057) Missing automatic import function of my configuration after update from version 12.4 to version 12.5 (OS Ubuntu)
[ https://issues.apache.org/jira/browse/NETBEANS-6057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17420518#comment-17420518 ] Thomas Kirsch commented on NETBEANS-6057: - Thank you very much, that worked. > Missing automatic import function of my configuration after update from > version 12.4 to version 12.5 (OS Ubuntu) > > > Key: NETBEANS-6057 > URL: https://issues.apache.org/jira/browse/NETBEANS-6057 > Project: NetBeans > Issue Type: Bug > Components: ide - Welcome >Affects Versions: 12.5 >Reporter: Thomas Kirsch >Priority: Major > > After updating from version 12.4 to 12.5 the complete configuration of 12.4 > disappeared. When opening the new version for the first time, the usual > question if all settings should be taken over from the previous version did > not appear. The list of remote connections is empty. All passwords are gone. -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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-5722) NPE on "Open Project ..." with CDE/Motif Look and Feel
[ https://issues.apache.org/jira/browse/NETBEANS-5722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17420517#comment-17420517 ] Mario Bruckschwaiger commented on NETBEANS-5722: [~asbachb] you are right, it is JDK related. Works also for me with JDK11. Adding com.sun.java.swing.plaf.motif to exported modules should fix it. Thanks. > NPE on "Open Project ..." with CDE/Motif Look and Feel > -- > > Key: NETBEANS-5722 > URL: https://issues.apache.org/jira/browse/NETBEANS-5722 > Project: NetBeans > Issue Type: Bug > Components: ide - UI >Affects Versions: 12.4, 12.5 >Reporter: Mario Bruckschwaiger >Assignee: Benjamin Asbach >Priority: Major > Labels: pull-request-available > Attachments: IDE-Log.txt, UI-Log.txt > > Time Spent: 10m > Remaining Estimate: 0h > > When selecting "Open Project ..." in the Projects-view with the CDE/Motif > Look and Feel, no dialog opens but the exception happens. No exception on > "New Project ..." or "New File ...", or when using a different Look and Feel. -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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-6055) Nullpointer while opening a gradle subproject
[ https://issues.apache.org/jira/browse/NETBEANS-6055?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ASF GitHub Bot updated NETBEANS-6055: - Labels: pull-request-available (was: ) > Nullpointer while opening a gradle subproject > - > > Key: NETBEANS-6055 > URL: https://issues.apache.org/jira/browse/NETBEANS-6055 > Project: NetBeans > Issue Type: Bug > Components: projects - Gradle >Affects Versions: 12.3, 12.4, 12.5 > Environment: Windows 10 >Reporter: Karl Bönisch >Assignee: Laszlo Kishalmi >Priority: Major > Labels: pull-request-available > Time Spent: 10m > Remaining Estimate: 0h > > open a gradle subproject: > > 2021-09-24T13:11:32 > 1632481892037 > 897 > 700 > 256 > UI_USER_CONFIGURATION > UI_USER_CONFIGURATION > org.netbeans.modules.uihandler.Bundle > Windows 10, 10.0, amd64 > Java HotSpot(TM) 64-Bit Server VM, 25.121-b13, Java(TM) SE Runtime > Environment, 1.8.0_121-b13 > Apache NetBeans IDE 12.5 > > NullPointerException at > org.netbeans.modules.gradle.api.execute.GradleDistributionManager.distributionFromDir >reproduce> > * > > > INFO [org.netbeans.modules.gradle.loaders.GradleProjectLoaderImpl]: Load > aiming EVALUATED for Unloaded Gradle Project: > GradleFiles[projectDir=C:\javasourcen\NetbeansWS_12.5\trunk\GLSGUIProjects\GL\GL\GLGL031, > rootDir=C:\javasourcen\NetbeansWS_12.5\trunk\GLSGUIProjects\GL\GL\GLGL031] > INFO [org.netbeans.modules.gradle.loaders.GradleProjectLoaderImpl]: Load > aiming FULL for Gradle: GLSGUI[FALLBACK] > WARNING [org.netbeans.modules.gradle.loaders.LegacyProjectLoader] > java.lang.NullPointerException > at > org.netbeans.modules.gradle.api.execute.GradleDistributionManager.distributionFromDir(GradleDistributionManager.java:155) > at > org.netbeans.modules.gradle.execute.GradleDistributionProviderImpl.getGradleDistribution(GradleDistributionProviderImpl.java:114) > at > org.netbeans.modules.gradle.GradleProjectConnection.getConnection(GradleProjectConnection.java:121) > at > org.netbeans.modules.gradle.GradleProjectConnection.action(GradleProjectConnection.java:89) > at > org.netbeans.modules.gradle.loaders.LegacyProjectLoader.createInfoAction(LegacyProjectLoader.java:202) > at > org.netbeans.modules.gradle.loaders.LegacyProjectLoader.retrieveProjectInfo(LegacyProjectLoader.java:250) > at > org.netbeans.modules.gradle.loaders.LegacyProjectLoader.loadGradleProject(LegacyProjectLoader.java:145) > at > org.netbeans.modules.gradle.loaders.LegacyProjectLoader.access$100(LegacyProjectLoader.java:68) > [catch] at > org.netbeans.modules.gradle.loaders.LegacyProjectLoader$ProjectLoaderTask.call(LegacyProjectLoader.java:294) > at > org.netbeans.modules.gradle.loaders.LegacyProjectLoader$ProjectLoaderTask.call(LegacyProjectLoader.java:263) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) > at > org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) > at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278) > at > org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033) -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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-2385) Snap package unable to run
[ https://issues.apache.org/jira/browse/NETBEANS-2385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17420508#comment-17420508 ] Eric VILLARD commented on NETBEANS-2385: Thanks Laszlo, have a nice day. > Snap package unable to run > -- > > Key: NETBEANS-2385 > URL: https://issues.apache.org/jira/browse/NETBEANS-2385 > Project: NetBeans > Issue Type: Bug > Components: platform - Launchers&CLI >Affects Versions: 10.0, 11.0, 12.5 > Environment: Ubuntu 14.04 >Reporter: Bartosz Tomasik >Assignee: Laszlo Kishalmi >Priority: Major > > I'm using Netbeans snap package. However it seems there's some clash on what > netbeans detect as default java and what it tries to use, if I provide > _jdkhome_ as an argument everything works. otherwise I get error: > {quote}{{$ netbeans }} > {{JVMJ9VM007E Command-line option unrecognised: > --add-opens=java.base/java.net=ALL-UNNAMED}} > {{Error: Could not create the Java Virtual Machine.}} > {{Error: A fatal exception has occurred. Program will exit.}} > {quote} > in contradiction all of this works as expected: > netbeans --jdkhome /usr/lib/jvm/java-1.11.0-openjdk-amd64 > netbeans --jdkhome /usr/lib/jvm/java-1.8.0-openjdk-amd64 > netbeans --jdkhome /usr/lib/jvm/ibm-java80-jdk-x86_64 > jdk11 is my default java > {quote}$ update-java-alternatives -l > ibm-java80-jdk-x86_64 80 /usr/lib/jvm/ibm-java80-jdk-x86_64 > ibm-java80-jre-x86_64 80 /usr/lib/jvm/ibm-java80-jre-x86_64 > java-1.11.0-openjdk-amd64 > /usr/lib/jvm/java-1.11.0-openjdk-amd64 > java-1.8.0-openjdk-amd64 1081 > /usr/lib/jvm/java-1.8.0-openjdk-amd64 > java-1.9.0-openjdk-amd64 1091 > /usr/lib/jvm/java-1.9.0-openjdk-amd64 > {quote} -- This message was sent by Atlassian Jira (v8.3.4#803005) - 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