Re: Gradle plugin to merge @ServiceProvider namedservices
Doh! Left something out I've built a gradle plugin to handle this. The project's VCS has a readme that has usage instructions. I'm a gradle newbie and this is my first plugin, any comments appreciated. See usage at: https://sourceforge.net/p/jvi/raelity-gradle/ci/default/tree/ -ernie On 9/15/22 6:35 PM, Ernie Rael wrote: Slightly off topic. I work on a plain old java project that uses org.openide.util.lookup's @ServiceProvider. I've converted that ancient project (which ends up in a NetBeans plugin) to use gradle instead of ant. While doing this, I've split the sources into separate sub-projects and combine some of them into a single jar. There's a need to combine namedservices data into the single jar. I've built a gradle plugin to handle this. The project's VCS has a readme that has usage instructions. I'm a gradle newbie and this is my first plugin, any comments appreciated. Planning to make this available in the gradle plugin portal. I guess I'll tag it with netbeans although it's only loosely related; any other suggestions for publishing. Even if it's not used by others, it helps release an easily buildable project :-) -ernie BTW. I'm currently doing buildscript { dependencies { classpath files(rootDir.toPath().resolve('../namedservices-merge-1.0.0.jar')) } } apply plugin: 'com.raelity.namedservices-merge' and I think (hope) that once it's in the gradle portal I can simply do id 'com.raelity.namedservices-merge' - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Gradle plugin to merge @ServiceProvider namedservices
Slightly off topic. I work on a plain old java project that uses org.openide.util.lookup's @ServiceProvider. I've converted that ancient project (which ends up in a NetBeans plugin) to use gradle instead of ant. While doing this, I've split the sources into separate sub-projects and combine some of them into a single jar. There's a need to combine namedservices data into the single jar. I've built a gradle plugin to handle this. The project's VCS has a readme that has usage instructions. I'm a gradle newbie and this is my first plugin, any comments appreciated. Planning to make this available in the gradle plugin portal. I guess I'll tag it with netbeans although it's only loosely related; any other suggestions for publishing. Even if it's not used by others, it helps release an easily buildable project :-) -ernie BTW. I'm currently doing buildscript { dependencies { classpath files(rootDir.toPath().resolve('../namedservices-merge-1.0.0.jar')) } } apply plugin: 'com.raelity.namedservices-merge' and I think (hope) that once it's in the gradle portal I can simply do id 'com.raelity.namedservices-merge' - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Unpacking the index for central repository is very long
On 15.09.22 19:21, Richard Grin wrote: Hi Michael, Downloading the file was quick. The unpacking was very long. Wouldn't it be possible to search for Maven artefacts when a pom.xml is written and not before? it is going to start the first time the user runs an action which requires artifact infos. E.g the new NB module project wizzard can trigger it, or auto completion in a pom, or some other dependency search UI. Some plugin might also trigger it if it makes a request I suppose. It seems that other IDEs don't work like NetBeans and don't download and unpack the index in advance. Am I wrong? If IDEs provide functionality which uses data which is not available in your local maven repository they gonna have to use a web service or cache things just like netbeans does. There are pros and cons for both. Local cache is fast and works in planes and trains. Webservice transfers data on demand but you need a webservice. If you don't want NetBeans to do this you can turn indexing off in the maven settings i believe. But it is usually not a big deal since it finishes in <15mins and runs once per week in the background while you can use the IDE normally. -mbien Best regards, Richard Le 15/09/2022 à 03:14, Michael Bien a écrit : Hi, 2h is indeed long. Last time i measured it was about 20mins on my workstation which is about 6 years old by now. Would be interesting to try to figure out what causes the such big difference. Was the download itself slow? This can happen of course due to outside factors. The good news is that subsequent indexing should be faster since it will download a delta. It actually did run an update while writing this mail, here the log line: INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 663.13 s. there is some potential to parallelize it, but this is actually the only indexing job which is handled by a third party lib (local indexing is done by NB), so we would have to take a look upstream. There is also always the danger to melt laptops if you put all cores under load for a few minutes. best regards, michael On 08.09.22 10:49, Richard Grin wrote: Hello, I have just downloaded and installed NetBeans 15 on Windows 11. A very annoying problem: the loading and unpacking of the index for central repository took almost 2 hours. I'm afraid it will be even worse in the years to come. Is there a workaround? Regards, Richard - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Unpacking the index for central repository is very long
Hi Michael, Downloading the file was quick. The unpacking was very long. Wouldn't it be possible to search for Maven artefacts when a pom.xml is written and not before? It seems that other IDEs don't work like NetBeans and don't download and unpack the index in advance. Am I wrong? Best regards, Richard Le 15/09/2022 à 03:14, Michael Bien a écrit : Hi, 2h is indeed long. Last time i measured it was about 20mins on my workstation which is about 6 years old by now. Would be interesting to try to figure out what causes the such big difference. Was the download itself slow? This can happen of course due to outside factors. The good news is that subsequent indexing should be faster since it will download a delta. It actually did run an update while writing this mail, here the log line: INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 663.13 s. there is some potential to parallelize it, but this is actually the only indexing job which is handled by a third party lib (local indexing is done by NB), so we would have to take a look upstream. There is also always the danger to melt laptops if you put all cores under load for a few minutes. best regards, michael On 08.09.22 10:49, Richard Grin wrote: Hello, I have just downloaded and installed NetBeans 15 on Windows 11. A very annoying problem: the loading and unpacking of the index for central repository took almost 2 hours. I'm afraid it will be even worse in the years to come. Is there a workaround? Regards, Richard - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists -- Richard Grin - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: NetBeans 15 giving last used notification for NetBeans 11
On Thu, 15 Sept 2022 at 17:21, Joseph Huber wrote: > I'm running NetBeans 15 from the zip distribution on Windows 10 Professional. > Periodically, when I start the program, I get the notification "NetBeans 11 > was last used X days ago." This message is also listed in the Notifications > window. I don't have NetBeans 11 installed anymore. > > Is there a way to make this stop? It's trying to suggest you delete the unneeded user directory for NB11. Just click the notification and choose to delete or not, and whether to keep checking. You can also switch off the Janitor in Tools / Options / Misc. / Janitor. Best wishes, Neil - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Remove breakpoint in JSP file
Perfect! Thank you. Mitch On 9/15/22 11:14, Thomas Kellerer wrote: Mitch Claborn schrieb am 15.09.2022 um 17:58: NetBeans 12.6 Somehow I ended up with a breakpoint in a JSP file. How can I get rid of it? I've tried right click > Toggle Line Breakpoint but it does not remove the breakpoint. I can enable/disable it with a right click, not that that helps anything. You can display the list of all break points through "Window -> Debugging -> Breakpoints" From there you should be able to delete everything. - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
NetBeans 15 giving last used notification for NetBeans 11
Hi! I'm running NetBeans 15 from the zip distribution on Windows 10 Professional. Periodically, when I start the program, I get the notification "NetBeans 11 was last used X days ago." This message is also listed in the Notifications window. I don't have NetBeans 11 installed anymore. Is there a way to make this stop? Thank You! Joe Huber Standard Refrigeration LLC - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Remove breakpoint in JSP file
Mitch Claborn schrieb am 15.09.2022 um 17:58: NetBeans 12.6 Somehow I ended up with a breakpoint in a JSP file. How can I get rid of it? I've tried right click > Toggle Line Breakpoint but it does not remove the breakpoint. I can enable/disable it with a right click, not that that helps anything. You can display the list of all break points through "Window -> Debugging -> Breakpoints" From there you should be able to delete everything. - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Remove breakpoint in JSP file
NetBeans 12.6 Somehow I ended up with a breakpoint in a JSP file. How can I get rid of it? I've tried right click > Toggle Line Breakpoint but it does not remove the breakpoint. I can enable/disable it with a right click, not that that helps anything. -- Mitch - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: problem with the Properties>Libraries window in NetBeans 15
Hi, Please open an issue for this - https://netbeans.apache.org/participate/report-issue.html Is this related to the scrollbars appearing? If you resize the window do they come back? Best wishes. Neil On Mon, 12 Sept 2022 at 19:39, Joseph Huber wrote: > Hello! > > > > I’ve been using NetBeans 15 for a few days on Windows 10 Pro. There seems > to be an issue with the Properties>Libraries windows (Ant project) as shown > below. After adding a certain number of libraires (somewhere around 5-7), > the “+” signs for adding things to Modulepath and Classpath disappear. It > seems that they will come back if enough libraries are deleted. When the > “+” signs have disappeared, one can still add libraries by right-clicking > “Libraries” in the Projects tree. Is this a bug, or am I doing something > wrong? > > > > > > > > > > > > Thank You! > > > > Joe Huber > > Standard Refrigeration LLC > > >
Re: NB 15 no linux installer anymore?
On Wed, 14 Sept 2022 at 05:10, Mark A. Flacy wrote: > Snap requires systemd to work. Many, but not all, linux distributions use > systemd. > > If your distro doesn't use systemd, don't expect snap to work for you. There is also a Flatpak option (which I don't think requires systemd), although I don't know who is providing it - https://flathub.org/apps/details/org.apache.netbeans Lots of options around! Personally, while I like that we have a Snap, I don't agree with it being the best Linux experience, which is why we're (ie. Codelerity / Gj IT) providing a DEB. The all-arch DEB that relies on system JDK could in theory be released as an ASF artefact. I'm planning to look at whether we can do a release of NBPackage before NB16 to facilitate that, as well as looking at other package formats in time. Any thoughts on priorities there? Best wishes, Neil - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: NetBeans 14/15 not scanning for external changes on Mac
> On 15. Sep 2022, at 3:52, Michael Bien wrote: > > On 07.09.22 23:33, Ludvík Michálek wrote: >> Update: I found the cause of the issue, finally (thanks Stan). >> >> 1) I've created a git repository where I saved "default" preferences created >> by fresh install of NB > > nice! i used to do that too for my whole etc folder once to debug OS issues. > >> 2) next, I overwrote those preferences with the backup of my previous >> preferences >> 3) I compared the commits / made diff on the files and then went >> step-by-step and replaced/reverted the files >> >> Finally I found the single one that caused the problem: >> >> File: >> /Library/Application >> Support/NetBeans/15/config/Preferences/org/netbeans/modules/masterfs/ui.properties >> >> This file contains single line: >> org.netbeans.io.suspend=1 >> >> I have changed the value from 1 to 0 and it works, while keeping all my >> previous preferences! So all my issues were just caused by this single >> boolean value. I don't understand which process and under which >> circumstances writes this value, but definitely the Scan for external >> changes was heavily affected by this, although the UI option seemed to be >> enabled. > > fyi: this property is set by the second button next to the memory graph in > the tool bar ("Pause I/O Checks"). And it will indeed stop netbeans from > listening to external file changes as long its enabled. Interesting - I don't use the NB internal debugger for my projects, I must have run it accidentally, but I don't realize that I would click the Pause I/O button - maybe some accidental keyboard shortcut? Anyway, now I know how to fix it in the future :-) Thanks for this hint! :-) > good that you found the issue :) > > -mbien > >> >> Hope this helps anyone in the future. >> >> Thanks everyone, >> >> Ludvik >> >> >> >>> On 7. Sep 2022, at 22:17, Ludvík Michálek wrote: >>> >>> Thanks to all of you that responded today (Alexander, Rtherman59), thanks >>> for your tips! >>> >>> Finally, the tip below from Stan helped and saved me! >>> >>> I can't believe I forgot such simple thing like removing/moving preferences >>> - the thing I always recommend to others :) This helped perfectly, although >>> I will have to explore how to get most of my previous preferences back, >>> since I really miss them - I've been importing them since v6, year by year.. >>> >>> THANKS again, you saved my day(s)! >>> >>> Have a great day everyone, >>> >>> Ludvik >>> >>> >>> >>> On 7. Sep 2022, at 14:30, Giles Winstanley wrote: One thing I've noticed over the last few NB releases (on macOS) is that it's been very haphazard/flaky at reliably working after importing settings from a previous version. On both NB14/15 I've had to start over with a fresh/blank preferences folder for it to work reliably (and this even without any non-standard plugins). Whether this has any bearing on your situation I don't know, but that would be my first thing to try, and one you don't mention in your list of things you've already tried. Simplest thing would be to rename the existing folder ($HOME/Library/Application Support/NetBeans/15) to something else (e.g. "15-old") while NB is closed, then reopen. It should essentially start from scratch; see if that works. If no change then you can revert to the old settings. Stan On 07/09/2022 12:16, Ludvík Michálek wrote: > Hello, > I have issue with NB suddenly stopped seeing external changes to files. I > am using this feature since NB 6/7 (or so) and it has been working well > all the time. > Suddenly, it stopped working. I have suspicion that it is related to > updating the JDK recently. > I am using the feature together with remote-upload feature of project, > but it does not work even without remote upload. > Before, when I created a file or folder in Finder, NetBeans automatically > refreshed and showed the changes in the Project/Files tree. > Now I have to run the "Scan for external changes" menu command all the > time, which completely wastes my workflow, because I use external > watchers (webpack or gulp) to build the project and then rely on NetBeans > to upload the changes to remote server. > I have tried almost everything, googled whole day but found no solution, > nothing helped: > * creating another, clean project > * reinstalling NB, updating from version 14 to 15 > * uninstalling and reinstalling JRE > * uninstalling and reinstalling JDK > * checking permissions > * enabling Security>Accessibilty and Security>Full-disk access to > NetBeans and java processes > * re-enabling "Miscellaneous > Files > Enable auto-scanning of > sources" option in Options > * restarting NB > * restarting Mac > * .. everything above in different order, several times :(