[jira] [Updated] (NETBEANS-5829) Incorrect "Text blocks aren't supported"
[ https://issues.apache.org/jira/browse/NETBEANS-5829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ASF GitHub Bot updated NETBEANS-5829: - Labels: pull-request-available (was: ) > Incorrect "Text blocks aren't supported" > > > Key: NETBEANS-5829 > URL: https://issues.apache.org/jira/browse/NETBEANS-5829 > Project: NetBeans > Issue Type: Bug > Components: java - Source >Reporter: Jaroslav Tulach >Assignee: Jan Lahoda >Priority: Major > Labels: pull-request-available > Attachments: image-2021-07-02-08-47-25-560.png > > Time Spent: 10m > Remaining Estimate: 0h > > Get > [https://github.com/apache/netbeans-html4j/blob/release-1.7.2/json-tck/src/main/java/net/java/html/js/tests/AsyncJavaScriptAction.java#L36], > open it in most recent NetBeans IDE running on JDK8 (with nbjavac@16.0.0.0 > installed) and try to convince the editor to not show errors about text > blocks: > !image-2021-07-02-08-47-25-560.png! > Is there some way to do so? It is very annoying to have the source tree full > of useless errors related to text blocks, when everything compiles and runs > fine. The project's source level is set to 15 and Maven support shall report > that to {{java.source}}. Any help welcomed. -- 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] [Closed] (NETBEANS-4998) Annotation processor completions not displayed in VSCode
[ https://issues.apache.org/jira/browse/NETBEANS-4998?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jaroslav Tulach closed NETBEANS-4998. - Resolution: Fixed I guess this has already been fixed for 12.6 or earlier. > Annotation processor completions not displayed in VSCode > > > Key: NETBEANS-4998 > URL: https://issues.apache.org/jira/browse/NETBEANS-4998 > Project: NetBeans > Issue Type: Bug > Components: vscode >Affects Versions: 12.2 >Reporter: Jaroslav Tulach >Assignee: Jan Lahoda >Priority: Minor > > The VSCode doesn't display hints from annotation processors. To reproduce > clone: > {code:java} > https://github.com/jtulach/netbeans-html4j {code} > and checkout revision > {code:java} > eb1841800ae16782b781a60bda4a23593502ae60 {code} > after building the gradle (please use JDK11) - > {code:java} > $ JAVA_HOME=/jdk-11 ./gradlew assemble > {code} > you can open {{TicTacToe1.java}} and go to line 37, after second {{{}} there > should be a CC: > {code:java} > {|shows list of parameters}{code} > This seems to work in NetBeans 12.2, but not in VSCode. -- 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-html4j] branch master updated: Using bits from NetBeans 13 release
This is an automated email from the ASF dual-hosted git repository. jtulach pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans-html4j.git The following commit(s) were added to refs/heads/master by this push: new bab9701 Using bits from NetBeans 13 release bab9701 is described below commit bab9701a0b3639c1ce94253b9d007787b02baa78 Author: Jaroslav Tulach AuthorDate: Sun Mar 6 06:31:37 2022 +0100 Using bits from NetBeans 13 release --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 2b9b0ae..2cc56af 100644 --- a/pom.xml +++ b/pom.xml @@ -33,7 +33,7 @@ UTF-8 - RELEASE125 + RELEASE130 21.3.0 2.3.8 COPYING - 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
svn commit: r52882 - in /dev/netbeans/netbeans-installers/13: Apache-NetBeans-13-bin-macosx.dmg Apache-NetBeans-13-bin-macosx.dmg.asc Apache-NetBeans-13-bin-macosx.dmg.sha512
Author: johnmcdonnell Date: Sat Mar 5 22:45:07 2022 New Revision: 52882 Log: Add Apache NetBeans 13 macOS Installer again with no notarization errors Modified: dev/netbeans/netbeans-installers/13/Apache-NetBeans-13-bin-macosx.dmg dev/netbeans/netbeans-installers/13/Apache-NetBeans-13-bin-macosx.dmg.asc dev/netbeans/netbeans-installers/13/Apache-NetBeans-13-bin-macosx.dmg.sha512 Modified: dev/netbeans/netbeans-installers/13/Apache-NetBeans-13-bin-macosx.dmg == Binary files - no diff available. Modified: dev/netbeans/netbeans-installers/13/Apache-NetBeans-13-bin-macosx.dmg.asc == --- dev/netbeans/netbeans-installers/13/Apache-NetBeans-13-bin-macosx.dmg.asc (original) +++ dev/netbeans/netbeans-installers/13/Apache-NetBeans-13-bin-macosx.dmg.asc Sat Mar 5 22:45:07 2022 @@ -1,16 +1,16 @@ -BEGIN PGP SIGNATURE- -iQIzBAABCAAdFiEE3ouPsrIjyE9FFC3JPtR3dQwJ0Y0FAmIdH94ACgkQPtR3dQwJ -0Y3aGg/+K50FVqv+eFgJKAQ/I9GSQ84aQZIYIzRqMD0/oqzq7epOJVZgIfO22CXy -hr8rHRAhNlAisBX4k/czqcw31VCyj9nwdjGJsLLpvZw+EWEYRWLs90Oi4ZJOixHm -oFCTfDADSlEuO4rUY8P7LKAuJNn4ubTf56jmazVD/72d6nFxtJ7UgLZgKsMhG3A1 -Biaur/68433I+UEx1Xd7IL/jjgvKie1/01k9zZcQ8vo8uJ4VpaTqlS3Mg6O6kCib -v0JU6xsIzeer7J6qyqo1lCfZTlKA26pzlC68vK6fILZeQ8NMzDsBSoh7hlysYGd1 -Xnbuy0UC4cre6CBGnFest8goq6W9NULsUighczLO/JpH13J1kGx1+y84Hm5uc9Gv -9wm84U2RpFUH2FNk9aU44JNGsRaoH6PsKsRGqncFQLW7dIHcz+V6w7Onj6vqITat -lqsbDcbCb0CetXra9mWjLJm3S8RaBkY18/zdIO0nXBqehqEtfHC5o++tKrr2CxDR -NkLMQxRTI67llrGsnxHpXrQVwEraX2PriNBi4SVRQ+y0tES4Zow9+6PPID6aaytv -VsN/2WTNot7FAbxNghlUWK/zBj81/qsyN8EY6ge99NJ6Sc5+YTOrsHWLhJ3Xhcbd -ncr46ee84NNwFHiIimLjrH9vKk/3gEJs0NaoFRvJIWdTrC1H3n8= -=Ry/Q +iQIzBAABCAAdFiEE3ouPsrIjyE9FFC3JPtR3dQwJ0Y0FAmIj5GoACgkQPtR3dQwJ +0Y2BDA//QKkI6NbzPkxuF5bCeZRF5fDVhkZM+VBDJowNOM5WcevjS3uTi3IFX+Ve +qFrUyJMuD37qUEUNt9/TkFG9jCw1LBECsWmzlrkM5+V5FDXPW5MxXdq/8qk9CT3W +e0rJe9t5a19CZyQnk4tGlIkl9KfNIG90AoSZ+EL/gi0jKCC+lT7bVrD0PUy6r+G4 +BfXRhKnFC3+o7yOBo0n+KxK6yGauYMNyuwUKAxR73aiK1vGCvlOBhMQD5xNhOIzO +7F7uptS/MASvnbvdI/0+DYJ3fo9rGZ//HQ57FU4+6/JEIanHcZQTBNRjJT+o3d8R +xMoAZp+E5ypSX8WeyjHawEeVpVScF6mxf8NKTNIDvTsyNSvPBXxHMdvI3d+1Ifl/ +B5Ue/UFt9jYAZPbOEWFsOrp3hVFoHyULiyjORhvrCXSlrt1G8BL0ZpQrsZ6b/Bt0 +Sn40G+oEiE3a7aSGXdMgI7KvyqA6dA2kIz/UQNVBJcav3lGFsCpvzrt7/mScLhHY +Yg1EIZWkdZzBXq2uk+ZxodQBLeB5DUxUK2epv0EbAUaOu2ad2IY/E4RMVn3U9f63 +Yjv80X1Bu3Y+JAXY9i/CQLEqOymJpCXZAABaS7PJU1IrUZ124hgPK9dRWJhybzjw +TQfVjjv38sBcc1i8TwEIX1gAZXMJiVnZwPVloWMarxTO+1jky6M= +=uHkx -END PGP SIGNATURE- Modified: dev/netbeans/netbeans-installers/13/Apache-NetBeans-13-bin-macosx.dmg.sha512 == --- dev/netbeans/netbeans-installers/13/Apache-NetBeans-13-bin-macosx.dmg.sha512 (original) +++ dev/netbeans/netbeans-installers/13/Apache-NetBeans-13-bin-macosx.dmg.sha512 Sat Mar 5 22:45:07 2022 @@ -1 +1 @@ -487733c837a6c92300ec39cc524d107bc7b5e32276c522d337a127cddadfbcb9078917e00b4a55c063d64f9f74ae6abb66ee54b80f29e1322114b3203f9a1e6d Apache-NetBeans-13-bin-macosx.dmg +9df369896c25aea2102357f2b6e0e3a875319435c396f332e2ff3f4d9a620f4425a5d9b7d68c5919d376a96647be001cae31aea9316b5711f06a51b8a44ee9dc Apache-NetBeans-13-bin-macosx.dmg - 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-6406) same bg col for files from same project is broken
[ https://issues.apache.org/jira/browse/NETBEANS-6406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17501769#comment-17501769 ] dev commented on NETBEANS-6406: --- I just installed new NB 13.0, and issue is still exists. But found out some new stuff. Here is more info, hope to be found handy. I have 4 projects all (name)started with "myproject_", and I just realized, seems NB finds all of them as one project, so they are not given vary tab bg cols(all files by these 4 projects are given one tab bg col). Surprisingly, there are 7 other project are name-started by "sys_" but the bug are not living with them. All projects name-started by "myproject_" are located in one parent-folder (like "parent/myproject_core" , and "parent/myproject_web", ...). But about "sys_" projects, not all of them located in one parent. I'm on Win7_x64 JDK 17.0.1 (hotspot) Thank you. > same bg col for files from same project is broken > - > > Key: NETBEANS-6406 > URL: https://issues.apache.org/jira/browse/NETBEANS-6406 > Project: NetBeans > Issue Type: Bug > Components: cnd - Editor > Environment: Win 7 X64 - JDK 17.0.1 Hotspot. >Reporter: dev >Priority: Minor > > I have two projects, "myproject_web", and "myproject_core". The option "same > background color for files from the same project" doesn't work (99% of times) > for me. I'm using 12.6, but had the same issue with the previous 12.0 as > well(cannot remember about 11, etc...) > The issue is mostly belong to these two project, where other project will > have unique bg color as expected. I mostly work with these two projects. > Sometimes it works I've found. During the startup, as soon as the UI is up, > and IDE is checking for projects(as background work), if I open up the > "projects" window, then it will colorize one project's file as expected, but > by default all will be gray. > I usually keep the files open of these projects before closing the IDE, so > when IDE is up, there are over 20 files open usually from those projects, > multi-tabbed. > Thank you. -- 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-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 ] ASF GitHub Bot updated NETBEANS-6067: - Labels: pull-request-available (was: ) > 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, 12.6 > 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 >Assignee: Matthias Bläsing >Priority: Major > Labels: pull-request-available > Time Spent: 10m > Remaining Estimate: 0h > > 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" (edit: and provide the correct 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
[jira] [Assigned] (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 ] Matthias Bläsing reassigned NETBEANS-6067: -- Assignee: Matthias Bläsing > 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, 12.6 > 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 >Assignee: Matthias Bläsing >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" (edit: and provide the correct 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)
[netbeans] branch master updated: gh issue template update post NB 13 release.
This is an automated email from the ASF dual-hosted git repository. mbien 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 f8e4d6d gh issue template update post NB 13 release. new 162aec2 Merge pull request #3703 from mbien/issue-template-nb13-update f8e4d6d is described below commit f8e4d6d5d939559add9192f92fe8546221a68a9e Author: Michael Bien AuthorDate: Sat Mar 5 10:55:38 2022 +0100 gh issue template update post NB 13 release. --- .github/ISSUE_TEMPLATE/netbeans_bug_report.yml | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/netbeans_bug_report.yml b/.github/ISSUE_TEMPLATE/netbeans_bug_report.yml index d616278..4ce1f59 100644 --- a/.github/ISSUE_TEMPLATE/netbeans_bug_report.yml +++ b/.github/ISSUE_TEMPLATE/netbeans_bug_report.yml @@ -27,8 +27,8 @@ body: Latest releases are always available from https://netbeans.apache.org/download/ multiple: false options: -- "Apache NetBeans 12.6" -- "Apache NetBeans 13 release candidate" +- "Apache NetBeans 13" +#- "Apache NetBeans 14 release candidate" - "Apache NetBeans latest daily build" validations: required: true @@ -64,6 +64,7 @@ body: multiple: false options: - "No" +- "Apache NetBeans 13" - "Apache NetBeans 12.6" - "Apache NetBeans 12.5" - "Apache NetBeans 12.4" @@ -123,6 +124,8 @@ body: options: - "Yes" - "No" +validations: +required: true - type: dropdown attributes: label: Code of Conduct - 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: ide/lsp.client + MultiMimeLanguageServerProvider (#3655)
This is an automated email from the ASF dual-hosted git repository. vieiro 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 d781b1c ide/lsp.client + MultiMimeLanguageServerProvider (#3655) d781b1c is described below commit d781b1ca719f0a868777005aca3a6e00edbf7d58 Author: Antonio Vieiro AuthorDate: Sat Mar 5 12:00:07 2022 +0100 ide/lsp.client + MultiMimeLanguageServerProvider (#3655) * ide/lsp.client + MultiMimeLanguageServerProvider * Copy MultiMimeLanguageServerProvider.getMimeTypes * Contemplate already restarted servers --- ide/lsp.client/apichanges.xml | 12 ide/lsp.client/nbproject/project.properties| 2 +- .../netbeans/modules/lsp/client/LSPBindings.java | 20 .../spi/MultiMimeLanguageServerProvider.java | 36 ++ 4 files changed, 69 insertions(+), 1 deletion(-) diff --git a/ide/lsp.client/apichanges.xml b/ide/lsp.client/apichanges.xml index 3128885..dc04136 100644 --- a/ide/lsp.client/apichanges.xml +++ b/ide/lsp.client/apichanges.xml @@ -25,6 +25,18 @@ LSP Client API + + +Adding MultiMimeLanguageServerProvider + + + + + + org.netbeans.modules.lsp.client.spi.MultiMimeLanguageServerProvider + + + Adding ServerRestarter diff --git a/ide/lsp.client/nbproject/project.properties b/ide/lsp.client/nbproject/project.properties index 2b6502e..1c729a6 100644 --- a/ide/lsp.client/nbproject/project.properties +++ b/ide/lsp.client/nbproject/project.properties @@ -24,4 +24,4 @@ release.external/org.eclipse.lsp4j.jsonrpc-0.12.0.jar=modules/ext/org.eclipse.ls release.external/org.eclipse.xtend.lib-2.19.0.jar=modules/ext/org.eclipse.xtend.lib-2.19.0.jar release.external/org.eclipse.xtend.lib.macro-2.19.0.jar=modules/ext/org.eclipse.xtend.lib.macro-2.19.0.jar release.external/org.eclipse.xtext.xbase.lib-2.19.0.jar=modules/ext/org.eclipse.xtext.xbase.lib-2.19.0.jar -spec.version.base=1.15.0 +spec.version.base=1.16.0 diff --git a/ide/lsp.client/src/org/netbeans/modules/lsp/client/LSPBindings.java b/ide/lsp.client/src/org/netbeans/modules/lsp/client/LSPBindings.java index b2e7e06..88fac4c 100644 --- a/ide/lsp.client/src/org/netbeans/modules/lsp/client/LSPBindings.java +++ b/ide/lsp.client/src/org/netbeans/modules/lsp/client/LSPBindings.java @@ -82,6 +82,7 @@ import org.netbeans.modules.lsp.client.options.MimeTypeInfo; import org.netbeans.modules.lsp.client.spi.ServerRestarter; import org.netbeans.modules.lsp.client.spi.LanguageServerProvider; import org.netbeans.modules.lsp.client.spi.LanguageServerProvider.LanguageServerDescription; +import org.netbeans.modules.lsp.client.spi.MultiMimeLanguageServerProvider; import org.openide.awt.NotificationDisplayer; import org.openide.filesystems.FileObject; import org.openide.filesystems.FileUtil; @@ -209,6 +210,12 @@ public class LSPBindings { if (bindings != null) { description.bindings = new WeakReference<>(bindings); description.lastStartTimeStamp = System.currentTimeMillis(); +// If ServerDescription acknowledges another mimetypes, add these +// to project2MimeType2Server too. +Map mimeType2Server = project2MimeType2Server.get(uri); +for(String mt: description.mimeTypes) { +mimeType2Server.put(mt, description); +} WORKER.post(() -> cs.fireChange()); } } @@ -247,6 +254,12 @@ public class LSPBindings { ServerRestarter restarter = () -> { synchronized (LSPBindings.class) { ServerDescription description = project2MimeType2Server.getOrDefault(baseUri, Collections.emptyMap()).remove(mt); +// Remove any other mimetypes as well. +if (description != null) { +for(String anotherMT: description.mimeTypes) { +project2MimeType2Server.get(baseUri).remove(anotherMT); +} +} Reference bRef = description != null ? description.bindings : null; LSPBindings b = bRef != null ? bRef.get() : null; @@ -269,6 +282,12 @@ public class LSPBindings { for (LanguageServerProvider provider : MimeLookup.getLookup(mt).lookupAll(LanguageServerProvider.class)) { final Lookup lkp = prj != null ? Lookups.fixed(prj, mimeTypeInfo, restarter) : Lookups.fixed(mimeTypeInfo, restarter); +inDescription.mimeTypes = Collections.singleton(mt); +// If this is a MultiMimeLanguageServerProvider, then retrieve all +// mime types handled by this server. +if (provider instanceof MultiMimeLanguageServerProvider)