[jira] [Updated] (NETBEANS-5151) update java.source in the project properties
[ https://issues.apache.org/jira/browse/NETBEANS-5151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ASF GitHub Bot updated NETBEANS-5151: - Labels: pull-request-available (was: ) > update java.source in the project properties > > > Key: NETBEANS-5151 > URL: https://issues.apache.org/jira/browse/NETBEANS-5151 > Project: NetBeans > Issue Type: Improvement >Reporter: Brad Walker >Assignee: Brad Walker >Priority: Major > Labels: pull-request-available > Time Spent: 10m > Remaining Estimate: 0h > > There are hundreds of warnings that are generated because the java.source > specifies version 1.6 in the project.properties files. The warning looks like > this: > {code:java} > ... > -compile-ant: > [javac] Compiling 2 source files to > /home/bwalker/src/netbeans/ergonomics/ide.ergonomics/build/classes > [repeat] warning: [options] bootstrap class path not set in conjunction with > -source 1.6 >[repeat] 1 warning > [copy] Copying 6 files to > /home/bwalker/src/netbeans/ergonomics/ide.ergonomics/build/classes > -generate-proxies: > ... > {code} > I've cleaned this up. There are still a few of these warnings left. I will > clean them up when I have time to go in and inspect each one individually. > Since Java 8 is our default, cleaning these up makes those warnings go away. -- 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-2515) cleanup the build issues
[ https://issues.apache.org/jira/browse/NETBEANS-2515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17249505#comment-17249505 ] Brad Walker commented on NETBEANS-2515: --- NETBEANS-5151 - update java.source in the project properties > cleanup the build issues > > > Key: NETBEANS-2515 > URL: https://issues.apache.org/jira/browse/NETBEANS-2515 > Project: NetBeans > Issue Type: Improvement >Reporter: Brad Walker >Assignee: Brad Walker >Priority: Major > > The build process has a lot of errors/warnings. > I've created this Jira to track all the issues related to cleaning up > The first canidate is: NETBEANS-2514 -- 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-5151) update java.source in the project properties
[ https://issues.apache.org/jira/browse/NETBEANS-5151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Brad Walker updated NETBEANS-5151: -- Description: There are hundreds of warnings that are generated because the java.source specifies version 1.6 in the project.properties files. The warning looks like this: {code:java} ... -compile-ant: [javac] Compiling 2 source files to /home/bwalker/src/netbeans/ergonomics/ide.ergonomics/build/classes [repeat] warning: [options] bootstrap class path not set in conjunction with -source 1.6 [repeat] 1 warning [copy] Copying 6 files to /home/bwalker/src/netbeans/ergonomics/ide.ergonomics/build/classes -generate-proxies: ... {code} I've cleaned this up. There are still a few of these warnings left. I will clean them up when I have time to go in and inspect each one individually. Since Java 8 is our default, cleaning these up makes those warnings go away. was: There are hundreds of warnings that are generated because the java.source specifies version 1.6 in the project.properties files. The warning looks like this: {code:java} ... -compile-ant: [javac] Compiling 2 source files to /home/bwalker/src/netbeans/ergonomics/ide.ergonomics/build/classes [repeat] warning: [options] bootstrap class path not set in conjunction with -source 1.6 [repeat] 1 warning [copy] Copying 6 files to /home/bwalker/src/netbeans/ergonomics/ide.ergonomics/build/classes -generate-proxies: ... {code} I've cleaned this up. There are still a few of these warnings left. I will clean them up when I have time to go in and inspect each one individually. > update java.source in the project properties > > > Key: NETBEANS-5151 > URL: https://issues.apache.org/jira/browse/NETBEANS-5151 > Project: NetBeans > Issue Type: Improvement >Reporter: Brad Walker >Assignee: Brad Walker >Priority: Major > > There are hundreds of warnings that are generated because the java.source > specifies version 1.6 in the project.properties files. The warning looks like > this: > {code:java} > ... > -compile-ant: > [javac] Compiling 2 source files to > /home/bwalker/src/netbeans/ergonomics/ide.ergonomics/build/classes > [repeat] warning: [options] bootstrap class path not set in conjunction with > -source 1.6 >[repeat] 1 warning > [copy] Copying 6 files to > /home/bwalker/src/netbeans/ergonomics/ide.ergonomics/build/classes > -generate-proxies: > ... > {code} > I've cleaned this up. There are still a few of these warnings left. I will > clean them up when I have time to go in and inspect each one individually. > Since Java 8 is our default, cleaning these up makes those warnings go away. -- 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-5151) update java.source in the project properties
Brad Walker created NETBEANS-5151: - Summary: update java.source in the project properties Key: NETBEANS-5151 URL: https://issues.apache.org/jira/browse/NETBEANS-5151 Project: NetBeans Issue Type: Improvement Reporter: Brad Walker Assignee: Brad Walker There are hundreds of warnings that are generated because the java.source specifies version 1.6 in the project.properties files. The warning looks like this: {code:java} ... -compile-ant: [javac] Compiling 2 source files to /home/bwalker/src/netbeans/ergonomics/ide.ergonomics/build/classes {color:yellow} [repeat] warning: [options] bootstrap class path not set in conjunction with -source 1.6{color} [repeat] 1 warning [copy] Copying 6 files to /home/bwalker/src/netbeans/ergonomics/ide.ergonomics/build/classes -generate-proxies: ... {code} I've cleaned this up. There are still a few of these warnings left. I will clean them up when I have time to go in and inspect each one individually. -- 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-5151) update java.source in the project properties
[ https://issues.apache.org/jira/browse/NETBEANS-5151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Brad Walker updated NETBEANS-5151: -- Description: There are hundreds of warnings that are generated because the java.source specifies version 1.6 in the project.properties files. The warning looks like this: {code:java} ... -compile-ant: [javac] Compiling 2 source files to /home/bwalker/src/netbeans/ergonomics/ide.ergonomics/build/classes [repeat] warning: [options] bootstrap class path not set in conjunction with -source 1.6 [repeat] 1 warning [copy] Copying 6 files to /home/bwalker/src/netbeans/ergonomics/ide.ergonomics/build/classes -generate-proxies: ... {code} I've cleaned this up. There are still a few of these warnings left. I will clean them up when I have time to go in and inspect each one individually. was: There are hundreds of warnings that are generated because the java.source specifies version 1.6 in the project.properties files. The warning looks like this: {code:java} ... -compile-ant: [javac] Compiling 2 source files to /home/bwalker/src/netbeans/ergonomics/ide.ergonomics/build/classes {color:yellow} [repeat] warning: [options] bootstrap class path not set in conjunction with -source 1.6{color} [repeat] 1 warning [copy] Copying 6 files to /home/bwalker/src/netbeans/ergonomics/ide.ergonomics/build/classes -generate-proxies: ... {code} I've cleaned this up. There are still a few of these warnings left. I will clean them up when I have time to go in and inspect each one individually. > update java.source in the project properties > > > Key: NETBEANS-5151 > URL: https://issues.apache.org/jira/browse/NETBEANS-5151 > Project: NetBeans > Issue Type: Improvement >Reporter: Brad Walker >Assignee: Brad Walker >Priority: Major > > There are hundreds of warnings that are generated because the java.source > specifies version 1.6 in the project.properties files. The warning looks like > this: > {code:java} > ... > -compile-ant: > [javac] Compiling 2 source files to > /home/bwalker/src/netbeans/ergonomics/ide.ergonomics/build/classes > [repeat] warning: [options] bootstrap class path not set in conjunction with > -source 1.6 >[repeat] 1 warning > [copy] Copying 6 files to > /home/bwalker/src/netbeans/ergonomics/ide.ergonomics/build/classes > -generate-proxies: > ... > {code} > I've cleaned this up. There are still a few of these warnings left. I will > clean them up when I have time to go in and inspect each one individually. -- 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-5143) NetBeans 12.2 deploys webapps twice
[ https://issues.apache.org/jira/browse/NETBEANS-5143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17249480#comment-17249480 ] Andrew edited comment on NETBEANS-5143 at 12/15/20, 5:06 AM: - I came here to report the same issue: NetBeans 12.2 deploys WAR project twice on the server. In my case I have Payara Server 5.2020.7 defined in NetBeans->Services. Tested on two WAR projects, behaviour the same, war deployed twice. Switching back to 12.1 - resolves the issue and war deployed as intended. Thanks! was (Author: andrewgr): I came here to report the same issue: NetBeans 12.2 deploys WAR project twice on the server. I my case I have Payara Server 5.2020.7 defined in NetBeans->Services. Tested on two WAR projects, behaviour the same, war deployed twice. Switching back to 12.1 - resolves the issue and war deployed as intended. Thanks! > NetBeans 12.2 deploys webapps twice > --- > > Key: NETBEANS-5143 > URL: https://issues.apache.org/jira/browse/NETBEANS-5143 > Project: NetBeans > Issue Type: Bug > Components: core >Affects Versions: 12.2 > Environment: Windows 10 20H2/AMD Ryzen 7 4800H/32GB RAM > java: build 11.0.9.1+1, maven 3.6.3 > Netbeans versions tested: 12.1, 12.2 (only 12.2 is effected) > Tomcat (new installs): 8.5.60, 9.0.40, Payara (per Patrick Musembi) >Reporter: Vlad Palnik >Priority: Major > Labels: webapp, webapp-deployment > > To whomever it concerns, > > I've come across a possible bug in NetBeans 12.2. Netbeans seems to interfere > with the deployment of apps somehow and apps are deployed twice. > > While deploying an app it follows this pattern: deploy => undeploy => deploy > (see build log below). I tried solving this issue by undeployed any previous > versions of the app manually and restarted Tomcat, the same error occurs. The > issue only appears when using NB 12.2 > > When tested on NetBeans 12.1 using the same Java/Tomcat installation/config > no errors occur and deployment proceeds correctly. > > Steps to replicate: > 1: Create maven webapp (Java EE7, Java 11) in NetBeans 12.1 > 2 Set Tomcat Server in Properties > Run > 3. Build/Run project in 12.1, you will get a "Hello World" basic site. > 4. Check build log, only a single deploy should show up. > 5 Close 12.1 and open same project in 12.2 > 6 Before run/build make sure same server and java versions are selected > 7 Build/Run project > 8 Check build log, you will see two deploys of webapp > > > BUILD SUCCESS > > Total time: 18.211 s > Finished at: 2020-12-11T17:27:08-08:00 > > Deploying on Tomcat 8.5.60 > profile mode: false > debug mode: false > force redeploy: true > Starting Tomcat process... > Waiting for Tomcat... > Tomcat server started. > In-place deployment at C:\Users\username\Desktop\myapp\target\myapp##1.2.5 > Deployment is in progress... > deploy?config=file%3A%2FC%3A%2FUsers%2Fusername%2FAppData%2FLocal%2FTemp%2Fcontext6407158500266578550.xml=/myapp > OK - Deployed application at context path [/myapp] > Start is in progress... > start?path=/myapp > OK - Started application at context path [/myapp] > Deploying on Tomcat 8.5.60 > profile mode: false > debug mode: false > force redeploy: true > Undeploying ... > undeploy?path=/myapp > OK - Undeployed application at context path [/myapp] > In-place deployment at C:\Users\username\Desktop\myapp\target\myapp##1.2.5 > Deployment is in progress... > deploy?config=file%3A%2FC%3A%2FUsers%2Fusername%2FAppData%2FLocal%2FTemp%2Fcontext3519987589623367889.xml=/myapp > OK - Deployed application at context path [/myapp] > Start is in progress... > start?path=/myapp > OK - Started application at context path [/myapp] > > -- 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-5143) NetBeans 12.2 deploys webapps twice
[ https://issues.apache.org/jira/browse/NETBEANS-5143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17249480#comment-17249480 ] Andrew commented on NETBEANS-5143: -- I came here to report the same issue: NetBeans 12.2 deploys WAR project twice on the server. I my case I have Payara Server 5.2020.7 defined in NetBeans->Services. Tested on two WAR projects, behaviour the same, war deployed twice. Switching back to 12.1 - resolves the issue and war deployed as intended. Thanks! > NetBeans 12.2 deploys webapps twice > --- > > Key: NETBEANS-5143 > URL: https://issues.apache.org/jira/browse/NETBEANS-5143 > Project: NetBeans > Issue Type: Bug > Components: core >Affects Versions: 12.2 > Environment: Windows 10 20H2/AMD Ryzen 7 4800H/32GB RAM > java: build 11.0.9.1+1, maven 3.6.3 > Netbeans versions tested: 12.1, 12.2 (only 12.2 is effected) > Tomcat (new installs): 8.5.60, 9.0.40, Payara (per Patrick Musembi) >Reporter: Vlad Palnik >Priority: Major > Labels: webapp, webapp-deployment > > To whomever it concerns, > > I've come across a possible bug in NetBeans 12.2. Netbeans seems to interfere > with the deployment of apps somehow and apps are deployed twice. > > While deploying an app it follows this pattern: deploy => undeploy => deploy > (see build log below). I tried solving this issue by undeployed any previous > versions of the app manually and restarted Tomcat, the same error occurs. The > issue only appears when using NB 12.2 > > When tested on NetBeans 12.1 using the same Java/Tomcat installation/config > no errors occur and deployment proceeds correctly. > > Steps to replicate: > 1: Create maven webapp (Java EE7, Java 11) in NetBeans 12.1 > 2 Set Tomcat Server in Properties > Run > 3. Build/Run project in 12.1, you will get a "Hello World" basic site. > 4. Check build log, only a single deploy should show up. > 5 Close 12.1 and open same project in 12.2 > 6 Before run/build make sure same server and java versions are selected > 7 Build/Run project > 8 Check build log, you will see two deploys of webapp > > > BUILD SUCCESS > > Total time: 18.211 s > Finished at: 2020-12-11T17:27:08-08:00 > > Deploying on Tomcat 8.5.60 > profile mode: false > debug mode: false > force redeploy: true > Starting Tomcat process... > Waiting for Tomcat... > Tomcat server started. > In-place deployment at C:\Users\username\Desktop\myapp\target\myapp##1.2.5 > Deployment is in progress... > deploy?config=file%3A%2FC%3A%2FUsers%2Fusername%2FAppData%2FLocal%2FTemp%2Fcontext6407158500266578550.xml=/myapp > OK - Deployed application at context path [/myapp] > Start is in progress... > start?path=/myapp > OK - Started application at context path [/myapp] > Deploying on Tomcat 8.5.60 > profile mode: false > debug mode: false > force redeploy: true > Undeploying ... > undeploy?path=/myapp > OK - Undeployed application at context path [/myapp] > In-place deployment at C:\Users\username\Desktop\myapp\target\myapp##1.2.5 > Deployment is in progress... > deploy?config=file%3A%2FC%3A%2FUsers%2Fusername%2FAppData%2FLocal%2FTemp%2Fcontext3519987589623367889.xml=/myapp > OK - Deployed application at context path [/myapp] > Start is in progress... > start?path=/myapp > OK - Started application at context path [/myapp] > > -- 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-2387) Gradle tasks (Navigator) do not scroll down and show recents at the top
[ https://issues.apache.org/jira/browse/NETBEANS-2387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Laszlo Kishalmi updated NETBEANS-2387: -- Attachment: GradleFavoritesCut2.mp4 > Gradle tasks (Navigator) do not scroll down and show recents at the top > --- > > Key: NETBEANS-2387 > URL: https://issues.apache.org/jira/browse/NETBEANS-2387 > Project: NetBeans > Issue Type: Improvement > Components: projects - Gradle >Affects Versions: 11.0, 12.0, 11.1, 11.2, 11.3, 12.2 > Environment: Netbeans 11 > Gradle 5, 6.4.1 > Java 11 >Reporter: Netbeans User 2019 >Assignee: Laszlo Kishalmi >Priority: Major > Labels: pull-request-available > Attachments: GradleFavoritesCut.mp4, GradleFavoritesCut2.mp4 > > Time Spent: 10m > Remaining Estimate: 0h > > Navigator is always scroll down so it is needed at least in my case scroll up > mostly to the right task to run. > Could you add a category recent tasks and scroll to that category or just > give a option to show that always collapsed? -- 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-5150) Unknown Bug
Derek Tee Jia Chen created NETBEANS-5150: Summary: Unknown Bug Key: NETBEANS-5150 URL: https://issues.apache.org/jira/browse/NETBEANS-5150 Project: NetBeans Issue Type: New Feature Components: cnd - Other Affects Versions: 12.1 Reporter: Derek Tee Jia Chen 2020-12-15T10:42:44 1608000164719 809 org.netbeans.modules.deadlock.detector.Detector 1000 38 C:\Users\ACERUS~1\AppData\Local\Temp\deadlock1656962858420019798.txt org.netbeans.modules.deadlock.detector.Detector$DeadlockDetectedException: A deadlock was detected. We suggest to restart the IDE to recover. org.netbeans.lib.lexer.LanguageManager findLanguageEmbedding 147 ${netBeansDir}modules/org-netbeans-modules-lexer.jar org.netbeans.lib.lexer.LexerUtilsConstants findEmbedding 172 ${netBeansDir}modules/org-netbeans-modules-lexer.jar org.netbeans.lib.lexer.EmbeddingOperation embeddedTokenList 133 ${netBeansDir}modules/org-netbeans-modules-lexer.jar org.netbeans.api.lexer.TokenSequence embeddedImpl 348 ${netBeansDir}modules/org-netbeans-modules-lexer.jar org.netbeans.api.lexer.TokenSequence embedded 295 ${netBeansDir}modules/org-netbeans-modules-lexer.jar org.netbeans.lib.lexer.TokenHierarchyOperation embeddedTokenSequences 454 ${netBeansDir}modules/org-netbeans-modules-lexer.jar org.netbeans.api.lexer.TokenHierarchy embeddedTokenSequences 240 ${netBeansDir}modules/org-netbeans-modules-lexer.jar org.netbeans.modules.editor.bracesmatching.MasterMatcher$2 run 507 ${netBeansDir}modules/org-netbeans-modules-editor-bracesmatching.jar org.netbeans.editor.BaseDocument render 1402 ${netBeansDir}modules/org-netbeans-modules-editor-lib.jar org.netbeans.modules.editor.bracesmatching.MasterMatcher findFactories 503 ${netBeansDir}modules/org-netbeans-modules-editor-bracesmatching.jar org.netbeans.modules.editor.bracesmatching.MasterMatcher access$1600 60 ${netBeansDir}modules/org-netbeans-modules-editor-bracesmatching.jar org.netbeans.modules.editor.bracesmatching.MasterMatcher$Result findOrigin 843 ${netBeansDir}modules/org-netbeans-modules-editor-bracesmatching.jar org.netbeans.modules.editor.bracesmatching.MasterMatcher$Result _run 694 ${netBeansDir}modules/org-netbeans-modules-editor-bracesmatching.jar org.netbeans.modules.editor.bracesmatching.MasterMatcher$Result run 647 ${netBeansDir}modules/org-netbeans-modules-editor-bracesmatching.jar org.openide.util.RequestProcessor$Task run 1418 ${netbeans.home}lib/org-openide-util.jar org.netbeans.modules.openide.util.GlobalLookup execute 45 ${netbeans.home}lib/org-openide-util-lookup.jar org.openide.util.lookup.Lookups executeWith 278 ${netbeans.home}lib/org-openide-util-lookup.jar org.openide.util.RequestProcessor$Processor run 2033 ${netbeans.home}lib/org-openide-util.jar org.netbeans.modules.deadlock.detector.Detector$DeadlockDetectedException: EditorBracesMatching 18 org.netbeans.modules.deadlock.detector.Detector$DeadlockDetectedException: EditorBracesMatching org.netbeans.modules.editor.mimelookup.impl.FolderPathLookup$InstanceItem getRef 277 ${netbeans.home}modules/org-netbeans-modules-editor-mimelookup-impl.jar org.netbeans.modules.editor.mimelookup.impl.FolderPathLookup$InstanceItem instanceOf 285 ${netbeans.home}modules/org-netbeans-modules-editor-mimelookup-impl.jar org.netbeans.modules.editor.mimelookup.impl.FolderPathLookup$PairItem instanceOf 169 ${netbeans.home}modules/org-netbeans-modules-editor-mimelookup-impl.jar org.openide.util.lookup.InheritanceTree searchInterface 858 ${netbeans.home}lib/org-openide-util-lookup.jar org.openide.util.lookup.InheritanceTree lookup 215 ${netbeans.home}lib/org-openide-util-lookup.jar org.openide.util.lookup.InheritanceTree registerReferenceToResult 984 ${netbeans.home}lib/org-openide-util-lookup.jar org.openide.util.lookup.DelegatingStorage registerReferenceToResult 155 ${netbeans.home}lib/org-openide-util-lookup.jar org.openide.util.lookup.AbstractLookup lookup 472
[jira] [Resolved] (NETBEANS-5142) LSP Client creates excessive processes
[ https://issues.apache.org/jira/browse/NETBEANS-5142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Matthias Bläsing resolved NETBEANS-5142. Fix Version/s: 12.3 Resolution: Fixed Fix was merged to master. > LSP Client creates excessive processes > -- > > Key: NETBEANS-5142 > URL: https://issues.apache.org/jira/browse/NETBEANS-5142 > Project: NetBeans > Issue Type: Bug > Components: lsp >Affects Versions: 12.2 >Reporter: Matthias Bläsing >Assignee: Matthias Bläsing >Priority: Major > Labels: pull-request-available > Fix For: 12.3 > > Time Spent: 1h > Remaining Estimate: 0h > > It was observed, that while using the typescript editor support in NetBeans > to work with angular projects, the whole system became sluggish. Parts of > this can be attributed to having `ng serve` running in the background and > using many resources when compiling, but that could not be the whole story. > Checking the task manager showed, that the taskgroup of netbeans contained > more than 500 processes. The problem was reproducible. > Running with a debugger showed, that a breakpoint placed in > org.netbeans.modules.typescript.editor.TypeScriptLSP.startServer(Lookup) was > hit multiple times in a short time frame although only one file was opened. > This can be tracked back int > org.netbeans.modules.lsp.client.LSPBindings.getBindingsImpl(Project, > FileObject, String, boolean) where the map `project2MimeType2Server` provides > a cache, that should yield the same LSP server if a project is present or at > least the same lsp server for a directory. > This caching does not work. The cache is a WeakHashMap with an URI as key. > The uri is created in the `getBindingsImpl` method and becomes immediately > eligible for GC. In consequence the next access will fail to retrieve the > previously created LSP as the key got GCed. > TL;DR: Caching does not work. > The problem seems to be introduced recently as it was only observed since a > few weeks. Most probably it was introduced when support for LSP without > project reference was introduced: > https://github.com/apache/netbeans/commit/74feecb > At that point the cache was switched from Project to URI. The Project is kept > alive by the IDE, so the cache should have worked at that time. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[netbeans] branch master updated: [NETBEANS-5142] LSP Client creates excessive processes (#2589)
This is an automated email from the ASF dual-hosted git repository. matthiasblaesing pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/master by this push: new ebde2a5 [NETBEANS-5142] LSP Client creates excessive processes (#2589) ebde2a5 is described below commit ebde2a5904506dc10a035e8e4ef9adbc80889b02 Author: Matthias Bläsing AuthorDate: Mon Dec 14 21:12:57 2020 +0100 [NETBEANS-5142] LSP Client creates excessive processes (#2589) The caching of the LSP client that is rooted in project2MimeType2Server does not work. In the WeakHashMap the keys are help by weak references and the key is invalidated, once it is GCed. The URIs that are used as keys become immediately eligible for GC and thus the cache is not used at all. To fix this, use a regular HashMap with WeakReference values. The LSP Clients themselves are either strongly referenced from other components or can be collected. To not create excessive start/stops of servers, an additional strong reference is retained for a certain time after the last bind request was issued. Only after the timeout has occured, that extra reference is released and the bindings could become eligible for GC. --- .../netbeans/modules/lsp/client/LSPBindings.java | 240 ++--- .../lsp/client/options/LanguageStorage.java| 2 +- .../lsp/client/options/LanguageStorageTest.java| 2 +- 3 files changed, 167 insertions(+), 77 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 b65920a..8d87af3 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 @@ -22,7 +22,7 @@ import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; -import java.lang.ref.Reference; +import java.lang.ref.ReferenceQueue; import java.lang.ref.WeakReference; import java.net.InetAddress; import java.net.Socket; @@ -32,6 +32,7 @@ import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.IdentityHashMap; +import java.util.Iterator; import java.util.LinkedHashMap; import java.util.Map; import java.util.Map.Entry; @@ -82,6 +83,7 @@ import org.openide.util.Lookup; import org.openide.util.NbBundle.Messages; import org.openide.util.RequestProcessor; import org.openide.util.RequestProcessor.Task; +import org.openide.util.Utilities; import org.openide.util.WeakListeners; import org.openide.util.lookup.Lookups; @@ -91,17 +93,38 @@ import org.openide.util.lookup.Lookups; */ public class LSPBindings { +private static final int DELAY = 500; +private static final int LSP_KEEP_ALIVE_MINUTES = 10; +private static final RequestProcessor WORKER = new RequestProcessor(LanguageClientImpl.class.getName(), 1, false, false); +private static final ChangeSupport cs = new ChangeSupport(LSPBindings.class); +private static final Map lspKeepAlive = new IdentityHashMap<>(); +private static final Map>> project2MimeType2Server = new HashMap<>(); +private static final Map> workspace2Extension2Server = new HashMap<>(); + static { //Don't perform null checks. The servers may not adhere to the specification, and send illegal nulls. Preconditions.enableNullChecks(false); -} -private static final RequestProcessor WORKER = new RequestProcessor(LanguageClientImpl.class.getName(), 1, false, false); -private static final int DELAY = 500; +// Remove LSP Servers from strong reference tracking, that have not +// been accessed more than LSP_KEEP_ALIVE_MINUTES minutes +WORKER.scheduleAtFixedRate( +() -> { +synchronized (LSPBindings.class) { +long tooOld = System.currentTimeMillis() - (LSP_KEEP_ALIVE_MINUTES * 60L * 1000L); +Iterator> iterator = lspKeepAlive.entrySet().iterator(); +while (iterator.hasNext()) { +Entry entry = iterator.next(); +if (entry.getValue() < tooOld) { +iterator.remove(); +} +} +} +}, +Math.max(LSP_KEEP_ALIVE_MINUTES / 2, 1), +Math.max(LSP_KEEP_ALIVE_MINUTES / 2, 1), +TimeUnit.MINUTES); +} -private static final ChangeSupport cs = new ChangeSupport(LSPBindings.class); -private static final Map> project2MimeType2Server = new WeakHashMap<>(); -private static final Map> workspace2Extension2Server = new HashMap<>(); private final Map> backgroundTasks = new WeakHashMap<>(); private final Set openedFiles = new
[jira] [Commented] (NETBEANS-2515) cleanup the build issues
[ https://issues.apache.org/jira/browse/NETBEANS-2515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17249095#comment-17249095 ] Brad Walker commented on NETBEANS-2515: --- NETBEANS-4458 - enable use of generics > cleanup the build issues > > > Key: NETBEANS-2515 > URL: https://issues.apache.org/jira/browse/NETBEANS-2515 > Project: NetBeans > Issue Type: Improvement >Reporter: Brad Walker >Assignee: Brad Walker >Priority: Major > > The build process has a lot of errors/warnings. > I've created this Jira to track all the issues related to cleaning up > The first canidate is: NETBEANS-2514 -- 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] [Closed] (NETBEANS-4458) enable use of generics
[ https://issues.apache.org/jira/browse/NETBEANS-4458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Brad Walker closed NETBEANS-4458. - Fix Version/s: 12.3 Resolution: Fixed integrated.. > enable use of generics > -- > > Key: NETBEANS-4458 > URL: https://issues.apache.org/jira/browse/NETBEANS-4458 > Project: NetBeans > Issue Type: Improvement >Reporter: Brad Walker >Priority: Major > Labels: pull-request-available > Fix For: 12.3 > > Time Spent: 3h 10m > Remaining Estimate: 0h > > A lot of places in the code has generic use commented out.. For example, the > following in > LayoutModel.java > {code:java} > public void unsetSameSize(List/**/ components, int dimension) { > Iterator i = components.iterator(); > while (i.hasNext()) { > String cid = (String)i.next(); > LayoutComponent lc = getLayoutComponent(cid); > removeComponentFromLinkSizedGroup(lc, dimension); > } > } > {code} > All I've done here is enable it to reduce the warnings and test out the code > to make sure it works correctly. -- 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-5149) JavaFX and Gradle- Debugger does not stop at breakpoint
[ https://issues.apache.org/jira/browse/NETBEANS-5149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17249076#comment-17249076 ] Laszlo Kishalmi commented on NETBEANS-5149: --- Would you elaborate? Send samples, instruction for reproducing the issue, etc. > JavaFX and Gradle- Debugger does not stop at breakpoint > --- > > Key: NETBEANS-5149 > URL: https://issues.apache.org/jira/browse/NETBEANS-5149 > Project: NetBeans > Issue Type: Bug > Components: projects - Gradle >Affects Versions: 12.2 >Reporter: Heiko Wenzel >Assignee: Laszlo Kishalmi >Priority: Major > > It seems that the debugger in Gradle does not work with JavaFX. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Resolved] (NETBEANS-2809) Navigate to implementation does not work for modular (JPMS) projects
[ https://issues.apache.org/jira/browse/NETBEANS-2809?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Harald Krake resolved NETBEANS-2809. Fix Version/s: 12.2 Resolution: Fixed > Navigate to implementation does not work for modular (JPMS) projects > > > Key: NETBEANS-2809 > URL: https://issues.apache.org/jira/browse/NETBEANS-2809 > Project: NetBeans > Issue Type: Bug > Components: editor - Navigation >Affects Versions: 11.0 >Reporter: Harald Krake >Priority: Major > Fix For: 12.2 > > > When editing an interface, neither "navigate to implementation" (of the > interface or one of its methods) works nor any gutter icon is shown. If you > remove all module-info files, it works as expected. > Steps to reproduce: > Run the quickstart at [https://bitbucket.org/krake-oss/tentackle/src/master/] > (section "Project Setup" is sufficient, java 11 or newer, maven 3.6.0 or > newer): > {{mvn archetype:generate -DarchetypeGroupId=org.tentackle > -DarchetypeArtifactId=tentackle-project-archetype -DarchetypeVersion=11.4.0.0 > -DgroupId=com.example -DartifactId=myapp -Dversion=1.0 > -Dpackage=com.example.myapp -Dapplication=MyApp}} > {{mvn clean install}} > Open the class MessageDomainImpl. > Click on the "implements" icon next to "public Message create(...)". The > interface MessageDomain will be opened, but there are no gutter icons shown > and you cannot navigate back to the implementations. > Remove all module-info.java files and it works as expected. -- 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-2809) Navigate to implementation does not work for modular (JPMS) projects
[ https://issues.apache.org/jira/browse/NETBEANS-2809?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17248910#comment-17248910 ] Harald Krake commented on NETBEANS-2809: working since NB 12.2. Great! > Navigate to implementation does not work for modular (JPMS) projects > > > Key: NETBEANS-2809 > URL: https://issues.apache.org/jira/browse/NETBEANS-2809 > Project: NetBeans > Issue Type: Bug > Components: editor - Navigation >Affects Versions: 11.0 >Reporter: Harald Krake >Priority: Major > > When editing an interface, neither "navigate to implementation" (of the > interface or one of its methods) works nor any gutter icon is shown. If you > remove all module-info files, it works as expected. > Steps to reproduce: > Run the quickstart at [https://bitbucket.org/krake-oss/tentackle/src/master/] > (section "Project Setup" is sufficient, java 11 or newer, maven 3.6.0 or > newer): > {{mvn archetype:generate -DarchetypeGroupId=org.tentackle > -DarchetypeArtifactId=tentackle-project-archetype -DarchetypeVersion=11.4.0.0 > -DgroupId=com.example -DartifactId=myapp -Dversion=1.0 > -Dpackage=com.example.myapp -Dapplication=MyApp}} > {{mvn clean install}} > Open the class MessageDomainImpl. > Click on the "implements" icon next to "public Message create(...)". The > interface MessageDomain will be opened, but there are no gutter icons shown > and you cannot navigate back to the implementations. > Remove all module-info.java files and it works as expected. -- 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-5149) JavaFX and Gradle- Debugger does not stop at breakpoint
Heiko Wenzel created NETBEANS-5149: -- Summary: JavaFX and Gradle- Debugger does not stop at breakpoint Key: NETBEANS-5149 URL: https://issues.apache.org/jira/browse/NETBEANS-5149 Project: NetBeans Issue Type: Bug Components: projects - Gradle Affects Versions: 12.2 Reporter: Heiko Wenzel Assignee: Laszlo Kishalmi It seems that the debugger in Gradle does not work with JavaFX. -- 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-5148) JavaFX and Maven- no links in output to source during exception
[ https://issues.apache.org/jira/browse/NETBEANS-5148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Heiko Wenzel updated NETBEANS-5148: --- Affects Version/s: 12.2 Description: A Maven JavFX project does not make links to source in output when a exception throws Summary: JavaFX and Maven- no links in output to source during exception (was: JavaFX and Maven- -) > JavaFX and Maven- no links in output to source during exception > --- > > Key: NETBEANS-5148 > URL: https://issues.apache.org/jira/browse/NETBEANS-5148 > Project: NetBeans > Issue Type: Bug > Components: apisupport - Maven >Affects Versions: 12.2 >Reporter: Heiko Wenzel >Priority: Major > > A Maven JavFX project does not make links to source in output when a > exception throws -- 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-5148) JavaFX and Maven- -
Heiko Wenzel created NETBEANS-5148: -- Summary: JavaFX and Maven- - Key: NETBEANS-5148 URL: https://issues.apache.org/jira/browse/NETBEANS-5148 Project: NetBeans Issue Type: Bug Components: apisupport - Maven Reporter: Heiko Wenzel -- 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-4779) Apache NetBeans cant be installed on Mac OS Big Sur
[ https://issues.apache.org/jira/browse/NETBEANS-4779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=1724#comment-1724 ] Petr commented on NETBEANS-4779: There is a problem in NetBean that it don't ask access to directory 'Documents'. Make program with `Automator` which `call shell script`: `/Applications/NetBeans/Apache\ NetBeans\ 12.2.app/Contents/Resources/NetBeans/netbeans/bin/netbeans` > Apache NetBeans cant be installed on Mac OS Big Sur > --- > > Key: NETBEANS-4779 > URL: https://issues.apache.org/jira/browse/NETBEANS-4779 > Project: NetBeans > Issue Type: Bug > Components: platform - installer >Reporter: John McDonnell >Assignee: John McDonnell >Priority: Major > Fix For: 12.1 > > Time Spent: 20m > Remaining Estimate: 0h > > As part of of the Apache NetBeans 12.1 release, it was found that the current > mac os installer doesn't work on Big Sur due to changes in the > `/usr/libexec/java_home` script. > The fix will be to remove the version flag from the installer. -- 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-2387) Gradle tasks (Navigator) do not scroll down and show recents at the top
[ https://issues.apache.org/jira/browse/NETBEANS-2387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ASF GitHub Bot updated NETBEANS-2387: - Labels: pull-request-available (was: ) > Gradle tasks (Navigator) do not scroll down and show recents at the top > --- > > Key: NETBEANS-2387 > URL: https://issues.apache.org/jira/browse/NETBEANS-2387 > Project: NetBeans > Issue Type: Improvement > Components: projects - Gradle >Affects Versions: 11.0, 12.0, 11.1, 11.2, 11.3, 12.2 > Environment: Netbeans 11 > Gradle 5, 6.4.1 > Java 11 >Reporter: Netbeans User 2019 >Assignee: Laszlo Kishalmi >Priority: Major > Labels: pull-request-available > Attachments: GradleFavoritesCut.mp4 > > Time Spent: 10m > Remaining Estimate: 0h > > Navigator is always scroll down so it is needed at least in my case scroll up > mostly to the right task to run. > Could you add a category recent tasks and scroll to that category or just > give a option to show that always collapsed? -- 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-2387) Gradle tasks (Navigator) do not scroll down and show recents at the top
[ https://issues.apache.org/jira/browse/NETBEANS-2387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Laszlo Kishalmi updated NETBEANS-2387: -- Attachment: GradleFavoritesCut.mp4 > Gradle tasks (Navigator) do not scroll down and show recents at the top > --- > > Key: NETBEANS-2387 > URL: https://issues.apache.org/jira/browse/NETBEANS-2387 > Project: NetBeans > Issue Type: Improvement > Components: projects - Gradle >Affects Versions: 11.0, 12.0, 11.1, 11.2, 11.3, 12.2 > Environment: Netbeans 11 > Gradle 5, 6.4.1 > Java 11 >Reporter: Netbeans User 2019 >Assignee: Laszlo Kishalmi >Priority: Major > Attachments: GradleFavoritesCut.mp4 > > > Navigator is always scroll down so it is needed at least in my case scroll up > mostly to the right task to run. > Could you add a category recent tasks and scroll to that category or just > give a option to show that always collapsed? -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[netbeans] branch master updated: [NETBEANS-5146] Add ScrollOnExpand property to TreeView
This is an automated email from the ASF dual-hosted git repository. lkishalmi 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 8a79dae [NETBEANS-5146] Add ScrollOnExpand property to TreeView 8a79dae is described below commit 8a79dae337616d662b21f63284e03ec9954355ed Author: Laszlo Kishalmi AuthorDate: Sun Dec 13 13:01:38 2020 -0800 [NETBEANS-5146] Add ScrollOnExpand property to TreeView --- platform/openide.explorer/apichanges.xml | 14 + .../openide.explorer/nbproject/project.properties | 2 +- .../src/org/openide/explorer/view/TreeView.java| 24 ++ 3 files changed, 39 insertions(+), 1 deletion(-) diff --git a/platform/openide.explorer/apichanges.xml b/platform/openide.explorer/apichanges.xml index 2be4e68..0e0ecb1 100644 --- a/platform/openide.explorer/apichanges.xml +++ b/platform/openide.explorer/apichanges.xml @@ -26,6 +26,20 @@ Explorer API + + +Expose scrollOnExpand property on TreeView. + + + + + +It is now possible to set/get the scrollOnExpand property +in TreeView. + + + + Hide node icons in OutlineView and TreeView. diff --git a/platform/openide.explorer/nbproject/project.properties b/platform/openide.explorer/nbproject/project.properties index 54ae7f7..73ebeef 100644 --- a/platform/openide.explorer/nbproject/project.properties +++ b/platform/openide.explorer/nbproject/project.properties @@ -17,7 +17,7 @@ is.autoload=true javac.compilerargs=-Xlint -Xlint:-serial -javac.source=1.6 +javac.source=1.8 javadoc.main.page=org/openide/explorer/doc-files/api.html javadoc.arch=${basedir}/arch.xml javadoc.apichanges=${basedir}/apichanges.xml diff --git a/platform/openide.explorer/src/org/openide/explorer/view/TreeView.java b/platform/openide.explorer/src/org/openide/explorer/view/TreeView.java index e921d9e..2901b1b 100644 --- a/platform/openide.explorer/src/org/openide/explorer/view/TreeView.java +++ b/platform/openide.explorer/src/org/openide/explorer/view/TreeView.java @@ -407,6 +407,30 @@ public abstract class TreeView extends JScrollPane { tree.setShowsRootHandles(!visible); } + +/** + * Set the scrollsOnExpand property on the + * underlying tree component. + * @see javax.swing.JTree#setScrollsOnExpand(boolean) + * + * @param newValue the new value of the property + * @since 6.73 + */ +public void setScrollsOnExpand(boolean newValue) { +tree.setScrollsOnExpand(newValue); +} + +/** + * Returns the value of the scrollsOnExpand property of + * the underlying tree component. + * + * @return the value of the scrollsOnExpand property + * @since 6.73 + */ +public boolean getScrollsOnExpand() { +return tree.getScrollsOnExpand(); +} + /** * Test whether the quick search feature is enabled or not. * Default is enabled (true). - 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