Re: NetBeans Cache Cleanup

2022-12-14 Thread Tim Boudreau
Since I keep two user dirs and cache dirs on purpose (because projects that use jigsaw that depend on libraries that use Automatic-Module-Name on their manifest get broken in the editor if you ever open the non-modular project in the IDE), it could really use a “Don’t ask this again” checkbox. -Ti

Re: Tests triggered via push to master of fork?

2022-10-12 Thread Tim Boudreau
I’ve run into this elsewhere - if you’re naively triggering off of pushes using GitHub actions, well, when someone clones your repo, they’re also cloning your actions, and if they reach out to something to trigger a build (or in the case where I ran across this, publishing notifications to Zulip),

Re: my plugins rely on maven plugin but don't know how to load it programatically

2022-07-20 Thread Tim Boudreau
I have used its API in my antlr plugins and would be happy to look it over. On Wed, Jul 20, 2022 at 12:31 PM Svata Dedic wrote: > It is, but I'd like at least some time (and ideally some > colleague/companion for the work - it's big) for +- reviewing / > polishing the API before publishing > > -

Re: Netbeans Output Encoding

2022-07-18 Thread Tim Boudreau
When you say “NetBeans output”, do you mean - Process output in the output window? (which, by the way, is UTF-16 under the hood, but whatever writes to it needs to know what character set it’s feeding to it if it’s coming from a process) - The encoding of logs Means NetBeans emits? - Some other

Re: API change

2022-05-11 Thread Tim Boudreau
The way this has been handled in the past has been to make the method (or class) non-public, so it’s not visible in, say, javadoc, and then have the build bytecode-patch it to be public so it’s binary compatible. At least I know we did it for some classes in openide.aww, because I deleted a non-pu

nb-javac on JDK 17

2022-03-13 Thread Tim Boudreau
Is there an update for using nb-javac with JDK 17? I've been finding, for some runs of NetBeans, parsing and semantic highlighting do not work, and you get some log messages saying that a null parser was returned for whatever file is being parsed. I had been using version 15 (or is it JDK 15 spec

Visual Tabs update

2022-03-13 Thread Tim Boudreau
For anyone using my blingy Visual Library based editor tab control https://github.com/timboudreau/visual-library-tabcontrol I just pushed a few updates, and it's available from my update server: https://timboudreau.com/modules In particular, an optimization to defer and coalesce rapidly fired cha

Re: Cannot retrieve key publish_apidoc, this is forShould we publish this Apidoc

