[jira] [Updated] (NETBEANS-4143) "Tools > Open in Terminal" fails with cygwin
[ https://issues.apache.org/jira/browse/NETBEANS-4143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ernie Rael updated NETBEANS-4143: - Description: INFO [nativeexecution.support.logger]: [188225 ms.] Unable to start pty process: binary=F:\tmp\dlight_err\24ad3743\899701107\pty; args=[--set-erase-key, F:\cygwin64\bin\bash.exe, -c, exec /cygdrive/F/cygwin64/bin/bash.exe "--login"]; rc=Cannot run program "F:\tmp\dlight_err\24ad3743\899701107\pty": Malformed argument has embedded quote: exec /cygdrive/F/cygwin64/bin/bash.exe \"–login\" This is NOT related to NETBEANS-3254 (AFAICT); I tried setting those properties. Ran into this, following a youtube video posted last week. was: INFO [nativeexecution.support.logger]: [188225 ms.] Unable to start pty process: binary=F:\tmp\dlight_err\24ad3743\899701107\pty; args=[--set-erase-key, F:\cygwin64\bin\bash.exe, -c, exec /cygdrive/F/cygwin64/bin/bash.exe "--login"]; rc=Cannot run program "F:\tmp\dlight_err\24ad3743\899701107\pty": Malformed argument has embedded quote: exec /cygdrive/F/cygwin64/bin/bash.exe \"–login\" This is NOT related to NETBEANS-3254 (AFAICT); I tried setting those properties. > "Tools > Open in Terminal" fails with cygwin > > > Key: NETBEANS-4143 > URL: https://issues.apache.org/jira/browse/NETBEANS-4143 > Project: NetBeans > Issue Type: Bug > Components: cnd - Terminalemulator >Affects Versions: 12.0 >Reporter: Ernie Rael >Priority: Major > Labels: pull-request-available > Time Spent: 10m > Remaining Estimate: 0h > > INFO [nativeexecution.support.logger]: [188225 ms.] Unable to start pty > process: binary=F:\tmp\dlight_err\24ad3743\899701107\pty; > args=[--set-erase-key, F:\cygwin64\bin\bash.exe, -c, exec > /cygdrive/F/cygwin64/bin/bash.exe "--login"]; rc=Cannot run program > "F:\tmp\dlight_err\24ad3743\899701107\pty": Malformed argument has embedded > quote: exec /cygdrive/F/cygwin64/bin/bash.exe \"–login\" > This is NOT related to NETBEANS-3254 (AFAICT); I tried setting those > properties. > Ran into this, following a youtube video posted last week. -- 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-4143) "Tools > Open in Terminal" fails with cygwin
[ https://issues.apache.org/jira/browse/NETBEANS-4143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ASF GitHub Bot updated NETBEANS-4143: - Labels: pull-request-available (was: ) > "Tools > Open in Terminal" fails with cygwin > > > Key: NETBEANS-4143 > URL: https://issues.apache.org/jira/browse/NETBEANS-4143 > Project: NetBeans > Issue Type: Bug > Components: cnd - Terminalemulator >Affects Versions: 12.0 >Reporter: Ernie Rael >Priority: Major > Labels: pull-request-available > > INFO [nativeexecution.support.logger]: [188225 ms.] Unable to start pty > process: binary=F:\tmp\dlight_err\24ad3743\899701107\pty; > args=[--set-erase-key, F:\cygwin64\bin\bash.exe, -c, exec > /cygdrive/F/cygwin64/bin/bash.exe "--login"]; rc=Cannot run program > "F:\tmp\dlight_err\24ad3743\899701107\pty": Malformed argument has embedded > quote: exec /cygdrive/F/cygwin64/bin/bash.exe \"–login\" > This is NOT related to NETBEANS-3254 (AFAICT); I tried setting those > properties. -- 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-4143) "Tools > Open in Terminal" fails with cygwin
[ https://issues.apache.org/jira/browse/NETBEANS-4143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17080147#comment-17080147 ] Ernie Rael commented on NETBEANS-4143: -- Does anyone know where "pty" is comming from? $ file pty pty: PE32+ executable (console) x86-64 (stripped to external PDB), for MS Windows I ask because I can't find the source anywhere. (Not that options, like "--login", should be quoted to bash) But if I do {quote}$ bash -c "exec bash \"-i\"" {quote} that works. But maybe it's getting passed to pty as {quote}$ bash -c "exec bash "-i"" {quote} Which is probably more likely. But even that works So maybe pty is preemptively giving up without even trying... > "Tools > Open in Terminal" fails with cygwin > > > Key: NETBEANS-4143 > URL: https://issues.apache.org/jira/browse/NETBEANS-4143 > Project: NetBeans > Issue Type: Bug > Components: cnd - Terminalemulator >Affects Versions: 12.0 >Reporter: Ernie Rael >Priority: Major > > INFO [nativeexecution.support.logger]: [188225 ms.] Unable to start pty > process: binary=F:\tmp\dlight_err\24ad3743\899701107\pty; > args=[--set-erase-key, F:\cygwin64\bin\bash.exe, -c, exec > /cygdrive/F/cygwin64/bin/bash.exe "--login"]; rc=Cannot run program > "F:\tmp\dlight_err\24ad3743\899701107\pty": Malformed argument has embedded > quote: exec /cygdrive/F/cygwin64/bin/bash.exe \"–login\" > This is NOT related to NETBEANS-3254 (AFAICT); I tried setting those > properties. -- 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-1477) Single Class proposal not inserting automatically
[ https://issues.apache.org/jira/browse/NETBEANS-1477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17080116#comment-17080116 ] Vlad Palnik commented on NETBEANS-1477: --- Came across this issue while NetCat testing 12.0. Expected result: ... Automatic substitution for class names is always turned off. Does this mean that its working as intended and CC for class names is only displayed but never inserted even when there is only a single option?? > Single Class proposal not inserting automatically > - > > Key: NETBEANS-1477 > URL: https://issues.apache.org/jira/browse/NETBEANS-1477 > Project: NetBeans > Issue Type: Bug > Components: editor - Completion & Templates >Affects Versions: 10.0 > Environment: Windows 10 > Apache NetBeans IDE Dev (Build incubator-netbeans-release-345-on-20181002) >Reporter: Daniel Warren >Priority: Minor > > h3. Steps > # Uncheck {{ Auto Popup Completion Window }} > # In any class type {{ this. }} > # Restore the default value and repeat previous step > # Uncheck {{ Insert Single Proposals Automatically }} > # In editor type {{ StringBuffe }} and call normal code completion > # In editor type {{ Thread.curren }} and call normal code completion > # Restore the default value and repeat previous two steps > h3. Expected result: > The CC list provide one item but does not insert it if the options if > switched off. Automatic substitution for class names is always turned off. > > > With step 7, StringBuffer does not get automatically inserted when Code > Completion is called with the {{Insert Single Proposals Automatically}} > option enabled. The Code Completion does work with Thread.curren however. -- 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-1477) Single Class proposal not inserting automatically
[ https://issues.apache.org/jira/browse/NETBEANS-1477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17080116#comment-17080116 ] Vlad Palnik edited comment on NETBEANS-1477 at 4/10/20, 12:37 AM: -- Came across this issue while NetCat testing 12.0 beta 2. Expected result: ... Automatic substitution for class names is always turned off. Does this mean that its working as intended and CC for class names is only displayed but never inserted even when there is only a single option?? was (Author: vladpaln): Came across this issue while NetCat testing 12.0. Expected result: ... Automatic substitution for class names is always turned off. Does this mean that its working as intended and CC for class names is only displayed but never inserted even when there is only a single option?? > Single Class proposal not inserting automatically > - > > Key: NETBEANS-1477 > URL: https://issues.apache.org/jira/browse/NETBEANS-1477 > Project: NetBeans > Issue Type: Bug > Components: editor - Completion & Templates >Affects Versions: 10.0 > Environment: Windows 10 > Apache NetBeans IDE Dev (Build incubator-netbeans-release-345-on-20181002) >Reporter: Daniel Warren >Priority: Minor > > h3. Steps > # Uncheck {{ Auto Popup Completion Window }} > # In any class type {{ this. }} > # Restore the default value and repeat previous step > # Uncheck {{ Insert Single Proposals Automatically }} > # In editor type {{ StringBuffe }} and call normal code completion > # In editor type {{ Thread.curren }} and call normal code completion > # Restore the default value and repeat previous two steps > h3. Expected result: > The CC list provide one item but does not insert it if the options if > switched off. Automatic substitution for class names is always turned off. > > > With step 7, StringBuffer does not get automatically inserted when Code > Completion is called with the {{Insert Single Proposals Automatically}} > option enabled. The Code Completion does work with Thread.curren however. -- 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-4143) "Tools > Open in Terminal" fails with cygwin
[ https://issues.apache.org/jira/browse/NETBEANS-4143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ernie Rael updated NETBEANS-4143: - Description: INFO [nativeexecution.support.logger]: [188225 ms.] Unable to start pty process: binary=F:\tmp\dlight_err\24ad3743\899701107\pty; args=[--set-erase-key, F:\cygwin64\bin\bash.exe, -c, exec /cygdrive/F/cygwin64/bin/bash.exe "--login"]; rc=Cannot run program "F:\tmp\dlight_err\24ad3743\899701107\pty": Malformed argument has embedded quote: exec /cygdrive/F/cygwin64/bin/bash.exe \"–login\" This is NOT related to NETBEANS-3254 (AFAICT); I tried setting those properties. was: INFO [nativeexecution.support.logger]: [188225 ms.] Unable to start pty process: binary=F:\tmp\dlight_err\24ad3743\899701107\pty; args=[--set-erase-key, F:\cygwin64\bin\bash.exe, -c, exec /cygdrive/F/cygwin64/bin/bash.exe "--login"]; rc=Cannot run program "F:\tmp\dlight_err\24ad3743\899701107\pty": Malformed argument has embedded quote: exec /cygdrive/F/cygwin64/bin/bash.exe \"–login\" This is NOT related to [NETBEANS-3254], I tried setting those properties. > "Tools > Open in Terminal" fails with cygwin > > > Key: NETBEANS-4143 > URL: https://issues.apache.org/jira/browse/NETBEANS-4143 > Project: NetBeans > Issue Type: Bug > Components: cnd - Terminalemulator >Affects Versions: 12.0 >Reporter: Ernie Rael >Priority: Major > > INFO [nativeexecution.support.logger]: [188225 ms.] Unable to start pty > process: binary=F:\tmp\dlight_err\24ad3743\899701107\pty; > args=[--set-erase-key, F:\cygwin64\bin\bash.exe, -c, exec > /cygdrive/F/cygwin64/bin/bash.exe "--login"]; rc=Cannot run program > "F:\tmp\dlight_err\24ad3743\899701107\pty": Malformed argument has embedded > quote: exec /cygdrive/F/cygwin64/bin/bash.exe \"–login\" > This is NOT related to NETBEANS-3254 (AFAICT); I tried setting those > properties. -- 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-4143) "Tools > Open in Terminal" fails with cygwin
Ernie Rael created NETBEANS-4143: Summary: "Tools > Open in Terminal" fails with cygwin Key: NETBEANS-4143 URL: https://issues.apache.org/jira/browse/NETBEANS-4143 Project: NetBeans Issue Type: Bug Components: cnd - Terminalemulator Affects Versions: 12.0 Reporter: Ernie Rael INFO [nativeexecution.support.logger]: [188225 ms.] Unable to start pty process: binary=F:\tmp\dlight_err\24ad3743\899701107\pty; args=[--set-erase-key, F:\cygwin64\bin\bash.exe, -c, exec /cygdrive/F/cygwin64/bin/bash.exe "--login"]; rc=Cannot run program "F:\tmp\dlight_err\24ad3743\899701107\pty": Malformed argument has embedded quote: exec /cygdrive/F/cygwin64/bin/bash.exe \"–login\" This is NOT related to [NETBEANS-3254], I tried setting those properties. -- 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-3172) CTRL-F is disabled after running for a while (windows lock and relog)
[ https://issues.apache.org/jira/browse/NETBEANS-3172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17080034#comment-17080034 ] J Simonsen commented on NETBEANS-3172: -- Yeah... Jira says "missing token" on two ordinary png files. I converted to jpg and it is still not taking it. But the images show: a blank gutter (no code lines, no bookmarks or debug stops), and a disabled find menu (edit/find). > CTRL-F is disabled after running for a while (windows lock and relog) > - > > Key: NETBEANS-3172 > URL: https://issues.apache.org/jira/browse/NETBEANS-3172 > Project: NetBeans > Issue Type: Bug >Affects Versions: 11.1 >Reporter: endl >Priority: Major > > This story is going on for years. And there is a bug already listed in here: > > [https://netbeans.org/bugzilla/show_bug.cgi?id=222562] > > As old bug tracking system doesn't work > ([https://netbeans.org/bugzilla/enter_bug.cgi] gives > internal server error 500. Hello there!) I submit it in here. > > > Look's like it is only in Windows and after I lock windows and then log on > again I have the issue. > > +_*It's annoying*_+ It is lasting for years. Please > get it fix someone somehow. -- 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-3172) CTRL-F is disabled after running for a while (windows lock and relog)
[ https://issues.apache.org/jira/browse/NETBEANS-3172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17080033#comment-17080033 ] J Simonsen commented on NETBEANS-3172: -- Confirmed issue still present with: openjdk 14 2020-03-17 (hotspot) OpenJDK Runtime Environment AdoptOpenJDK (build 14+36) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 14+36, mixed mode, sharing) I will try to attach screenshots (they appear for me as I edit but Jira has issued some kind of error notice so they may not have posted) that show the missing find and gutter. To be clear, find is disabled but it was fine before I left the computer for lunch. Now it's gone, and the gutter is messed up. If I restart it's fine again. I am on 11.2, but this issue has been present for many releases. I will update to 11.3 but I don't expect to find it fixed. I will report back about 11.3 to confirm. !NetbeansGutter.png! !NetbeansFind.png! > CTRL-F is disabled after running for a while (windows lock and relog) > - > > Key: NETBEANS-3172 > URL: https://issues.apache.org/jira/browse/NETBEANS-3172 > Project: NetBeans > Issue Type: Bug >Affects Versions: 11.1 >Reporter: endl >Priority: Major > > This story is going on for years. And there is a bug already listed in here: > > [https://netbeans.org/bugzilla/show_bug.cgi?id=222562] > > As old bug tracking system doesn't work > ([https://netbeans.org/bugzilla/enter_bug.cgi] gives > internal server error 500. Hello there!) I submit it in here. > > > Look's like it is only in Windows and after I lock windows and then log on > again I have the issue. > > +_*It's annoying*_+ It is lasting for years. Please > get it fix someone somehow. -- 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-4029) Finding feature dialog doesn't line wrap message
[ https://issues.apache.org/jira/browse/NETBEANS-4029?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ASF GitHub Bot updated NETBEANS-4029: - Labels: pull-request-available (was: ) > Finding feature dialog doesn't line wrap message > > > Key: NETBEANS-4029 > URL: https://issues.apache.org/jira/browse/NETBEANS-4029 > Project: NetBeans > Issue Type: Bug >Affects Versions: 12.0 >Reporter: Patrik Karlström >Assignee: Hector Espert >Priority: Major > Labels: pull-request-available > Attachments: 2020-03-17-181501_710x499_scrot.png, > 2020-03-17-181520_1612x499_scrot.png > > > The message when finding feature, in order to create a simple maven project, > is not displayed in full as the attached images indicates. > Found this one during the first NetCAT task - check the startup experience. > -- 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 NETBEANS-4029 updated (a49d845 -> df60dd9)
This is an automated email from the ASF dual-hosted git repository. hectorespert pushed a change to branch NETBEANS-4029 in repository https://gitbox.apache.org/repos/asf/netbeans.git. discard a49d845 WIP discard abe985c [NETBEANS-4029] Fix feature dialog new df60dd9 [NETBEANS-4029] Fix feature dialog This update added new revisions after undoing existing revisions. That is to say, some revisions that were in the old version of the branch are not in the new version. This situation occurs when a user --force pushes a change and generates a repository containing something like this: * -- * -- B -- O -- O -- O (a49d845) \ N -- N -- N refs/heads/NETBEANS-4029 (df60dd9) You should already have received notification emails for all of the O revisions, and so the following emails describe only the N revisions from the common base, B. Any revisions marked "omit" are not gone; other references still refer to them. Any revisions marked "discard" are gone forever. The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../org/netbeans/modules/ide/ergonomics/fod/ConfigurationPanel.java| 3 +-- 1 file changed, 1 insertion(+), 2 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
[netbeans] 01/01: [NETBEANS-4029] Fix feature dialog
This is an automated email from the ASF dual-hosted git repository. hectorespert pushed a commit to branch NETBEANS-4029 in repository https://gitbox.apache.org/repos/asf/netbeans.git commit df60dd98a3bdb494e0c0f913283957cf81100356 Author: Hector Espert AuthorDate: Thu Apr 9 23:21:11 2020 +0200 [NETBEANS-4029] Fix feature dialog --- .../ide/ergonomics/fod/ConfigurationPanel.java | 53 ++ 1 file changed, 34 insertions(+), 19 deletions(-) diff --git a/ergonomics/ide.ergonomics/src/org/netbeans/modules/ide/ergonomics/fod/ConfigurationPanel.java b/ergonomics/ide.ergonomics/src/org/netbeans/modules/ide/ergonomics/fod/ConfigurationPanel.java index be78b57..f038985 100644 --- a/ergonomics/ide.ergonomics/src/org/netbeans/modules/ide/ergonomics/fod/ConfigurationPanel.java +++ b/ergonomics/ide.ergonomics/src/org/netbeans/modules/ide/ergonomics/fod/ConfigurationPanel.java @@ -24,9 +24,11 @@ import java.awt.EventQueue; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.IOException; +import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashSet; +import java.util.List; import java.util.Map; import java.util.Set; import java.util.concurrent.Callable; @@ -49,7 +51,6 @@ import org.netbeans.api.progress.ProgressHandle; import org.netbeans.api.progress.ProgressHandleFactory; import org.netbeans.modules.autoupdate.ui.api.PluginManager; import org.openide.awt.Mnemonics; -import org.openide.modules.SpecificationVersion; import org.openide.util.Exceptions; import org.openide.util.NbBundle; import org.openide.util.RequestProcessor.Task; @@ -93,7 +94,7 @@ public class ConfigurationPanel extends JPanel implements Runnable { public void setInfo(FeatureInfo info, String displayName, Collection toInstall, Collection missingModules, Map extrasMap, boolean required) { -this.extrasFilter = new HashSet(); +this.extrasFilter = new HashSet<>(); this.featureInfo = info; this.featureInstall = toInstall; boolean activateNow = toInstall.isEmpty() && missingModules.isEmpty(); @@ -142,29 +143,17 @@ public class ConfigurationPanel extends JPanel implements Runnable { downloadLabel.setVisible(true); activateButton.setVisible(true); downloadButton.setVisible(true); -StringBuilder sbDownload = new StringBuilder(); - + // collect descriptions from features contributing installed extras -for (FeatureInfo fi : extrasMap.values()) { -String s = required -? fi.getExtraModulesRequiredText() -: fi.getExtraModulesRecommendedText(); -if (s != null) { -if (sbDownload.length() > 0) { -sbDownload.append("\n"); -} -sbDownload.append(s); -} -} +List downloadStringList = collectDescriptionsFromFeatures(extrasMap.values(), required); +String lblDownloadMsg = generateDownloadMessageFromDescriptions(downloadStringList); + if (required) { activateButton.setEnabled(false); } else { activateButton.setEnabled(true); } -String lblDownloadMsg = sbDownload.toString(); - -String list = ""; if (!missingModules.isEmpty()) { StringBuilder sb = new StringBuilder(); for (FeatureInfo.ExtraModuleInfo s : missingModules) { @@ -173,7 +162,7 @@ public class ConfigurationPanel extends JPanel implements Runnable { } sb.append(s.displayName()); } -list = sb.toString(); +String list = sb.toString(); if (required) { lblDownloadMsg = NbBundle.getMessage(ConfigurationPanel.class, "MSG_MissingRequiredModules", displayName, list); activateButton.setEnabled(false); @@ -194,6 +183,32 @@ public class ConfigurationPanel extends JPanel implements Runnable { org.openide.awt.Mnemonics.setLocalizedText(downloadButton, btnDownloadMsg); } } + +private List collectDescriptionsFromFeatures(Collection features, boolean required) { +List descriptionsList = new ArrayList<>(); +for (FeatureInfo fi : features) { +String s = required ? fi.getExtraModulesRequiredText(): fi.getExtraModulesRecommendedText(); +if (!descriptionsList.contains(s)) { +descriptionsList.add(s); +} +} +return descriptionsList; +} + +private String generateDownloadMessageFromDescriptions(List descriptions) { +StringBuilder sbDownload = new StringBuilder(); +if (!descri
[netbeans] branch NETBEANS-4029 updated: WIP
This is an automated email from the ASF dual-hosted git repository. hectorespert pushed a commit to branch NETBEANS-4029 in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/NETBEANS-4029 by this push: new a49d845 WIP a49d845 is described below commit a49d845789657842b5343b6b3d4e780a3e35b217 Author: Hector Espert AuthorDate: Thu Apr 9 23:36:33 2020 +0200 WIP --- .../ide/ergonomics/fod/ConfigurationPanel.java | 52 -- 1 file changed, 28 insertions(+), 24 deletions(-) diff --git a/ergonomics/ide.ergonomics/src/org/netbeans/modules/ide/ergonomics/fod/ConfigurationPanel.java b/ergonomics/ide.ergonomics/src/org/netbeans/modules/ide/ergonomics/fod/ConfigurationPanel.java index 6f98a8a..8620080 100644 --- a/ergonomics/ide.ergonomics/src/org/netbeans/modules/ide/ergonomics/fod/ConfigurationPanel.java +++ b/ergonomics/ide.ergonomics/src/org/netbeans/modules/ide/ergonomics/fod/ConfigurationPanel.java @@ -145,17 +145,9 @@ public class ConfigurationPanel extends JPanel implements Runnable { activateButton.setVisible(true); downloadButton.setVisible(true); -List downloadStringList = new ArrayList<>(); - // collect descriptions from features contributing installed extras -for (FeatureInfo fi : extrasMap.values()) { -String s = required -? fi.getExtraModulesRequiredText() -: fi.getExtraModulesRecommendedText(); -if (!downloadStringList.contains(s)) { -downloadStringList.add(s); -} -} +List downloadStringList = collectDescriptionsFromFeatures(extrasMap.values(), required); +String lblDownloadMsg = generateDownloadMessageFromDescriptions(downloadStringList); if (required) { activateButton.setEnabled(false); @@ -163,20 +155,6 @@ public class ConfigurationPanel extends JPanel implements Runnable { activateButton.setEnabled(true); } -String lblDownloadMsg = ""; -if (!downloadStringList.isEmpty()) { -StringBuilder sbDownload = new StringBuilder(""); -for (int i = 0; i < downloadStringList.size(); i++) { -sbDownload.append(downloadStringList.get(i)); -if (i > 0 || i < downloadStringList.size() - 1) { -sbDownload.append(""); -} -} - -sbDownload.append(""); -lblDownloadMsg = sbDownload.toString(); -} - if (!missingModules.isEmpty()) { StringBuilder sb = new StringBuilder(); for (FeatureInfo.ExtraModuleInfo s : missingModules) { @@ -206,6 +184,32 @@ public class ConfigurationPanel extends JPanel implements Runnable { org.openide.awt.Mnemonics.setLocalizedText(downloadButton, btnDownloadMsg); } } + +private List collectDescriptionsFromFeatures(Collection features, boolean required) { +List descriptionsList = new ArrayList<>(); +for (FeatureInfo fi : features) { +String s = required ? fi.getExtraModulesRequiredText(): fi.getExtraModulesRecommendedText(); +if (!descriptionsList.contains(s)) { +descriptionsList.add(s); +} +} +return descriptionsList; +} + +private String generateDownloadMessageFromDescriptions(List descriptions) { +StringBuilder sbDownload = new StringBuilder(); +if (!descriptions.isEmpty()) { +sbDownload.append(""); +for (int i = 0; i < descriptions.size(); i++) { +sbDownload.append(descriptions.get(i)); +if (i > 0 || i < descriptions.size() - 1) { +sbDownload.append(""); +} +} +sbDownload.append(""); +} +return sbDownload.toString(); +} @Override public void removeNotify() { - 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-4142) javaee support test syntax error in code snippet
Vano Beridze created NETBEANS-4142: -- Summary: javaee support test syntax error in code snippet Key: NETBEANS-4142 URL: https://issues.apache.org/jira/browse/NETBEANS-4142 Project: NetBeans Issue Type: Bug Affects Versions: 12.0 Reporter: Vano Beridze h1. Utilize f:websocket Feature context-param tag does not have correct end tag. / symbol is missing. -- 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 NETBEANS-4029 created (now abe985c)
This is an automated email from the ASF dual-hosted git repository. hectorespert pushed a change to branch NETBEANS-4029 in repository https://gitbox.apache.org/repos/asf/netbeans.git. at abe985c [NETBEANS-4029] Fix feature dialog This branch includes the following new commits: new abe985c [NETBEANS-4029] Fix feature dialog The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. - 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] 01/01: [NETBEANS-4029] Fix feature dialog
This is an automated email from the ASF dual-hosted git repository. hectorespert pushed a commit to branch NETBEANS-4029 in repository https://gitbox.apache.org/repos/asf/netbeans.git commit abe985cafc7df5d26f72a18cc84364bc386c5963 Author: Hector Espert AuthorDate: Thu Apr 9 23:21:11 2020 +0200 [NETBEANS-4029] Fix feature dialog --- .../ide/ergonomics/fod/ConfigurationPanel.java | 32 +++--- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/ergonomics/ide.ergonomics/src/org/netbeans/modules/ide/ergonomics/fod/ConfigurationPanel.java b/ergonomics/ide.ergonomics/src/org/netbeans/modules/ide/ergonomics/fod/ConfigurationPanel.java index be78b57..6f98a8a 100644 --- a/ergonomics/ide.ergonomics/src/org/netbeans/modules/ide/ergonomics/fod/ConfigurationPanel.java +++ b/ergonomics/ide.ergonomics/src/org/netbeans/modules/ide/ergonomics/fod/ConfigurationPanel.java @@ -24,9 +24,11 @@ import java.awt.EventQueue; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.IOException; +import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashSet; +import java.util.List; import java.util.Map; import java.util.Set; import java.util.concurrent.Callable; @@ -142,29 +144,39 @@ public class ConfigurationPanel extends JPanel implements Runnable { downloadLabel.setVisible(true); activateButton.setVisible(true); downloadButton.setVisible(true); -StringBuilder sbDownload = new StringBuilder(); - + +List downloadStringList = new ArrayList<>(); + // collect descriptions from features contributing installed extras for (FeatureInfo fi : extrasMap.values()) { String s = required ? fi.getExtraModulesRequiredText() : fi.getExtraModulesRecommendedText(); -if (s != null) { -if (sbDownload.length() > 0) { -sbDownload.append("\n"); -} -sbDownload.append(s); +if (!downloadStringList.contains(s)) { +downloadStringList.add(s); } } + if (required) { activateButton.setEnabled(false); } else { activateButton.setEnabled(true); } -String lblDownloadMsg = sbDownload.toString(); +String lblDownloadMsg = ""; +if (!downloadStringList.isEmpty()) { +StringBuilder sbDownload = new StringBuilder(""); +for (int i = 0; i < downloadStringList.size(); i++) { +sbDownload.append(downloadStringList.get(i)); +if (i > 0 || i < downloadStringList.size() - 1) { +sbDownload.append(""); +} +} + +sbDownload.append(""); +lblDownloadMsg = sbDownload.toString(); +} -String list = ""; if (!missingModules.isEmpty()) { StringBuilder sb = new StringBuilder(); for (FeatureInfo.ExtraModuleInfo s : missingModules) { @@ -173,7 +185,7 @@ public class ConfigurationPanel extends JPanel implements Runnable { } sb.append(s.displayName()); } -list = sb.toString(); +String list = sb.toString(); if (required) { lblDownloadMsg = NbBundle.getMessage(ConfigurationPanel.class, "MSG_MissingRequiredModules", displayName, list); activateButton.setEnabled(false); - 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] [Assigned] (NETBEANS-4029) Finding feature dialog doesn't line wrap message
[ https://issues.apache.org/jira/browse/NETBEANS-4029?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hector Espert reassigned NETBEANS-4029: --- Assignee: Hector Espert > Finding feature dialog doesn't line wrap message > > > Key: NETBEANS-4029 > URL: https://issues.apache.org/jira/browse/NETBEANS-4029 > Project: NetBeans > Issue Type: Bug >Affects Versions: 12.0 >Reporter: Patrik Karlström >Assignee: Hector Espert >Priority: Major > Attachments: 2020-03-17-181501_710x499_scrot.png, > 2020-03-17-181520_1612x499_scrot.png > > > The message when finding feature, in order to create a simple maven project, > is not displayed in full as the attached images indicates. > Found this one during the first NetCAT task - check the startup experience. > -- 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-4141) Payara 5.201 in download list
[ https://issues.apache.org/jira/browse/NETBEANS-4141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vano Beridze updated NETBEANS-4141: --- Summary: Payara 5.201 in download list (was: Payara 201 in download list) > Payara 5.201 in download list > - > > Key: NETBEANS-4141 > URL: https://issues.apache.org/jira/browse/NETBEANS-4141 > Project: NetBeans > Issue Type: Improvement >Affects Versions: 12.0 >Reporter: Vano Beridze >Priority: Minor > > When registering Payara server, download list does not contain 5.201 version > which is the latest -- 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-4141) Payara 201 in download list
Vano Beridze created NETBEANS-4141: -- Summary: Payara 201 in download list Key: NETBEANS-4141 URL: https://issues.apache.org/jira/browse/NETBEANS-4141 Project: NetBeans Issue Type: Improvement Affects Versions: 12.0 Reporter: Vano Beridze When registering Payara server, download list does not contain 5.201 version which is the latest -- 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-4140) Form design errors can't be fixed
[ https://issues.apache.org/jira/browse/NETBEANS-4140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17079487#comment-17079487 ] Geertjan Wielenga commented on NETBEANS-4140: - Yes, org.jdesktop.layout is not part of Apache NetBeans, it could not be donated by Oracle to Apache so isn't part of Apache NetBeans. For documentation issues, just create a new issue -- not sure who you want to "pass this on" to, we're all volunteers here and you're even able to change the documentation yourself -- at the end of each tutorial, you'll find a link to provide a pull request with your changes. > Form design errors can't be fixed > - > > Key: NETBEANS-4140 > URL: https://issues.apache.org/jira/browse/NETBEANS-4140 > Project: NetBeans > Issue Type: Bug > Components: apisupport - Project >Affects Versions: 11.0 >Reporter: Ian Martin James Berry >Priority: Minor > Attachments: InternationalizeDemo_Code_Problems.JPG, > InternationalizeDemo_Open_Project_Problems.JPG, > InternationalizeDemo_Resolve_Project_Problems.JPG, > InternationalizeDemo_Resolve_Project_Problems2.JPG, > InternationalizeDemo_Resolve_Upgrade_Binaries.JPG, > InternationalizeDemo_Resolved_Problems.JPG > > > I assume that the Form Design source-code generator has been changed since > Netbeans 8 because loading a sample project creates import errors saying > "org.jdesktop.layout" components can't be found. > These errors occur within the generated code section that cannot be fixed > manually - I have tried adding the JAR file to the Library and import_ing the > components but they appear as unused even though they are in the editable > part of the same source file. > The project comes from the Internationalization Tutorial > [https://netbeans.org/kb/docs/java/gui-automatic-i18n.html] > and the zip is from > [https://netbeans.org/files/documents/4/770/InternationalizeDemo.zip] > I also need to report the errors with this file as a documentation issue, I'm > just not sure how or where to do that so ... if you could pass this on > -- 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-4140) Form design errors can't be fixed
Ian Martin James Berry created NETBEANS-4140: Summary: Form design errors can't be fixed Key: NETBEANS-4140 URL: https://issues.apache.org/jira/browse/NETBEANS-4140 Project: NetBeans Issue Type: Bug Components: apisupport - Project Affects Versions: 11.0 Reporter: Ian Martin James Berry Attachments: InternationalizeDemo_Code_Problems.JPG, InternationalizeDemo_Open_Project_Problems.JPG, InternationalizeDemo_Resolve_Project_Problems.JPG, InternationalizeDemo_Resolve_Project_Problems2.JPG, InternationalizeDemo_Resolve_Upgrade_Binaries.JPG, InternationalizeDemo_Resolved_Problems.JPG I assume that the Form Design source-code generator has been changed since Netbeans 8 because loading a sample project creates import errors saying "org.jdesktop.layout" components can't be found. These errors occur within the generated code section that cannot be fixed manually - I have tried adding the JAR file to the Library and import_ing the components but they appear as unused even though they are in the editable part of the same source file. The project comes from the Internationalization Tutorial [https://netbeans.org/kb/docs/java/gui-automatic-i18n.html] and the zip is from [https://netbeans.org/files/documents/4/770/InternationalizeDemo.zip] I also need to report the errors with this file as a documentation issue, I'm just not sure how or where to do that so ... if you could pass this on -- 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 (5d9e62e -> 07942f3)
This is an automated email from the ASF dual-hosted git repository. skygo pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git. from 5d9e62e Merge pull request #2039 from lkishalmi/NETBEANS-4039 new bbb7b50 Trying to improve behavior of Java refactoring while running without nb-javac, attempting to make tests work. new 7a0a8f5 Fixing build issues. new 9dbc7b7 Adding missing file. new 012d92d Reduce refactoring.java test logs by defining DTDs. new f46c591 Attempting to silence more unnecessary logs. new 962c118 Ensuring a pristine javac instance for Java refactoring, so that SourceUtil.forceSource works. new 47c4514 Fixing CompilationController parameter. new a8fce30 Merging master changes into fix-refactoring-vanilla-javac new fc5136c Retry refactoring tests. new bc33dcc Trying to retry individual refactoring tests. new 7e742ae Silencing logs. new f3c6d09 Only run refactoring unittests. new 9def1d5 Merging master into fix-refactoring-vanilla-javac. new 67a7576 Adjusting golden output to the current codegen state. new 07942f3 Merge pull request #2013 from jlahoda/fix-refactoring-vanilla-javac The 3843 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .travis.yml| 3 +- java/java.source.base/apichanges.xml | 12 +++ java/java.source.base/nbproject/project.properties | 2 +- .../org/netbeans/api/java/source/ClassIndex.java | 3 +- .../api/java/source/CompilationController.java | 15 ++- .../org/netbeans/api/java/source/SourceUtils.java | 17 .../java/source/indexing/VanillaCompileWorker.java | 60 +--- .../java/source/parsing/CompilationInfoImpl.java | 53 ++- .../modules/java/source/parsing/JavacParser.java | 19 ++-- .../source/parsing/ParameterNameProviderImpl.java | 5 + .../source/indexing/CompileWorkerTestBase.java | 2 + .../source/indexing/VanillaCompileWorkerTest.java | 102 - .../java/source/parsing/ModuleOraculumTest.java| 2 +- java/refactoring.java/nbproject/project.xml| 8 +- .../java/plugins/InlineMethodTransformer.java | 9 ++ .../java/plugins/InlineRefactoringPlugin.java | 2 +- .../java/plugins/InlineVariableTransformer.java| 18 .../java/plugins/InnerToOuterTransformer.java | 2 +- .../IntroduceLocalExtensionTransformer.java| 12 +++ .../java/plugins/MoveClassTransformer.java | 20 ++-- .../java/plugins/MoveFileRefactoringPlugin.java| 4 +- .../java/plugins/MoveMembersRefactoringPlugin.java | 15 ++- .../java/plugins/MoveMembersTransformer.java | 12 +++ .../refactoring/java/plugins/MoveTransformer.java | 4 +- .../java/plugins/PullUpTransformer.java| 2 + .../java/plugins/PushDownRefactoringPlugin.java| 2 +- .../java/plugins/PushDownTransformer.java | 14 ++- .../plugins/RenameTestClassRefactoringPlugin.java | 2 +- .../java/spi/JavaRefactoringPlugin.java| 15 ++- .../refactoring/java/spi/RefactoringVisitor.java | 1 + .../java/suites/TestEntityCatalogImpl.java | 47 ++ .../refactoring/java/test/FindSubclassesTest.java | 4 +- .../refactoring/java/test/FindUsagesJDK9Test.java | 8 +- .../refactoring/java/test/FindUsagesPerfTest.java | 4 +- .../refactoring/java/test/FindUsagesTest.java | 8 +- .../modules/refactoring/java/test/InlineTest.java | 2 +- .../refactoring/java/test/InnerToOutterTest.java | 2 +- .../java/test/IntroduceLocalExtensionTest.java | 8 +- .../modules/refactoring/java/test/MoveBase.java| 18 .../refactoring/java/test/MoveClassPerfTest.java | 4 +- .../refactoring/java/test/MoveClassTest.java | 33 ++- .../refactoring/java/test/MoveMethodTest.java | 2 +- .../modules/refactoring/java/test/Noop.java| 17 ++-- .../java/test/OpenDocumentsPerfTest.java | 4 +- .../modules/refactoring/java/test/PullUpTest.java | 4 +- .../modules/refactoring/java/test/RefTestBase.java | 8 +- .../refactoring/java/test/RefactoringTestBase.java | 48 -- 47 files changed, 561 insertions(+), 97 deletions(-) create mode 100644 java/refactoring.java/test/unit/src/org/netbeans/modules/refactoring/java/suites/TestEntityCatalogImpl.java copy apisupport/apisupport.ant/test/unit/data/example-external-projects/suite4/module1/test/unit/src/aa/ATest.java => java/refactoring.java/test/unit/src/org/netbeans/modules/refactoring/java/test/Noop.java (81%) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For addition
[netbeans] branch master updated: [NETBEANS-4039] Added SPI for Preferred Color Profile Changes
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.git The following commit(s) were added to refs/heads/master by this push: new ab6a2eb [NETBEANS-4039] Added SPI for Preferred Color Profile Changes new 5d9e62e Merge pull request #2039 from lkishalmi/NETBEANS-4039 ab6a2eb is described below commit ab6a2ebc89b93c73dc89800efb18c42bcb6b3911 Author: Laszlo Kishalmi AuthorDate: Fri Mar 20 07:34:47 2020 -0700 [NETBEANS-4039] Added SPI for Preferred Color Profile Changes --- ide/options.editor/nbproject/project.xml | 9 +++ .../modules/options/colors/ColorModel.java | 19 +- platform/core.windows/apichanges.xml | 20 +++ platform/core.windows/manifest.mf | 2 +- platform/core.windows/nbproject/project.xml| 7 +-- .../netbeans/core/windows/options/LafPanel.java| 70 ++ .../options/spi/PreferredColorProfileSupport.java | 50 7 files changed, 117 insertions(+), 60 deletions(-) diff --git a/ide/options.editor/nbproject/project.xml b/ide/options.editor/nbproject/project.xml index 61f2d4f..47a637f 100644 --- a/ide/options.editor/nbproject/project.xml +++ b/ide/options.editor/nbproject/project.xml @@ -26,6 +26,15 @@ org.netbeans.modules.options.editor +org.netbeans.core.windows + + + +2 +2.92 + + + org.netbeans.modules.editor diff --git a/ide/options.editor/src/org/netbeans/modules/options/colors/ColorModel.java b/ide/options.editor/src/org/netbeans/modules/options/colors/ColorModel.java index dc98303..e1749de 100644 --- a/ide/options.editor/src/org/netbeans/modules/options/colors/ColorModel.java +++ b/ide/options.editor/src/org/netbeans/modules/options/colors/ColorModel.java @@ -71,9 +71,11 @@ import org.openide.filesystems.FileUtil; import org.openide.text.CloneableEditorSupport; import org.openide.util.ImageUtilities; import org.openide.util.NbBundle; +import org.openide.util.lookup.ServiceProvider; +import org.netbeans.core.windows.options.spi.PreferredColorProfileSupport; - -public final class ColorModel { +@ServiceProvider(service = PreferredColorProfileSupport.class) +public final class ColorModel implements PreferredColorProfileSupport { private static final Logger LOG = Logger.getLogger(ColorModel.class.getName()); @@ -95,6 +97,12 @@ public final class ColorModel { return EditorSettings.getDefault().isCustomFontColorProfile (profile); } +@Override +public String getCurrentProfileName () { +String name = getCurrentProfile(); +return isCustomProfile(name) ? null : name; +} + public void setCurrentProfile (String profile) { EditorSettings.getDefault().setCurrentFontColorProfile (profile); } @@ -291,6 +299,13 @@ public final class ColorModel { return new Preview("test" + hashCode(), mimeType); //NOI18N } +@Override +public void setPreferredProfile(String profileName) { +setCurrentProfile(profileName); +Collection annotations = getAnnotations(profileName); +setAnnotations(profileName, annotations); +} + final class Preview extends JPanel { static final String PROP_CURRENT_ELEMENT = "currentAElement"; diff --git a/platform/core.windows/apichanges.xml b/platform/core.windows/apichanges.xml index 9fa948c..10179c9 100644 --- a/platform/core.windows/apichanges.xml +++ b/platform/core.windows/apichanges.xml @@ -84,6 +84,26 @@ is the proper place. + + +Add SPI support for preferred color profile change. + + + + + +A new interface PreferredColorProfileSupport has been +added in order to let other modules reflect on preferred color profile +change when the user requests for that during Look and Feel change. +Look and Feels can register a color profile name as String +named nb.preferred.color.profile in their UIDefaults. +Changing the Look and Feel would offer the user to change the color +profile of additional components (most likely the Editor), if it's +current profile does not match the one preferred by the +selected Look and Feel. + + + Add preference for sorting editor tabs diff --git a/platform/core.windows/manifest.mf b/platform/core.windows/manifest.mf index 0978ba6..92b06fe 100644 --- a/platform/core.windows/manifest.mf +++ b/platform/core.windows/manifest.mf @@ -6,5 +6,5 @@ OpenIDE-Module-P
[netbeans] branch master updated: [NETBEANS-3881] FlatLaf: "Find Usages" dialog: fixed warning overlaps Scope combobox
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.git The following commit(s) were added to refs/heads/master by this push: new 59057de [NETBEANS-3881] FlatLaf: "Find Usages" dialog: fixed warning overlaps Scope combobox new 75468ca Merge pull request #2034 from DevCharly/flatlaf-find-usages 59057de is described below commit 59057de00e1186c5aaa19d1353e4537323cba2ef Author: Karl Tauber AuthorDate: Thu Mar 19 10:26:47 2020 +0100 [NETBEANS-3881] FlatLaf: "Find Usages" dialog: fixed warning overlaps Scope combobox --- .../src/org/netbeans/modules/refactoring/java/ui/WhereUsedPanel.form| 2 +- .../src/org/netbeans/modules/refactoring/java/ui/WhereUsedPanel.java| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java/refactoring.java/src/org/netbeans/modules/refactoring/java/ui/WhereUsedPanel.form b/java/refactoring.java/src/org/netbeans/modules/refactoring/java/ui/WhereUsedPanel.form index 471d6ec..5881496 100644 --- a/java/refactoring.java/src/org/netbeans/modules/refactoring/java/ui/WhereUsedPanel.form +++ b/java/refactoring.java/src/org/netbeans/modules/refactoring/java/ui/WhereUsedPanel.form @@ -54,7 +54,7 @@ - + diff --git a/java/refactoring.java/src/org/netbeans/modules/refactoring/java/ui/WhereUsedPanel.java b/java/refactoring.java/src/org/netbeans/modules/refactoring/java/ui/WhereUsedPanel.java index c084e49..2540b8e 100644 --- a/java/refactoring.java/src/org/netbeans/modules/refactoring/java/ui/WhereUsedPanel.java +++ b/java/refactoring.java/src/org/netbeans/modules/refactoring/java/ui/WhereUsedPanel.java @@ -227,7 +227,7 @@ public class WhereUsedPanel extends JPanel implements CustomRefactoringPanel { layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() -.addComponent(innerPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 181, Short.MAX_VALUE) +.addComponent(innerPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 210, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(scope, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - 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-3870] FlatLaf and Windows LaF: fixed smooth scrolling in editors, Output view and Debugging view
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.git The following commit(s) were added to refs/heads/master by this push: new d09fd5b [NETBEANS-3870] FlatLaf and Windows LaF: fixed smooth scrolling in editors, Output view and Debugging view new f83842b Merge pull request #2058 from DevCharly/flatlaf-smooth-scrolling d09fd5b is described below commit d09fd5bad5397e6325019f755c434022d86c8adb Author: Karl Tauber AuthorDate: Wed Apr 1 16:46:06 2020 +0200 [NETBEANS-3870] FlatLaf and Windows LaF: fixed smooth scrolling in editors, Output view and Debugging view --- .../src/org/netbeans/modules/editor/lib2/view/DocumentViewOp.java | 2 +- .../modules/debugger/ui/views/debugging/DebuggingViewComponent.java | 2 +- .../src/org/netbeans/core/output2/ui/AbstractOutputPane.java| 6 -- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ide/editor.lib2/src/org/netbeans/modules/editor/lib2/view/DocumentViewOp.java b/ide/editor.lib2/src/org/netbeans/modules/editor/lib2/view/DocumentViewOp.java index 80f1b9a..3eceac7 100644 --- a/ide/editor.lib2/src/org/netbeans/modules/editor/lib2/view/DocumentViewOp.java +++ b/ide/editor.lib2/src/org/netbeans/modules/editor/lib2/view/DocumentViewOp.java @@ -1510,7 +1510,7 @@ public final class DocumentViewOp JTextComponent textComponent = docView.getTextComponent(); Keymap keymap = textComponent.getKeymap(); -int wheelRotation = evt.getWheelRotation(); +double wheelRotation = evt.getPreciseWheelRotation(); if (wheelRotation < 0) { Action action = keymap.getAction(KeyStroke.getKeyStroke(0x290, modifiers)); //WHEEL_UP constant if (action != null) { diff --git a/ide/spi.debugger.ui/src/org/netbeans/modules/debugger/ui/views/debugging/DebuggingViewComponent.java b/ide/spi.debugger.ui/src/org/netbeans/modules/debugger/ui/views/debugging/DebuggingViewComponent.java index ac61de4..5501cb4 100644 --- a/ide/spi.debugger.ui/src/org/netbeans/modules/debugger/ui/views/debugging/DebuggingViewComponent.java +++ b/ide/spi.debugger.ui/src/org/netbeans/modules/debugger/ui/views/debugging/DebuggingViewComponent.java @@ -873,7 +873,7 @@ public class DebuggingViewComponent extends TopComponent implements org.openide. public void mouseWheelMoved(MouseWheelEvent e) { JScrollBar scrollBar = mainScrollPane.getVerticalScrollBar(); if (e.getScrollType() == MouseWheelEvent.WHEEL_UNIT_SCROLL) { -int totalScrollAmount = e.getUnitsToScroll() * scrollBar.getUnitIncrement(); +int totalScrollAmount = (int) (e.getPreciseWheelRotation() * e.getScrollAmount() * scrollBar.getUnitIncrement()); scrollBar.setValue(scrollBar.getValue() + totalScrollAmount); } } diff --git a/platform/core.output2/src/org/netbeans/core/output2/ui/AbstractOutputPane.java b/platform/core.output2/src/org/netbeans/core/output2/ui/AbstractOutputPane.java index 31f4580..13027fe 100644 --- a/platform/core.output2/src/org/netbeans/core/output2/ui/AbstractOutputPane.java +++ b/platform/core.output2/src/org/netbeans/core/output2/ui/AbstractOutputPane.java @@ -822,7 +822,8 @@ public abstract class AbstractOutputPane extends JScrollPane implements Document } else if (e.isShiftDown()) { // horizontal scrolling BoundedRangeModel sbmodel = getHorizontalScrollBar().getModel(); int currPosition = sbmodel.getValue(); -int newPosition = Math.max(0, Math.min(sbmodel.getMaximum(), currPosition + (e.getUnitsToScroll()) * fontWidth)); +int newPosition = Math.max(0, Math.min(sbmodel.getMaximum(), currPosition ++ (int) (e.getPreciseWheelRotation() * e.getScrollAmount() * fontWidth))); sbmodel.setValue (newPosition); return; } @@ -832,7 +833,8 @@ public abstract class AbstractOutputPane extends JScrollPane implements Document int currPosition = sbmodel.getValue(); if (e.getSource() == textView) { -int newPosition = Math.max(0, Math.min(sbmodel.getMaximum(), currPosition + (e.getUnitsToScroll() * fontHeight))); +int newPosition = Math.max(0, Math.min(sbmodel.getMaximum(), currPosition ++ (int) (e.getPreciseWheelRotation() * e.getScrollAmount() * fontHeight))); // height is a magic constant because of #57532 sbmodel.setValue (newPosition); if (newPosition + range >= max) { - 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 (6d25b27 -> 38731d1)
This is an automated email from the ASF dual-hosted git repository. skygo pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git. from 6d25b27 Merge pull request #2052 from jlahoda/improve-lsp-client-march-2020 new ba433f6 [NETBEANS-3428] FlatLaf: hover in multi-tabs new 9702e81 TabDataRenderer: invoke TabDecorator.paintAfter() also on hover new b1e7fef TabTableUI: set fields with current hover row/column before repainting new 38731d1 Merge pull request #2051 from DevCharly/flatlaf-multitabs-hover The 3822 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../core/multitabs/impl/TabDataRenderer.java | 5 +++ .../netbeans/core/multitabs/impl/TabTableUI.java | 47 +- .../netbeans/swing/laf/flatlaf/FlatLaf.properties | 1 + 3 files changed, 52 insertions(+), 1 deletion(-) - 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-4139) Can't enable OSGi dependencies for NB Maven projects when using RELEASE1XX versions
Iiro Nykänen created NETBEANS-4139: -- Summary: Can't enable OSGi dependencies for NB Maven projects when using RELEASE1XX versions Key: NETBEANS-4139 URL: https://issues.apache.org/jira/browse/NETBEANS-4139 Project: NetBeans Issue Type: Bug Components: apisupport - Maven Affects Versions: 11.3 Reporter: Iiro Nykänen Trying to create a new Project, category Java with Maven, project either NetBeans Module or NetBeans Application. When selecting the NetBeans version the "Allow OSGi bundles as dependencies" checkbox is disabled when using any of the RELEASE1XX versions. RELEASE90 and dev-SNAPSHOT enable it. This is caused by the Comparable implementation of NBVersionInfo not producing correct results. The constructor of NbVersionInfo has the following piece of code: {noformat} if (version.matches("RELEASE\\d+(-.+)?")) { // NOI18N // Maven considers RELEASE671 to be newer than RELEASE69. Hack up the version here. comparableVersion = new ComparableVersion(version.replaceAll("(\\d)", ".$1")); // NOI18N {noformat} This hack is the cause of the bug, and the result is that in NbmWizardPanelVisual#versionComboActionPerformed the section that compares the selected version to RELEASE69-BETA, all RELEASE1XX versions are deemed too old. {noformat} String version = (String) versionCombo.getSelectedItem(); NBVersionInfo nbvi = new NBVersionInfo("x", "x", "x", version, null, null, null, null, null); if (version != null && (version.equals(NbmWizardIterator.SNAPSHOT_VERSION) || nbvi.compareTo(new NBVersionInfo("x", "x", "x", "RELEASE69-BETA", null, null, null, null, null)) <= 0)) { cbOsgiDeps.setEnabled(true); } else { cbOsgiDeps.setEnabled(false); cbOsgiDeps.setSelected(false); } {noformat} Removing the hack works for me. Updating the hack would require distinguishing between 6.7.1 and 11.3 versioning formats out of three numbers, or changing it to only cover the exact older versions, so unless there is need to support using over ten year old platform versions, I'd imagine removing it would be the way to go. I suppose this bug can be circumvented by creating the project without the check, but manually adding the element useOSGiDependencies in the nbm-maven-plugin configuration: {noformat} org.apache.netbeans.utilities nbm-maven-plugin 4.3 true ${brandingToken} ${brandingToken} true {noformat} -- 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: Improving LSP client: ability to share language servers across different mime-types; improving span of hyperlinks based on TextMate grammars, if available.
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.git The following commit(s) were added to refs/heads/master by this push: new fe18ae4 Improving LSP client: ability to share language servers across different mime-types; improving span of hyperlinks based on TextMate grammars, if available. new 6d25b27 Merge pull request #2052 from jlahoda/improve-lsp-client-march-2020 fe18ae4 is described below commit fe18ae4b99bceb566749df3a72e7fd312b4f45c3 Author: Jan Lahoda AuthorDate: Sun Mar 29 22:23:40 2020 +0200 Improving LSP client: ability to share language servers across different mime-types; improving span of hyperlinks based on TextMate grammars, if available. --- .../org/netbeans/modules/lsp/client/LSPBindings.java| 9 +++-- .../lsp/client/LanguageServerProviderAccessor.java | 2 ++ .../lsp/client/bindings/HyperlinkProviderImpl.java | 17 - .../modules/lsp/client/spi/LanguageServerProvider.java | 12 4 files changed, 37 insertions(+), 3 deletions(-) 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 c45b117..f641477 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 @@ -120,7 +120,7 @@ public class LSPBindings { if (p != null) { LSPBindings b = project2MimeType2Server.getOrDefault(p, Collections.emptyMap()).remove(mimeType); - if (b != null) { + if (b != null && b.process != null) { b.process.destroy(); } } @@ -131,6 +131,10 @@ public class LSPBindings { LanguageServerDescription desc = provider.startServer(Lookups.fixed(prj, mimeTypeInfo, restarter)); if (desc != null) { + LSPBindings b = LanguageServerProviderAccessor.getINSTANCE().getBindings(desc); + if (b != null) { + return b; + } try { LanguageClientImpl lci = new LanguageClientImpl(); InputStream in = LanguageServerProviderAccessor.getINSTANCE().getInputStream(desc); @@ -140,8 +144,9 @@ public class LSPBindings { launcher.startListening(); LanguageServer server = launcher.getRemoteProxy(); InitializeResult result = initServer(p, server, prj.getProjectDirectory()); //XXX: what if a different root is expected - LSPBindings b = new LSPBindings(server, result, LanguageServerProviderAccessor.getINSTANCE().getProcess(desc)); + b = new LSPBindings(server, result, LanguageServerProviderAccessor.getINSTANCE().getProcess(desc)); lci.setBindings(b); + LanguageServerProviderAccessor.getINSTANCE().setBindings(desc, b); return b; } catch (InterruptedException | ExecutionException ex) { LOG.log(Level.WARNING, null, ex); diff --git a/ide/lsp.client/src/org/netbeans/modules/lsp/client/LanguageServerProviderAccessor.java b/ide/lsp.client/src/org/netbeans/modules/lsp/client/LanguageServerProviderAccessor.java index 42d7234..e62d4e6 100644 --- a/ide/lsp.client/src/org/netbeans/modules/lsp/client/LanguageServerProviderAccessor.java +++ b/ide/lsp.client/src/org/netbeans/modules/lsp/client/LanguageServerProviderAccessor.java @@ -51,4 +51,6 @@ public abstract class LanguageServerProviderAccessor { public abstract InputStream getInputStream(LanguageServerDescription desc); public abstract OutputStream getOutputStream(LanguageServerDescription desc); public abstract Process getProcess(LanguageServerDescription desc); +public abstract LSPBindings getBindings
[netbeans] branch master updated: Use current platform for OpenJDK tests
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.git The following commit(s) were added to refs/heads/master by this push: new 6f946e1 Use current platform for OpenJDK tests new ea387ce Merge pull request #2069 from jlahoda/use-current-platform-for-openjdk-tests 6f946e1 is described below commit 6f946e17ecfe0769a73e389a39bdc4fca06f6f58 Author: Jan Lahoda AuthorDate: Wed Apr 8 07:58:16 2020 +0200 Use current platform for OpenJDK tests --- .../openjdk/project/ClassPathProviderImpl.java | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/java/java.openjdk.project/src/org/netbeans/modules/java/openjdk/project/ClassPathProviderImpl.java b/java/java.openjdk.project/src/org/netbeans/modules/java/openjdk/project/ClassPathProviderImpl.java index 2c6a943..c233277 100644 --- a/java/java.openjdk.project/src/org/netbeans/modules/java/openjdk/project/ClassPathProviderImpl.java +++ b/java/java.openjdk.project/src/org/netbeans/modules/java/openjdk/project/ClassPathProviderImpl.java @@ -29,6 +29,7 @@ import java.net.URL; import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.util.concurrent.atomic.AtomicBoolean; import java.util.jar.JarEntry; import java.util.jar.JarOutputStream; import java.util.logging.Level; @@ -40,6 +41,11 @@ import javax.swing.event.ChangeListener; import org.netbeans.api.java.classpath.ClassPath; import org.netbeans.api.java.classpath.GlobalPathRegistry; import org.netbeans.api.java.classpath.JavaClassPathConstants; +import org.netbeans.api.java.platform.JavaPlatform; +import org.netbeans.api.java.source.ClasspathInfo; +import org.netbeans.api.java.source.CompilationController; +import org.netbeans.api.java.source.JavaSource; +import org.netbeans.api.java.source.Task; import org.netbeans.api.project.libraries.Library; import org.netbeans.api.project.libraries.LibraryManager; import org.netbeans.modules.java.openjdk.project.JDKProject.Root; @@ -70,6 +76,7 @@ public class ClassPathProviderImpl implements ClassPathProvider { "${outputRoot}/corba/dist/lib/classes.jar", }; +private final AtomicBoolean initialScanDone = new AtomicBoolean(); private final ClassPath bootCP; private final ClassPath moduleBootCP; private final ClassPath compileCP; @@ -214,8 +221,12 @@ public class ClassPathProviderImpl implements ClassPathProvider { } else { if (file.isFolder()) return null; -if (ClassPath.BOOT.equals(type)) { -return ClassPath.EMPTY; +if (ClassPath.BOOT.equals(type) || JavaClassPathConstants.MODULE_BOOT_PATH.equals(type)) { +if (initialScanDone.get()) { +return ClassPath.EMPTY; +} else { +return null; +} } else if (ClassPath.COMPILE.equals(type) || JavaClassPathConstants.MODULE_COMPILE_PATH.equals(type) || JavaClassPathConstants.MODULE_CLASS_PATH.equals(type)) { @@ -241,6 +252,13 @@ public class ClassPathProviderImpl implements ClassPathProvider { if (REGISTER_TESTS_AS_JAVA) GlobalPathRegistry.getDefault().register(ClassPath.SOURCE, new ClassPath[] {testsRegCP}); GlobalPathRegistry.getDefault().register(TEST_SOURCE, new ClassPath[] {testsRegCP}); +try { +JavaSource.create(ClasspathInfo.create(ClassPath.EMPTY, testsCompileCP, ClassPath.EMPTY)) + .runWhenScanFinished(cc -> initialScanDone.set(true), true); +} catch (IOException ex) { +Logger.getLogger(ClassPathProviderImpl.class.getName()) + .log(Level.FINE, null, ex); +} } public void unregisterClassPaths() { - 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: [TRAVIS] Retry webcommon javascript2.jquery module
This is an automated email from the ASF dual-hosted git repository. hectorespert 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 a05bfc2 [TRAVIS] Retry webcommon javascript2.jquery module new a6db3da Merge pull request #2045 from hectorespert/retry_webcommon_javascript2_jquery a05bfc2 is described below commit a05bfc229bfb98c3f98b953c70adcd6b59dd8f38 Author: Hector Espert AuthorDate: Tue Mar 24 20:58:51 2020 +0100 [TRAVIS] Retry webcommon javascript2.jquery module --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2ee7585..8e2c310 100644 --- a/.travis.yml +++ b/.travis.yml @@ -520,7 +520,7 @@ matrix: - hide-logs.sh ant $OPTS -f webcommon/javascript2.extdoc test - hide-logs.sh ant $OPTS -f webcommon/javascript2.extjs test - hide-logs.sh ant $OPTS -f webcommon/javascript2.jade test -- hide-logs.sh ant $OPTS -f webcommon/javascript2.jquery test +- travis_retry hide-logs.sh ant $OPTS -f webcommon/javascript2.jquery test - hide-logs.sh ant $OPTS -f webcommon/javascript2.jsdoc test - hide-logs.sh ant $OPTS -f webcommon/javascript2.json test - hide-logs.sh ant $OPTS -f webcommon/javascript2.knockout test - 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-2543] File names clipped in Files and Projects tabs
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.git The following commit(s) were added to refs/heads/master by this push: new 15f65fc [NETBEANS-2543] File names clipped in Files and Projects tabs new 56b9146 Merge pull request #2025 from eirikbakke/NETBEANS-2543 15f65fc is described below commit 15f65fc14730de691fcae4f7fc1bc09f46b02752 Author: Eirik Bakke AuthorDate: Tue Mar 17 04:03:03 2020 -0400 [NETBEANS-2543] File names clipped in Files and Projects tabs This patch fixes a bug where some file names in the "Projects" and "Files" tabs would appear truncated on fractional HiDPI scalings (e.g. 150%) on Windows. It probably also improves text measurement on an integral 200% scaling as well, possibly on MacOS as well. The problem was in org.openide.awt.HtmlRenderer and the associated HtmlRendererImpl class, which creates a fake Graphics2D object for the purposes of calculating text dimensions in getPreferredWidth. This Graphics2D object was not properly prepared with a HiDPI transform for its FontRenderContext, leading to inaccurate text measurement. Moreover, the GraphicsConfiguration was not retrieved for the correct monitor (in multi-monitor setups). These problems have been fixed. Since the scratch Graphics2D object is now specific to each monitor (each can have a different HiDPI scaling), it is now cached at the HtmlRenderer level rather than at the previous global (static) level. An alternative approach would have been to pass a FontRenderContext instead of a full Graphics2D during off-screen text measurements. This would complicate the HtmlRenderer._renderHTML method too much, however. --- .../src/org/openide/awt/HtmlRenderer.java | 2 +- .../src/org/openide/awt/HtmlRendererImpl.java | 69 -- 2 files changed, 53 insertions(+), 18 deletions(-) diff --git a/platform/openide.awt/src/org/openide/awt/HtmlRenderer.java b/platform/openide.awt/src/org/openide/awt/HtmlRenderer.java index 5ada2d9..493cbe1 100644 --- a/platform/openide.awt/src/org/openide/awt/HtmlRenderer.java +++ b/platform/openide.awt/src/org/openide/awt/HtmlRenderer.java @@ -339,7 +339,7 @@ public final class HtmlRenderer { // #54257 - on macosx + chinese/japanese fonts, the getStringBounds() method returns bad value wid = fm.stringWidth(s); } else { -wid = (int)fm.getStringBounds(s, g).getWidth(); +wid = (int) Math.ceil(fm.getStringBounds(s, g).getWidth()); } if (paint) { diff --git a/platform/openide.awt/src/org/openide/awt/HtmlRendererImpl.java b/platform/openide.awt/src/org/openide/awt/HtmlRendererImpl.java index 5da355d..4028a0f 100644 --- a/platform/openide.awt/src/org/openide/awt/HtmlRendererImpl.java +++ b/platform/openide.awt/src/org/openide/awt/HtmlRendererImpl.java @@ -21,6 +21,9 @@ package org.openide.awt; import java.awt.*; import java.awt.event.*; +import java.awt.image.BufferedImage; +import java.awt.image.ColorModel; +import java.awt.image.WritableRaster; import java.beans.PropertyChangeListener; import java.beans.VetoableChangeListener; @@ -60,7 +63,7 @@ class HtmlRendererImpl extends JLabel implements HtmlRenderer.Renderer { //For experimentation - holding the graphics object may be the source of some //strange painting problems on Apple private static boolean noCacheGraphics = Boolean.getBoolean("nb.renderer.nocache"); //NOI18N -private static Reference scratchGraphics = null; +private ScratchGraphics cachedScratchGraphics = null; private boolean centered = false; private boolean parentFocused = false; private Boolean html = null; @@ -593,28 +596,60 @@ class HtmlRendererImpl extends JLabel implements HtmlRenderer.Renderer { return result; } -/** Fetch a scratch graphics object for calculating preferred sizes while - * offscreen */ -private static final Graphics2D scratchGraphics() { -Graphics2D result = null; +private static final class ScratchGraphics { +private final GraphicsConfiguration configuration; +private Reference graphics = new SoftReference<>(null); -if (scratchGraphics != null) { -result = scratchGraphics.get(); - -if (result != null) { -result.setClip(null); //just in case somebody did something nasty +public ScratchGraphics(GraphicsConfiguration configuration) { +if (configuration == null) { +throw new NullPointerException(); } +this.configuration = configuration; } -if (result == null) { -result = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDefaultConfiguration() -.createCompatibleImage(1
[jira] [Updated] (NETBEANS-4138) Help add a feature to the site
[ https://issues.apache.org/jira/browse/NETBEANS-4138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stevejones updated NETBEANS-4138: - Description: Hello to all. I need your help. I create my own site and cannot add one function to it. When a guest visits the site he is invited to download a mobile application. How to make the system itself determine the user’s operating system and offer him the corresponding application. Here’s how this feature is implemented [here|http://iq-option.trade] (was: Hello to all. I need your help. I create my own site and cannot add one function to it. When a guest visits the site he is invited to download a mobile application. How to make the system itself determine the user’s operating system and offer him the corresponding application. Here’s how this feature is implemented [url=[https://iq-option.trade/]]here[/url]) > Help add a feature to the site > -- > > Key: NETBEANS-4138 > URL: https://issues.apache.org/jira/browse/NETBEANS-4138 > Project: NetBeans > Issue Type: Task >Reporter: Stevejones >Priority: Major > > Hello to all. I need your help. I create my own site and cannot add one > function to it. When a guest visits the site he is invited to download a > mobile application. How to make the system itself determine the user’s > operating system and offer him the corresponding application. Here’s how this > feature is implemented [here|http://iq-option.trade] -- 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-4138) Help add a feature to the site
[ https://issues.apache.org/jira/browse/NETBEANS-4138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stevejones updated NETBEANS-4138: - Description: Hello to all. I need your help. I create my own site and cannot add one function to it. When a guest visits the site he is invited to download a mobile application. How to make the system itself determine the user’s operating system and offer him the corresponding application. Here’s how this feature is implemented [url=[https://iq-option.trade/]]here[/url] (was: Hello to all. I need your help. I create my own site and cannot add one function to it. When a guest visits the site he is invited to download a mobile application. How to make the system itself determine the user’s operating system and offer him the corresponding application. Here’s how this feature is implemented [https://iq-option.trade/]) > Help add a feature to the site > -- > > Key: NETBEANS-4138 > URL: https://issues.apache.org/jira/browse/NETBEANS-4138 > Project: NetBeans > Issue Type: Task >Reporter: Stevejones >Priority: Major > > Hello to all. I need your help. I create my own site and cannot add one > function to it. When a guest visits the site he is invited to download a > mobile application. How to make the system itself determine the user’s > operating system and offer him the corresponding application. Here’s how this > feature is implemented [url=[https://iq-option.trade/]]here[/url] -- 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-4138) Help add a feature to the site
[ https://issues.apache.org/jira/browse/NETBEANS-4138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stevejones updated NETBEANS-4138: - Description: Hello to all. I need your help. I create my own site and cannot add one function to it. When a guest visits the site he is invited to download a mobile application. How to make the system itself determine the user’s operating system and offer him the corresponding application. Here’s how this feature is implemented [https://iq-option.trade/] (was: Hello to all. I need your help. I create my own site and cannot add one function to it. When a guest visits the site he is invited to download a mobile application. How to make the system itself determine the user’s operating system and offer him the corresponding application. Here’s how this feature is implemented [here|[https://iq-option.trade/]]) > Help add a feature to the site > -- > > Key: NETBEANS-4138 > URL: https://issues.apache.org/jira/browse/NETBEANS-4138 > Project: NetBeans > Issue Type: Task >Reporter: Stevejones >Priority: Major > > Hello to all. I need your help. I create my own site and cannot add one > function to it. When a guest visits the site he is invited to download a > mobile application. How to make the system itself determine the user’s > operating system and offer him the corresponding application. Here’s how this > feature is implemented [https://iq-option.trade/] -- 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-4138) Help add a feature to the site
Stevejones created NETBEANS-4138: Summary: Help add a feature to the site Key: NETBEANS-4138 URL: https://issues.apache.org/jira/browse/NETBEANS-4138 Project: NetBeans Issue Type: Task Reporter: Stevejones Hello to all. I need your help. I create my own site and cannot add one function to it. When a guest visits the site he is invited to download a mobile application. How to make the system itself determine the user’s operating system and offer him the corresponding application. Here’s how this feature is implemented [here|[https://iq-option.trade/]] -- 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-4137) Add Glassfish Server "Download Now" gives "Invalid URL null"
David Gradwell created NETBEANS-4137: Summary: Add Glassfish Server "Download Now" gives "Invalid URL null" Key: NETBEANS-4137 URL: https://issues.apache.org/jira/browse/NETBEANS-4137 Project: NetBeans Issue Type: Bug Components: serverplugins - GlassFish Affects Versions: 12.0 Environment: Windows 10. Reporter: David Gradwell Steps to recreate: 1. Download new copy of Apache NetBeans 12.0 beta 2 and install on Windows 10. 2. Try to create a new Maven Web Application. 3. When it gets to Settings (Note "No server selected",) click Add. 4. Choose Glassfish. 5. On Server location choose "Glassfish Server 5.1.0" to download, click box and "Download now". Gives "Invalid URL null". -- 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-4136) CMD+/ does not comment/uncoment selected block in Mac
Juan Miguel Escribano created NETBEANS-4136: --- Summary: CMD+/ does not comment/uncoment selected block in Mac Key: NETBEANS-4136 URL: https://issues.apache.org/jira/browse/NETBEANS-4136 Project: NetBeans Issue Type: Bug Affects Versions: 12.0, 11.3 Reporter: Juan Miguel Escribano While Shift+CMD+C do the work CMD+/ in Mac (Don't know in Linux and Windows) is triggered with CMD+Shift+7 which is the same shortcut that opens the class properties panel. There is a collision and Properties panel wins. -- 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-4135) FlatLaf on Windows does not render all Unicode characters
Karl Tauber created NETBEANS-4135: - Summary: FlatLaf on Windows does not render all Unicode characters Key: NETBEANS-4135 URL: https://issues.apache.org/jira/browse/NETBEANS-4135 Project: NetBeans Issue Type: Bug Components: FlatLaf Affects Versions: 11.3 Reporter: Karl Tauber Assignee: Karl Tauber reported here [https://github.com/JFormDesigner/FlatLaf/issues/81] On Windows, FlatLaf components can not render all Unicode characters because the used font "Segoe UI" does not contain all characters and FlatLaf does not create a Swing "composite font", which could render all Unicode characters. On Linux, FlatLaf already creates a composite font. On Mac, the used font seems to contain all (or more) Unicode characters. -- 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-4134) Maven repository indexing appears to be broken
[ https://issues.apache.org/jira/browse/NETBEANS-4134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17079082#comment-17079082 ] Luca Mambretti commented on NETBEANS-4134: -- I took the liberty of setting this to Critical since without indexes many things behave rather awkwardly although nothing really breaks. > Maven repository indexing appears to be broken > -- > > Key: NETBEANS-4134 > URL: https://issues.apache.org/jira/browse/NETBEANS-4134 > Project: NetBeans > Issue Type: Bug > Components: projects - Maven >Affects Versions: 12.0 > Environment: Product Version: Apache NetBeans IDE 12.0-beta2 > Java: 11; Java HotSpot(TM) 64-Bit Server VM 11+28 > Runtime: Java(TM) SE Runtime Environment 11+28 > System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb) > User directory: > C:\Users\luca.mambretti.BZDOMAIN\AppData\Roaming\NetBeans\12.0-beta2 > Cache directory: > C:\Users\luca.mambretti.BZDOMAIN\AppData\Local\NetBeans\Cache\12.0-beta2 >Reporter: Luca Mambretti >Priority: Critical > > During maven indexing test case i got the following message in the > messages.log file while manually invoking the maven index function: > > The test case I was running is > h1. Set up frequency of index updates II Test Case > > during the previous test case there was no indexing activity recorded. > > Things worth noting: > # I normally have a mirror for central in my settings.xml file but I've > tried removing it with no changes. > # I had a local maven installation setup as for previous test cases, by > setting this back to the bundled installation the problem appears to be > fixed, but indexes are still not downloaded. > # I've added the following to the conf file to try and see more logs: > -J-Dorg.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.level=400 > > Following the error message I've got in my messages.log > > FINE [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: > Indexing Remote Repository: central > INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: could > not (re-)index central > java.util.NoSuchElementException > at org.eclipse.sisu.inject.LocatedBeans$Itr.next(LocatedBeans.java:141) > at org.eclipse.sisu.inject.LocatedBeans$Itr.next(LocatedBeans.java:1) > at > org.eclipse.sisu.plexus.DefaultPlexusBeans$Itr.next(DefaultPlexusBeans.java:76) > at > org.eclipse.sisu.plexus.DefaultPlexusBeans$Itr.next(DefaultPlexusBeans.java:1) > at > org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263) > Caused: > org.codehaus.plexus.component.repository.exception.ComponentLookupException: > java.util.NoSuchElementException > role: org.apache.maven.settings.crypto.SettingsDecrypter > roleHint: > at > org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:267) > at > org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255) > at > org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:249) > at > org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexLoadedRepo(NexusRepositoryIndexerImpl.java:478) > Caused: java.io.IOException: could not find protocol handler for > [https://repo.maven.apache.org/maven2/] > at > org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexLoadedRepo(NexusRepositoryIndexerImpl.java:609) > at > org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.access$200(NexusRepositoryIndexerImpl.java:122) > [catch] at > org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$3.run(NexusRepositoryIndexerImpl.java:659) > at > org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$3.run(NexusRepositoryIndexerImpl.java:652) > at > org.netbeans.modules.openide.util.DefaultMutexImplementation.writeAccess(DefaultMutexImplementation.java:229) > at org.openide.util.Mutex.writeAccess(Mutex.java:246) > at > org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexRepo(NexusRepositoryIndexerImpl.java:652) > at > org.netbeans.modules.maven.indexer.api.RepositoryIndexer.indexRepo(RepositoryIndexer.java:42) > at > org.netbeans.modules.maven.ProjectOpenedHookImpl$2.run(ProjectOpenedHookImpl.java:207) > 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-
[jira] [Updated] (NETBEANS-4134) Maven repository indexing appears to be broken
[ https://issues.apache.org/jira/browse/NETBEANS-4134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Luca Mambretti updated NETBEANS-4134: - Priority: Critical (was: Major) > Maven repository indexing appears to be broken > -- > > Key: NETBEANS-4134 > URL: https://issues.apache.org/jira/browse/NETBEANS-4134 > Project: NetBeans > Issue Type: Bug > Components: projects - Maven >Affects Versions: 12.0 > Environment: Product Version: Apache NetBeans IDE 12.0-beta2 > Java: 11; Java HotSpot(TM) 64-Bit Server VM 11+28 > Runtime: Java(TM) SE Runtime Environment 11+28 > System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb) > User directory: > C:\Users\luca.mambretti.BZDOMAIN\AppData\Roaming\NetBeans\12.0-beta2 > Cache directory: > C:\Users\luca.mambretti.BZDOMAIN\AppData\Local\NetBeans\Cache\12.0-beta2 >Reporter: Luca Mambretti >Priority: Critical > > During maven indexing test case i got the following message in the > messages.log file while manually invoking the maven index function: > > The test case I was running is > h1. Set up frequency of index updates II Test Case > > during the previous test case there was no indexing activity recorded. > > Things worth noting: > # I normally have a mirror for central in my settings.xml file but I've > tried removing it with no changes. > # I had a local maven installation setup as for previous test cases, by > setting this back to the bundled installation the problem appears to be > fixed, but indexes are still not downloaded. > # I've added the following to the conf file to try and see more logs: > -J-Dorg.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.level=400 > > Following the error message I've got in my messages.log > > FINE [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: > Indexing Remote Repository: central > INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: could > not (re-)index central > java.util.NoSuchElementException > at org.eclipse.sisu.inject.LocatedBeans$Itr.next(LocatedBeans.java:141) > at org.eclipse.sisu.inject.LocatedBeans$Itr.next(LocatedBeans.java:1) > at > org.eclipse.sisu.plexus.DefaultPlexusBeans$Itr.next(DefaultPlexusBeans.java:76) > at > org.eclipse.sisu.plexus.DefaultPlexusBeans$Itr.next(DefaultPlexusBeans.java:1) > at > org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263) > Caused: > org.codehaus.plexus.component.repository.exception.ComponentLookupException: > java.util.NoSuchElementException > role: org.apache.maven.settings.crypto.SettingsDecrypter > roleHint: > at > org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:267) > at > org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255) > at > org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:249) > at > org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexLoadedRepo(NexusRepositoryIndexerImpl.java:478) > Caused: java.io.IOException: could not find protocol handler for > [https://repo.maven.apache.org/maven2/] > at > org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexLoadedRepo(NexusRepositoryIndexerImpl.java:609) > at > org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.access$200(NexusRepositoryIndexerImpl.java:122) > [catch] at > org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$3.run(NexusRepositoryIndexerImpl.java:659) > at > org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$3.run(NexusRepositoryIndexerImpl.java:652) > at > org.netbeans.modules.openide.util.DefaultMutexImplementation.writeAccess(DefaultMutexImplementation.java:229) > at org.openide.util.Mutex.writeAccess(Mutex.java:246) > at > org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexRepo(NexusRepositoryIndexerImpl.java:652) > at > org.netbeans.modules.maven.indexer.api.RepositoryIndexer.indexRepo(RepositoryIndexer.java:42) > at > org.netbeans.modules.maven.ProjectOpenedHookImpl$2.run(ProjectOpenedHookImpl.java:207) > 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/M
[jira] [Updated] (NETBEANS-4134) Maven repository indexing appears to be broken
[ https://issues.apache.org/jira/browse/NETBEANS-4134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Luca Mambretti updated NETBEANS-4134: - Description: During maven indexing test case i got the following message in the messages.log file while manually invoking the maven index function: The test case I was running is h1. Set up frequency of index updates II Test Case during the previous test case there was no indexing activity recorded. Things worth noting: # I normally have a mirror for central in my settings.xml file but I've tried removing it with no changes. # I had a local maven installation setup as for previous test cases, by setting this back to the bundled installation the problem appears to be fixed, but indexes are still not downloaded. # I've added the following to the conf file to try and see more logs: -J-Dorg.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.level=400 Following the error message I've got in my messages.log FINE [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing Remote Repository: central INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: could not (re-)index central java.util.NoSuchElementException at org.eclipse.sisu.inject.LocatedBeans$Itr.next(LocatedBeans.java:141) at org.eclipse.sisu.inject.LocatedBeans$Itr.next(LocatedBeans.java:1) at org.eclipse.sisu.plexus.DefaultPlexusBeans$Itr.next(DefaultPlexusBeans.java:76) at org.eclipse.sisu.plexus.DefaultPlexusBeans$Itr.next(DefaultPlexusBeans.java:1) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263) Caused: org.codehaus.plexus.component.repository.exception.ComponentLookupException: java.util.NoSuchElementException role: org.apache.maven.settings.crypto.SettingsDecrypter roleHint: at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:267) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:249) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexLoadedRepo(NexusRepositoryIndexerImpl.java:478) Caused: java.io.IOException: could not find protocol handler for [https://repo.maven.apache.org/maven2/] at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexLoadedRepo(NexusRepositoryIndexerImpl.java:609) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.access$200(NexusRepositoryIndexerImpl.java:122) [catch] at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$3.run(NexusRepositoryIndexerImpl.java:659) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$3.run(NexusRepositoryIndexerImpl.java:652) at org.netbeans.modules.openide.util.DefaultMutexImplementation.writeAccess(DefaultMutexImplementation.java:229) at org.openide.util.Mutex.writeAccess(Mutex.java:246) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexRepo(NexusRepositoryIndexerImpl.java:652) at org.netbeans.modules.maven.indexer.api.RepositoryIndexer.indexRepo(RepositoryIndexer.java:42) at org.netbeans.modules.maven.ProjectOpenedHookImpl$2.run(ProjectOpenedHookImpl.java:207) 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) was: During maven indexing test case i got the following message in the messages.log file while manually invoking the maven index function: The test case I was running is h1. Set up frequency of index updates II Test Case during the previous test case there was no indexing activity recorded. Things worth noting: # I normally have a mirror for central in my settings.xml file but I've tried removing it with no changes. # I had a local maven installation setup as for previous test cases, by setting this back to the bundled installation the problem appears to be fixed. # I've added the following to the conf file to try and see more logs: -J-Dorg.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.level=400 Following the error message I've got in my messages.log FINE [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing Remote Repository: central INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: could not (re-)index central java.util.NoSuchElementException at org.eclipse.sisu.inject.LocatedBeans$Itr.next(LocatedBeans.java:141) at org.eclipse.sisu.inject.LocatedBeans$Itr.next(LocatedBeans.java:1) at org.eclipse.sisu.plexus.DefaultPlexusBeans$Itr.next(DefaultPlexusBeans.java:76) at org.eclipse.sisu.plexus.DefaultPlexusBeans$Itr.next(DefaultPlexusBeans.java:1) at org.codeh
[jira] [Updated] (NETBEANS-4134) Maven repository indexing appears to be broken
[ https://issues.apache.org/jira/browse/NETBEANS-4134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Luca Mambretti updated NETBEANS-4134: - Description: During maven indexing test case i got the following message in the messages.log file while manually invoking the maven index function: The test case I was running is h1. Set up frequency of index updates II Test Case during the previous test case there was no indexing activity recorded. Things worth noting: # I normally have a mirror for central in my settings.xml file but I've tried removing it with no changes. # I had a local maven installation setup as for previous test cases, by setting this back to the bundled installation the problem appears to be fixed. # I've added the following to the conf file to try and see more logs: -J-Dorg.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.level=400 Following the error message I've got in my messages.log FINE [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing Remote Repository: central INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: could not (re-)index central java.util.NoSuchElementException at org.eclipse.sisu.inject.LocatedBeans$Itr.next(LocatedBeans.java:141) at org.eclipse.sisu.inject.LocatedBeans$Itr.next(LocatedBeans.java:1) at org.eclipse.sisu.plexus.DefaultPlexusBeans$Itr.next(DefaultPlexusBeans.java:76) at org.eclipse.sisu.plexus.DefaultPlexusBeans$Itr.next(DefaultPlexusBeans.java:1) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263) Caused: org.codehaus.plexus.component.repository.exception.ComponentLookupException: java.util.NoSuchElementException role: org.apache.maven.settings.crypto.SettingsDecrypter roleHint: at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:267) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:249) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexLoadedRepo(NexusRepositoryIndexerImpl.java:478) Caused: java.io.IOException: could not find protocol handler for [https://repo.maven.apache.org/maven2/] at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexLoadedRepo(NexusRepositoryIndexerImpl.java:609) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.access$200(NexusRepositoryIndexerImpl.java:122) [catch] at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$3.run(NexusRepositoryIndexerImpl.java:659) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$3.run(NexusRepositoryIndexerImpl.java:652) at org.netbeans.modules.openide.util.DefaultMutexImplementation.writeAccess(DefaultMutexImplementation.java:229) at org.openide.util.Mutex.writeAccess(Mutex.java:246) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexRepo(NexusRepositoryIndexerImpl.java:652) at org.netbeans.modules.maven.indexer.api.RepositoryIndexer.indexRepo(RepositoryIndexer.java:42) at org.netbeans.modules.maven.ProjectOpenedHookImpl$2.run(ProjectOpenedHookImpl.java:207) 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) was: During maven indexing test case i got the following message in the messages.log file while manually invoking the maven index function: The test case I was running is h1. Set up frequency of index updates II Test Case during the previous test case there was no indexing activity recorded. Things worth noting: # I normally have a mirror for central in my settings.xml file but I've tried removing it with no changes. # I've added the following to the conf file to try and see more logs: -J-Dorg.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.level=400 Following the error message I've got in my messages.log FINE [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing Remote Repository: central INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: could not (re-)index central java.util.NoSuchElementException at org.eclipse.sisu.inject.LocatedBeans$Itr.next(LocatedBeans.java:141) at org.eclipse.sisu.inject.LocatedBeans$Itr.next(LocatedBeans.java:1) at org.eclipse.sisu.plexus.DefaultPlexusBeans$Itr.next(DefaultPlexusBeans.java:76) at org.eclipse.sisu.plexus.DefaultPlexusBeans$Itr.next(DefaultPlexusBeans.java:1) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263) Caused: org.codehaus.plexus.component.repository.exception.ComponentLookupException: java.util.NoSuchElementException
[jira] [Created] (NETBEANS-4134) Maven repository indexing appears to be broken
Luca Mambretti created NETBEANS-4134: Summary: Maven repository indexing appears to be broken Key: NETBEANS-4134 URL: https://issues.apache.org/jira/browse/NETBEANS-4134 Project: NetBeans Issue Type: Bug Components: projects - Maven Affects Versions: 12.0 Environment: Product Version: Apache NetBeans IDE 12.0-beta2 Java: 11; Java HotSpot(TM) 64-Bit Server VM 11+28 Runtime: Java(TM) SE Runtime Environment 11+28 System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb) User directory: C:\Users\luca.mambretti.BZDOMAIN\AppData\Roaming\NetBeans\12.0-beta2 Cache directory: C:\Users\luca.mambretti.BZDOMAIN\AppData\Local\NetBeans\Cache\12.0-beta2 Reporter: Luca Mambretti During maven indexing test case i got the following message in the messages.log file while manually invoking the maven index function: The test case I was running is h1. Set up frequency of index updates II Test Case during the previous test case there was no indexing activity recorded. Things worth noting: # I normally have a mirror for central in my settings.xml file but I've tried removing it with no changes. # I've added the following to the conf file to try and see more logs: -J-Dorg.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.level=400 Following the error message I've got in my messages.log FINE [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing Remote Repository: central INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: could not (re-)index central java.util.NoSuchElementException at org.eclipse.sisu.inject.LocatedBeans$Itr.next(LocatedBeans.java:141) at org.eclipse.sisu.inject.LocatedBeans$Itr.next(LocatedBeans.java:1) at org.eclipse.sisu.plexus.DefaultPlexusBeans$Itr.next(DefaultPlexusBeans.java:76) at org.eclipse.sisu.plexus.DefaultPlexusBeans$Itr.next(DefaultPlexusBeans.java:1) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263) Caused: org.codehaus.plexus.component.repository.exception.ComponentLookupException: java.util.NoSuchElementException role: org.apache.maven.settings.crypto.SettingsDecrypter roleHint: at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:267) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:249) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexLoadedRepo(NexusRepositoryIndexerImpl.java:478) Caused: java.io.IOException: could not find protocol handler for https://repo.maven.apache.org/maven2/ at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexLoadedRepo(NexusRepositoryIndexerImpl.java:609) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.access$200(NexusRepositoryIndexerImpl.java:122) [catch] at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$3.run(NexusRepositoryIndexerImpl.java:659) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$3.run(NexusRepositoryIndexerImpl.java:652) at org.netbeans.modules.openide.util.DefaultMutexImplementation.writeAccess(DefaultMutexImplementation.java:229) at org.openide.util.Mutex.writeAccess(Mutex.java:246) at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexRepo(NexusRepositoryIndexerImpl.java:652) at org.netbeans.modules.maven.indexer.api.RepositoryIndexer.indexRepo(RepositoryIndexer.java:42) at org.netbeans.modules.maven.ProjectOpenedHookImpl$2.run(ProjectOpenedHookImpl.java:207) 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