2022-02-12 Thread Tim Boudreau
FWIW, the following patch and deleting nbbuild/build manually got things building. It may be that the patch is unnecessary and just manually cleaning would have done it (I didn't really examine what the code I patched does, but it appears to be something that is trying to generate release details

Re: Cannot retrieve key publish_apidoc, this is forShould we publish this Apidoc

2022-02-12 Thread Tim Boudreau
I just pulled and am unable to build anything either. -Tim On Sat, Jan 29, 2022 at 10:14 AM Eric Bresie wrote: > Any ideas? > > Eric Bresie > ebre...@gmail.com > > > On Fri, Jan 28, 2022 at 1:54 PM Eric Bresie wrote: > > > Pulled from upstream master and see the following when attempting and >

Re: License Changer Netbean Plugin

2022-01-17 Thread Tim Boudreau
d here > > http://plugins.netbeans.org/plugin/17960/license-changer but not > available > > on the new plugin portal ( > > https://plugins.netbeans.apache.org/?search=license-changer&nbv=&cat= ). > > > > One of the above articles mentions it was developed b

Re: Add support for other programming languages

2022-01-10 Thread Tim Boudreau
FWIW, I took a crack at making https://github.com/drrb/rust-netbeans work better a few years ago, with limited results. In particular, their Antlr grammar generates insanely deep trees that are not great for performance. I have been working on something more performant, also based on an ANTLR gram

j2seplatform?

2022-01-10 Thread Tim Boudreau
I attempted to update dependencies on a huge suite of modules last night, and notice that builds fail trying to download j2seplatform - and indeed, the newest version of that that seems to be available is RELEASE123: https://mvnrepository.com/artifact/org.netbeans.modules/org-netbeans-modules-java-

Re: Maven Daemon

2022-01-10 Thread Tim Boudreau
For multi-module builds, where it works (not everywhere), `mvn -T 8` (really you want `numCores * 2`) buys much faster builds. I'm not sure exactly how it falls down in topologically sorting the graph of what to build, but it occasionally does (for example, with my Antlr suite of 50+ modules, it w

Mavenized NetBeans contrib/

2021-12-29 Thread Tim Boudreau
FYI, thanks to Jarda’s mirror of the old bits.NetBeans.org maven repo, the Mavenized fork of the old NetBeans contrib/ repo is buildable once more: https://github.com/timboudreau/netbeans-contrib Is there a plan for this stuff ever to be contributed officially to Apache? Oracle would have to do t

Re: Apache JIRA vs GitHub issues / discussions

2021-12-29 Thread Tim Boudreau
GitHub’s bug tracker was, a few years ago, my gold standard for bug trackers - precisely because it lacked the oceans of useless enterprise features two people on earth actually want but everyone has to suffer with, which Jira is thick with. Alas it seems they started adding them. IMO, it is a thin

Re: Project opening blocked on network I/O

2021-11-25 Thread Tim Boudreau
r JavaFX cluster. > > st 17. 11. 2021 v 21:37 odesílatel Tim Boudreau > napsal: > > > I’ve noticed since I built a new build of NetBeans for coding a few weeks > > ago, that opening projects got dramatically slower. > > > > Pulling a few thread dumps, it appears

Project opening blocked on network I/O

2021-11-17 Thread Tim Boudreau
I’ve noticed since I built a new build of NetBeans for coding a few weeks ago, that opening projects got dramatically slower. Pulling a few thread dumps, it appears to be Feature-on-Demand triggering a query of all update servers just in case a project will need some absent feature. Known problem

Re: 13+17

2021-11-10 Thread Tim Boudreau
Ugh, phone swipe typing profile -> profiler Tara -> that’s Sorry, Tim On Wed, Nov 10, 2021 at 7:16 PM Tim Boudreau wrote: > FWIW, today locally I added a dep from the profile to an atomic bit set > library I wrote Tara in maven central. > > Just add the maven coordinat

Re: 13+17

2021-11-10 Thread Tim Boudreau
FWIW, today locally I added a dep from the profile to an atomic bit set library I wrote Tara in maven central. Just add the maven coordinates and hash (upper case for some reason) to external/binaries-list. Have a look at the groovy modules for the format - it’s pretty self-explanatory. I don’t

Re: Mocking framework

2021-10-20 Thread Tim Boudreau
Well, yes, but it doesn’t invent an entire implementation for you that returns null for everything, including things that can’t be. Mock services is fine - because you still wind up writing mocks, you just use that to plumb them into the default lookup. Different species of thing. -Tim On Tue, O

Re: Mocking framework

2021-10-09 Thread Tim Boudreau
I think it will buy you less than you think, but it’s probably harmless. I’ve got north of 20 years experience writing NetBeans’ code, and never felt the need for one. And I have to say, in my current gig I deal with a codebase with a lot of existing mock based tests. They are mostly useless othe

Re: System.out.print buffered to Output Window

2021-08-29 Thread Tim Boudreau
Maven does awful things with console output - particularly in tests. For tests, in the surefire configuration you can set false for real time output. Also set it not to fork or fork only once. -Tim On Sat, Aug 28, 2021 at 5:49 PM David Green wrote: > Probably good advice but I was trying to fo

Re: [DISCUSS] Compile with JDK-11 javac --release flag

2021-02-11 Thread Tim Boudreau
> > Upgrading > the javac.source (as opposed to target) might cause some issues, due to > changes to type inferred, although these are probably not very likely. > ...famous last words... -Tim

Re: NetBeans platform: roadmap for compatibility with recent JDKs and the Java module system?

2021-02-11 Thread Tim Boudreau
I did the contrib modules - here - https://github.com/timboudreau/netbeans-contrib (did that stuff ever get officially donated to Apache?) I think it's doable. Have some (ugly, hacky, but worked), tooling I used to generate pom files for modules and move stuff around - a project I started in 201

Abominable Groovy scanning performance

2020-12-17 Thread Tim Boudreau
Hi, all, So, about 8 weeks ago I took a new job at Amazon, working on some server-side tools stuff. Amazon, famously, has their own build system with some interesting quirks. Naturally I spent the first weekend after starting there writing a NetBeans plugin for it, which is getting pretty good -

Re: NB 12.2-rc2 Fedora 33 upload on run via SSH key stops working

2020-11-22 Thread Tim Boudreau
Is there a way to get NetBeans, if it shells out and calls an ssh binary, to pass, say, -vv to ssh so you can see what’s being exchanged (keep adding v’s for more verbose logging)? Did the keys on the host you’re connecting to change? Is the error message bogus and what’s really happening is your

Re: [Module] How to create a module that plays a sound whenever the Java parser detects an error

2020-10-15 Thread Tim Boudreau
You probably don't actually want to play a sound whenever the IDE detects an error - different parts of the IDE may request a reparse of the currently edited file (or any other file) for any reason at any time, including a single edit triggering several consecutive reparses, depending on the order

Re: API was: SVG icon graphics

2020-09-29 Thread Tim Boudreau
C Smith wrote: > On Mon, 21 Sep 2020 at 13:58, Tim Boudreau wrote: > > The objection I forsee is "But that would mean aggressively loading stuff > > into UIManager from every module". > > Surely only if you don't want to fix the problem?! > > > So here&

Re: IDE Icon Registry (The SVG Story Continues) (AKA What about to clean up some mess)

2020-09-29 Thread Tim Boudreau
I have thought long ago that if we wanted to have svg icons in NetBeans, we would be better off “compiling” them to a binary format that encapsulates the drawing instructions (could result in much smaller files than either XML, or PNG/GIF) - there are not many necessary bytes of information in “mov

Re: Re: Status of converting icons to SVG

2020-09-21 Thread Tim Boudreau
I have that a shot to - probably put more time into it than I should have. The killer is identifying gradients in order to detect shapes that are contiguous. Best results were simply finding a combination of channels in one or another color space that got you the most contiguous pixels up to a thre

Re: API was: SVG icon graphics

2020-09-21 Thread Tim Boudreau
Now, while we're discussing the API for SVG icons, one thing that seems painfully missing from VectorIcon - I did some considerable work on Imagine this winter - it now is more a vector editor than image editor, and loads and saves SVG - though it needs some more work whenever I get back to it. An

Re: API was: SVG icon graphics

2020-09-21 Thread Tim Boudreau
> > For example we have 28, hopefully the same, wait.gif in our current > codebase (also there is 4 incarnation of a wait.png) > > So I think the need of some kind of API is there. > You know, I think there is one already: https://docs.oracle.com/javase/9/docs/api/javax/swing/UIManager.html#getIco

Re: Speed of Maven build

2020-09-03 Thread Tim Boudreau
For larger multi-module projects, I'd tend to suspect that a substantial chunk of the time is I/O-bound, parsing XML - build one project with a substantial dependency tree. How many POM files both in the project and under ~/.m2 need to parsed? It would be interesting to instrument Maven and get s

Handy way to switch JDKs quickly from a shell

2020-08-22 Thread Tim Boudreau
Since I wind up testing things on multiple JDKs frequently, I thought I'd share a handy tool for quickly swapping both JAVA_HOME, and its values from $PATH: http://timboudreau.com/files/fixpath You just set up shell aliases source the output of it. Usage: 0. Have nodejs on your path (depending

Re: Status of Ant vs Maven

2020-08-12 Thread Tim Boudreau
My 2c: - Ant and Ant-based projects are never going away, the same way that Makefiles are never going away - even if nobody uses them for new projects anymore, the need to interoperate with legacy code will not disappear - I'd be in favor of making Maven projects the default thing that's pre-sel

Re: Post-install user experience

2020-08-09 Thread Tim Boudreau
> > > From the history of the PR: It breaks existing code/tests, so is > basicly not mergeable. > > One observation about High DPI/antialias changes: Work should be done > to fix Swing Upstream to provide sensual defaults, its not as if > netbeans is the only Swing Application. If it is not done on

Re: Post-install user experience

2020-08-09 Thread Tim Boudreau
I am not a committer here. I was a committer on netbeans.org. -Tim On Sat, Aug 8, 2020 at 1:07 PM Geertjan Wielenga wrote: > Hopefully we won’t need nb-javac forever and since you’re a committer, why > not merge your PR? > > Gj > > On Sat, 8 Aug 2020 at 17:57, Tim Boudrea

Post-install user experience

2020-08-08 Thread Tim Boudreau
In order to double check that my update server had complete dependencies, I installed a freshly-built build from master a couple of days ago and ran it on a clean userdir - same experience anyone downloading it for the first time will have. Issues: - Microscopic font sizes on a high-dpi screen an

Re: nb-javac is now available !

2020-08-06 Thread Tim Boudreau
I do seem to be seeing fewer AssertionErrors from deep in the bowels of javac while typing, so it seems like an improvement. -Tim On Thu, Aug 6, 2020 at 5:21 AM Neil C Smith wrote: > On Thu, 6 Aug 2020 at 10:15, Arvind Aprameya > wrote: > > Neil, can we let you know by end of today if we can w

Re: How to debug netbeans

2020-08-06 Thread Tim Boudreau
Google it and you will find plenty of tutorials. Geertjan's blog is full of stuff - hopefully it survived his transition from Oracle. -Tim On Thu, Aug 6, 2020 at 8:21 AM marcos paulo wrote: > Tim Boudreau, > > thanks for your suggestion, i agree with you!!!like you said, that w

Re: How to debug netbeans

2020-08-06 Thread Tim Boudreau
I've been developing NetBeans itself and plugins for it for 21 years now. In that time I have run a debugger against NetBeans maybe ONCE, to see if it worked. The startup time penalty, and the odds of winding up stepping through code you actually need to see, rather than marching endlessly through

Re: Status of JavaHelp

2020-07-25 Thread Tim Boudreau
Funny, I was recently adding help to an old NetBeans-based image/vector editor I've been toying with updating, and the idea of using Javadoc simply made me ill, so I wrote the beginnings of a help system from scratch, where help is generated in code annotations in Markdown, which an Antlr parser an

Re: How to extend the Find Usages

2020-07-11 Thread Tim Boudreau
Register a RefactoringPlugin (IIRC) against text/x-java that responds to WhereUsedQuery (double check these names - this is from memory). Google the javadoc for that and it should get you started. -Tim On Sat, Jul 11, 2020 at 11:59 PM Rafael Santini wrote: > Hi, > > What is the entry point to e

Re: Bypassing NetBeans Plugin Portal

2020-07-10 Thread Tim Boudreau
> > What does this offer in practice, assuming any catalogue is downloaded from > a trusted location over https, above validating the file against the file > hash in the catalogue? > Not all that much, given that if you can compromise the download, you can also compromise the hash. Mostly just th

Re: Bypassing NetBeans Plugin Portal

2020-07-10 Thread Tim Boudreau
On Thu, Jul 9, 2020 at 12:00 AM Ernie Rael wrote: > On 7/8/2020 6:48 PM, Tim Boudreau wrote: > > Isn’t that security threat the reason JAR signing was invented? > > I've heard that all, or almost all, plugin portal nbm's are self-signed. > > How does that a

Re: Bypassing NetBeans Plugin Portal

2020-07-08 Thread Tim Boudreau
Isn’t that security threat the reason JAR signing was invented? -Tim On Mon, Jul 6, 2020 at 1:12 PM Jaroslav Tulach wrote: > Hi. > Recently I have noticed discussion explaining how to bypass NetBeans > Plugin Portal. The > usual way is to create a NetBeans module extension to provide own update

Re: Lookup, optional method

2020-07-02 Thread Tim Boudreau
A year or two ago I might have +1'd this. Having used my own lookup-like API for something unrelated, that returns Optional, I can relate the following: - About half the time, if the Optional is actually not present, something has gone horribly, horribly wrong; so you either write code that assu

Re: How to self host the plugins

2020-07-02 Thread Tim Boudreau
One option is this - follow the link in the page head: https://timboudreau.com/modules So, set up Jenkins or similar somewhere to build your modules and archive the nbm file for each module. Run the server (just java -jar, no application servers), and add URLs to the last successful build link f

Re: Compatibility was: Updates to Apache NetBeans 12.0

2020-06-27 Thread Tim Boudreau
> > > In case of Batik, there may be someone creating a plugin for NetBeans 12.0 > that depends on it. It is (shall be) in our interest to make sure that > such > plugin continues to work "eternally". In fact, here is one right now (I've been giving some vector editor goodness to my old modularit

Re: AW: NETBEANS-1678: Option for coloring EOL - Could someone point at similar code?

2020-06-27 Thread Tim Boudreau
Funny, I implemented HighlightsContainer a while back for performance reasons (coalescing large numbers of overlapping highlights resulting in multi-second hangs), for the Antlr preview stuff where the highlighting gets regenerated frequently and can be very complex. A handy library for that (and

Re: Zulu with NetBeans

2020-06-27 Thread Tim Boudreau
I think if Azul is asking for some labor from the community here, some sort of contribution of value that supports the community might be a nice idea. Like, say, hosting update center mirrors or, given that mirror-based updates seem to be proving problematic for some people on corporate networks,

Re: NetBeans tests and character encoding

2020-06-25 Thread Tim Boudreau
> > > How can I fix opening file in > > https://github.com/apache/netbeans/blob/0636a9ece532761c582ff2062c7baebef72debf6/php/php.latte/test/unit/src/org/netbeans/modules/php/latte/indent/LatteIndenterTestBase.java#L61 > ? > > File is opened by calling "DataObject dobj = DataObject.find(fo);" where

Re: Gratuitous selenium dependencies added to Maven projects

2020-05-25 Thread Tim Boudreau
> > > Note that from 12.0 Beta 4 onwards, JUnit 4 is back in that dialog: > I'm running a build of git master from a couple of days ago, and it is there in mine too. > Maybe try that (I see in there right now in 12.0 Beta 5, the following: > JUnit, TestNG, JUnit4, and Selenium) and see if it hel

Re: Gratuitous selenium dependencies added to Maven projects

2020-05-25 Thread Tim Boudreau
n, May 25, 2020 at 11:09 AM Eric Barboni wrote: > > > Hi > > Cannot reproduce on Apache NetBeans 12 b5, windows 10. Only the junit are > > added not the selenium. > > > > Best Regards > > Eric > > > > -Message d'origine- > > De :

Re: Gratuitous selenium dependencies added to Maven projects

2020-05-24 Thread Tim Boudreau
Just reproduced it again on a NetBeans module project, on a different machine than I usually use for coding - different userdir, version of NetBeans, etc. I'm curious if anyone else can. Steps to reproduce: 1. Clone this repo: git clone g...@github.com:timboudreau/ANTLR4-Plugins-for-NetBeans.git

Re: MultiView using the mavenized module project

2020-05-18 Thread Tim Boudreau
Any chance your module with the file type is configured to be an *autoload* module? If so, the jar may not be opened until something that depends on it requires it, so your loader won't be registered. -Tim On Sun, May 17, 2020 at 4:56 PM John Kostaras wrote: > Hallo, > > I wonder if anybody has

Re: Netbeans notifications API

2020-05-18 Thread Tim Boudreau
> > I disagree with the "Much simpler". Everytime a java programm just > execs an external programm "some how" handles its output and tries to > do something intelligent with it, somewhere a small cute kitten dies. > As they do when you blindly assume some native library exists on a random user's

Re: Gratuitous selenium dependencies added to Maven projects

2020-05-18 Thread Tim Boudreau
//github.com/apache/netbeans/blob/accdbada0a9c5105bd3f06e435024230c1618316/java/selenium2.maven/src/org/netbeans/modules/selenium2/maven/Selenium2MavenSupportImpl.java > > Do you have any Selenium Tests, or Unit Test, and NetBeans somehow assumed > you wanted Selenium included? > > Regard

Gratuitous selenium dependencies added to Maven projects

2020-05-18 Thread Tim Boudreau
Every now and then, maybe once every few months over the last few years, I'll be working on a Maven project - maybe something completely unrelated to web development (at the moment it just happened to a NetBeans module project) - when I will notice the build behaving weirdly or downloading things t

Re: Netbeans notifications API

2020-05-17 Thread Tim Boudreau
If you're talking about notification-daemon, there is a command-line utility you could just exec, if present (maybe not as elegant, but also not as invasive or fragile). As an example, the following is the script I put in /etc/acpi/actions to make the volume button turn up the volume on my laptop

Re: Auto completion support for Database languages.

2020-03-30 Thread Tim Boudreau
Well, that shows how often I do SQL in anything other than a text console :-) -Tim On Mon, Mar 30, 2020 at 4:04 PM Matthias Bläsing wrote: > Hi, > > Am Montag, den 30.03.2020, 21:04 +0600 schrieb Brain Rebooting: > > Is there any possibility that Netbeans will support autocompletion for > > dat

Re: NetBeans javadoc

2020-03-30 Thread Tim Boudreau
In a maven project, right click the dependency in the project tree and choose “Download Javadoc”. -Tim On Sun, Mar 29, 2020 at 11:27 PM Ernie Rael wrote: > Can (and would) someone tell me how to hook up javadoc with code > completion of IDE modules? > > I can't find a download link anywhere, or

Re: Auto completion support for Database languages.

2020-03-30 Thread Tim Boudreau
I could coach someone through writing a plug-in too do that pretty easily, if someone digs up an Antlr grammar for SQL (the piece-de-resistance would be handling’s the different dialects - but basic SQL would be trivial to implement). -Tim On Mon, Mar 30, 2020 at 11:04 AM Brain Rebooting wrote:

Re: Configure line endings for editor

2020-03-26 Thread Tim Boudreau
Don’t people usually solve this at the level of git these days? I recall there was some setting for setting Unix line endings on the bits that get committed. -Tim On Thu, Mar 26, 2020 at 3:16 PM Sven Reimers wrote: > Hi, > > we actually have an issue with development splitted between linux and

Re: Memory usage text rendering issue

2020-02-28 Thread Tim Boudreau
gt; > On Fri, Feb 28, 2020 at 1:04 PM Peter Hull wrote: > > > > On Fri, 28 Feb 2020 at 10:37, Tim Boudreau wrote: > > > I happened to be around to chat with the author of that code > > Thanks for the info; I mentioned above that the code seemed strangely > > c

Re: Platform has to continue to support Java 8, imho was: Pull the plug from Java 8 in 12.1?

2020-02-28 Thread Tim Boudreau
If you like broken builds :-) On Fri, Feb 28, 2020 at 7:02 AM Eric Barboni wrote: > As I'm an expert in architecture :D kidding > > Can it be possible to have like two repository one for netbeans-platform > and netbeans with platform "seen as library" ? > With netbeans-platform jdk8 and the netb

Re: Memory usage text rendering issue

2020-02-28 Thread Tim Boudreau
> > > > and the current code *does* go through a BufferedImage. > That's what I figured... I'd recommend redoing it without. > DO NOT. I happened to be around to chat with the author of that code - Scott Violet, at the time one of the lead developers on the Swing team, when he rewrote that compon

Re: Pull the plug from Java 8 in 12.1?

2020-02-28 Thread Tim Boudreau
FWIW, I still run NetBeans daily on JDK 8, for reasons of stability - particularly assertion errors and other misbehavior from javac-related editor code, whenever I've tried to use 10 or later. And similarly, for libraries, everything I release on Maven central is still built against JDK 8 (there

Re: Github Actions: Quality: Codacy Reports

2020-01-26 Thread Tim Boudreau
Anything like that should be set up to use only a minimal subset of warnings that indicate genuine problems. Most of the ones I see on the linked page will be absurdly wrong at least some of the time. For example, the warning not to use fully qualified class names (which is harmless and in some si

Re: Remove outdated look and feels CDE/Motif and Windows Classic?

2020-01-09 Thread Tim Boudreau
If I recall correctly, at least at one time, the Windows classic tab control delegates were used by some other look and feel plug-ins (they were pretty generic and themeable, so they make a good vanilla tab delegate). I’d keep those around, even if not directly supported from the UI, so a plug-in c

Re: NB Platform apps only compile against the JDK running the IDE

2019-12-13 Thread Tim Boudreau
nnot depend on the same version of the library in question I expect most dependencies will not be a big deal. The main point of work would be generating the wrapper modules. -Tim > > > > On Thu, 12 Dec 2019 at 21:20, Tim Boudreau wrote: > > > Did you try to find a workabl

Re: NB Platform apps only compile against the JDK running the IDE

2019-12-12 Thread Tim Boudreau
p with Maven with 3rd party libs > < > https://lists.apache.org/thread.html/1377d9a39df8ac652d39c0d886ada3ce15bddb051517805363ea141b%40%3Cdev.netbeans.apache.org%3E > > > > > On Wed, 11 Dec 2019 at 19:37, Tim Boudreau wrote: > > > No clue about the bug, but a mitigation would be to

Re: NB Platform apps only compile against the JDK running the IDE

2019-12-11 Thread Tim Boudreau
No clue about the bug, but a mitigation would be to migrate your platform app to build with maven, which also makes dealing with libraries much simpler -Tim On Mon, Dec 9, 2019 at 9:39 PM Matteo Di Giovinazzo wrote: > Hi there, > has anyone any hint about this? > https://issues.apache.org/jira/b

Re: NetBeans bounty--earn $200!

2019-12-11 Thread Tim Boudreau
public class Bar { > public int wazoo; > } > > There is enough Information to know that the standard indentation is 1 > tab, but you don’t have enough information to know what the label > indentation or continuation indentation should be. The hard part is dealing with ambiguity. Real sour

Re: phantom "ambiguous method" errors when using Lombok

2019-12-10 Thread Tim Boudreau
FWIW, I have had similar problems when developing modules referencing code generated by the annotation processors for Antlr - doesn't happen often for me, but it does happen. Deleting the cache from the userdir fixes it (nothing else does) - it seems like the indexing plumbing gets something stuck

Re: Build failing locally

2019-12-03 Thread Tim Boudreau
FYI, I find myself needing to switch between JDKs enough that I set up some tooling to make that a single shell alias to do that cleanly (actually removing and replacing things from $PATH, rather then endlessly prepending more JAVA_HOME/bin dirs to it). That might make things simpler for anyone wh

Re: Splitting the netbeans_default_options in netbeans.conf

2019-11-25 Thread Tim Boudreau
Not sure if my previous post was clear enough. Here is part of my netbeans.conf copy/pasted: netbeans_default_options=" -J-DCachingArchiveProvider.disableCtSym=true -J-Dsun.java2d.opengl=true -J-XX:+IgnoreUnrecognizedVMOptions --fontsize 16 -J-Dawt.useSyste

Re: Want to know info about nbpython

2019-11-22 Thread Tim Boudreau
There is also a mavenized version of all of it here (I'm hoping we can find a process to have this become the "donation" whenever it gets approved - the git history shows it is the same code): https://github.com/timboudreau/netbeans-contrib -Tim On Fri, Nov 22, 2019 at 9:03 AM Geertjan Wielenga

Re: Using git push --force

2019-11-20 Thread Tim Boudreau
On Wed, Nov 20, 2019 at 2:36 PM Benjamin Asbach wrote: > So why > having these information in project history when it does not deliver any > additional value? > Because the point of developing software is to develop software, not please hypothetical future historians. -Tim

Re: Using git push --force

2019-11-18 Thread Tim Boudreau
I really don't see the point of squashing commits. I know, everybody would like to look like they write perfect, concise, error-free code the first time. But nobody does - and that seems to be the primary purpose. If you want to see the set of changes that implement a feature, it's not that hard

Re: Clarify how to use locally built platform with maven

2019-11-18 Thread Tim Boudreau
Regardless, all you have to do is set it in the parent pom (ideally with a good section with everything you're going to use), and then if the IDE adds to anything, delete it (really, I think the dependency adding feature should detect if the library is already referenced from the parent's sectio

Re: Cloud Based NetBeans

2019-11-18 Thread Tim Boudreau
I suspect for that to ever have legs, it would require the redefinition of what programming *is* to be amenable to one-finger, drag-and-drop operations on a tablet. And, well, people have been trying to do that since there have been programming languages. The complexity you need to express to do

Re: Splitting the netbeans_default_options in netbeans.conf

2019-11-17 Thread Tim Boudreau
Just split the line with \n instead of spaces and alpha sort at build time. FYI, my (ignores) font settings patch includes a parser/rewriter for NetBeans.conf that does exactly that. -Tim On Sun, Nov 17, 2019 at 1:40 PM Emilian Bold wrote: > Hello, > > I see the build system uses now the rathe

Re: Clarify how to use locally built platform with maven

2019-11-17 Thread Tim Boudreau
e the RELEASExxx that are found on Central. I tried creating an > app with one of those versions available on Central (e.g. RELEASE111) and > then changing all occurrences of RELEASE111 to RELEASE1234, but that didn't > work. It doesn't want to check the local m2 repo at all. >

Re: Clarify how to use locally built platform with maven

2019-11-16 Thread Tim Boudreau
ttps://netbeans.apache.org/participate/build-run-debug-tutorials.html > > > > On Fri, Nov 15, 2019 at 1:06 PM Tim Boudreau wrote: > > > If you mean, have a multi-module parent pom, and some way to run a module > > and have all its dependencies be found and included... as f

Re: NetBeans app with Maven with 3rd party libs

2019-11-15 Thread Tim Boudreau
> > I read lately some old thread about converting the contrib plugins to > Maven: > > https://lists.apache.org/thread.html/38228ec0bd9f47b014d9b7cff72665285c6227d39726373be6c7b82b@%3Cdev.netbeans.apache.org%3E > > > Any hint you can give us, Tim Boudreau? > > Thanks i

Re: Clarify how to use locally built platform with maven

2019-11-15 Thread Tim Boudreau
If you mean, have a multi-module parent pom, and some way to run a module and have all its dependencies be found and included... as far as I know, there is simply no good way to do that with the nbm-maven-plugin - it is a glaring feature gap. The (painful) workaround is to create an nbm-applicatio

Re: NetBeans Design

2019-11-12 Thread Tim Boudreau
Indeed. I've found it handy to create a shell alias for searching java sources - dirt simple, but handy in your .bashrc: alias jfind='find . -name "*.java" | xargs grep -i ' will find any java source containing whatever string you pass to it. -Tim

Re: NetBeans Design

2019-11-12 Thread Tim Boudreau
r lack of discipline. There are modules I wrote fifteen or more years ago and use daily, unmodified. Welcome to the wonderful world of non-trivial software :-) -Tim > > Food for thought. > > Many thanks to everyone who replied to my original post. > > Jeremy > > > On

Re: Help [WANTED] by skilled JavaScript gurus

2019-11-10 Thread Tim Boudreau
You should be using websockets. The link was too small to read on a phone, so: if Some basic building block requires the connection to be synchronous, get some new blocks - you're using the wrong ones. Having spent years developing a server framework in which NOTHING is synchronous, I'm pretty su

Re: RE: NetBeans Design

2019-11-06 Thread Tim Boudreau
A few people asked for a visual representation. I pulled this together a few years ago. Mostly it just illustrates why those kinds of representations are useless at scale. Package dependencies: https://timboudreau.com/files/nb-packagegraph/ Classes (IIRC trimmed down a LOT): https://timboudreau

Re: Future of old NetBeans bug tracker

2019-10-24 Thread Tim Boudreau
If Apache can host Bugzilla, why not kick Jira to the curb, dump old Bugzilla into new Bugzilla and carry on with Bugzilla? -Tim On Fri, Oct 18, 2019 at 12:56 PM Geertjan Wielenga wrote: > Hi all, > > As we know, we're on JIRA now, i.e., all issues are reported here: > > https://issues.apache.o

Re: Syntax highlighting question

2019-10-24 Thread Tim Boudreau
ful thing dedicated for assembler development, but not useful for others. > > > Thanks > From Peter > > From: Tim Boudreau > Sent: Thursday, October 17, 2019 4:06 AM > To: dev@netbeans.apache.org > Subject: Re: Syntax highlighting question > &

List of dark and light theme names

2019-10-17 Thread Tim Boudreau
I've got a weird query: I need to compile a list of all the popular light and dark editor themes for NetBeans - but, very specifically, the name of the folder in Editors/FontsColors in the system filesystem, not the localized display name. If you run a custom editor theme that's installed by a mo

Re: Syntax highlighting question

2019-10-16 Thread Tim Boudreau
Hi, Peter, I would strongly suggest we collaborate on that here: https://github.com/timboudreau/ANTLR4-Plugins-for-NetBeans - since that way, not only would it be implementable for Antlr, but for *any* language using an Antlr grammar (it is two layers of modules - one for writing language modules

Re: energy consumption

2019-10-14 Thread Tim Boudreau
SSD or "spinning rust" disk? That could make a big difference, though the GPU issue likely has something to do with it. -Tim On Sun, Oct 13, 2019 at 6:06 PM Peter Cheung wrote: > Hi All > Netbeans 11.1 eat up the notebook battery so fast. My macbook pro 15 > can only stand for 1.5 hour max

Re: Create+install+use Maven artefacts in local maven repo

2019-10-14 Thread Tim Boudreau
Here you go: https://github.com/timboudreau/netbeans-local-maven-repo-populator -Tim On Mon, Oct 14, 2019 at 2:16 PM Dmitry Avtonomov < dmitriy.avtono...@gmail.com> wrote: > Hi all, > I've seen that you just voted to release new archetypes for Maven. Is there > an easy way to do the same locall

Re: nbm, from ant to maven, still hand

2019-10-10 Thread Tim Boudreau
Add logging and enable it so you know the last time it did something. Get a thread dump when it hangs and see what's going on. And chance it's trying to call maven from the AWT event thread? That would make bad things happen. -Tim On Thu, Oct 10, 2019 at 2:47 PM Peter Cheung wrote: > sorry, ty

Re: Can anyone give me a help about developing antlr formatter

2019-10-08 Thread Tim Boudreau
Okay. If you'd like to try some stuff, I could hook you up with some modules. Antlr support - syntax highlighting, navigator panels, syntax tree views, has been working for a while; formatting is pretty solid now. I've spent the last week stabilizing the "live preview" functionality, which actua

Re: Aligning implementation and specification versions?

2019-10-02 Thread Tim Boudreau
+1 - I recently found that to have a preview for a formatter requires a friend dependency, which is ridiculous given that the API has not changed in many years. -Tim On Wed, Sep 25, 2019 at 7:29 AM Neil C Smith wrote: > On Sun, 25 Aug 2019 at 19:06, Jesse Glick wrote: > > A long time ago I wro

  1   2   >