Re: [VOTE] Release Apache NetBeans 12.6 Linux installer
+1 (not binding) RHEL 8.4 Kai On 11/24/2021 3:20 PM, Neil C Smith wrote: Hi, Vote for Apache NetBeans 12.6 Linux installer. Primary voting artefact : https://dist.apache.org/repos/dist/dev/netbeans/netbeans-installers/12.6/Apache-NetBeans-12.6-bin-linux-x64.sh SHA512 checksum : https://dist.apache.org/repos/dist/dev/netbeans/netbeans-installers/12.6/Apache-NetBeans-12.6-bin-linux-x64.sh.sha512 d6617b90eb2e32d7037d136e6cef6c2753c856f036a831157473b9da5fcb258ca0a92e6590d4ff2a385572bd6bbe1e163f5daa81655c6bc1e7690c474c5cbca9 KEYS file : https://dist.apache.org/repos/dist/release/netbeans/KEYS PGP signature file : https://dist.apache.org/repos/dist/dev/netbeans/netbeans-installers/12.6/Apache-NetBeans-12.6-bin-linux-x64.sh.asc Built by Jenkins job : https://ci-builds.apache.org/job/Netbeans/job/netbeans-TLP/job/netbeans/job/release126/14/ This vote is going to be open at least 72 hours, vote with +1, 0, and -1 as usual. Please mark your vote with (binding) if you're an Apache NetBeans PMC member. This vote is dependent on the main Apache NetBeans 12.6 release vote passing. Thanks and best wishes, Neil - To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org For additional commands, e-mail: dev-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: dev-unsubscr...@netbeans.apache.org For additional commands, e-mail: dev-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Declarative Java Hints: Syntax help
Hi Jan, thank you for confirming and having a look at this. I tried to wrap my head around the jackpot execution, but I got lost somewhere in the java compiler code. I'm looking forward to see what a magic is necessary to fix this ;-) Greetings Matthias Am Samstag, dem 27.11.2021 um 23:11 +0100 schrieb Jan Lahoda: > Hi, > > That rule should be working - a more general rule would be something like: > if ($expr instanceof $type $name) { > $stmts$; > } else $else$; > => > if ($expr instanceof $type) { > $type $name = ($type) $expr); > $stmts$; > } else $else$; > ;; > > I am working on it. > > Jan > > > On Wed, Nov 24, 2021 at 12:54 AM Michael Bien wrote: > > > Hi Matthias, > > > > looks like jackpot doesn't understand > > > > if (o instanceof Integer i) > > > > yet. > > > > I tested with: > > > > if ($origVar instanceof $T $t) { > > } > > => > > if ($origVar instanceof $T $t) { > > } > > ;; > > > > and it never initialized $T or $t. > > > > > > There is a "Changing source level to 1.8" line in the log, I saw that > > before but never had time to investigate, its possible that jackpot > > can't match anything beyond 8 language level because of that (if at all > > related to this issue). > > > > another thing what jackpot doesn't understand is the short form of > > lambdas, e.g: > > $stream.mapToObj(($x) -> $x) > > > > never matches anything > > > > -michael > > > > On 23.11.21 23:37, Matthias Bläsing wrote: > > > Hi, > > > > > > it would be great if someone could give me a hint what I'm missing: > > > > > > I would like to rewrite a pattern matching if into a if checking the > > > condition and then doing the necessary cast. > > > > > > Basicly: > > > > > > if (o instanceof FancyObject fancy) { > > > doSomethingWithFancy(fancy); > > > } > > > > > > Should become: > > > > > > if (o instanceof FancyObject) { > > > FancyObject fancy = (FancyObject) o; > > > doSomethingWithFancy(fancy); > > > } > > > > > > And yes - the intention is to lower the source level from 14+ to 8. > > > > > > I tried this: > > > > > > -- > > > if ($origVar instanceof $targetClass $targetName) { > > > $body$; > > > } > > > => > > > if ($origVar instanceof $targetClass) { > > > $targetClass $targetName = ($targetClass) $origVar; > > > $body$; > > > } > > > ;; > > > -- > > > > > > But that resulted in an partial rewrite: > > > > > > -- > > > public class Mavenproject1 { > > > public static void main(String[] args) { > > > Object o = 1; > > > if(o instanceof Integer i) { > > > System.out.println("Integer: " + i); > > > } > > > } > > > } > > > -- > > > > > > became > > > > > > -- > > > public class Mavenproject1 { > > > > > > public static void main(String[] args) { > > > Object o = 1; > > > if(o instanceof $targetClass) { > > > $targetClass $targetName = ($targetClass) o; > > > System.out.println("Integer: " + i); > > > } > > > } > > > } > > > -- > > > > > > So it was matched and $origVar was picked up correctly, but the other > > > variables are totally ignored. > > > > > > What am I missing?! > > > > > > Greetings > > > > > > Matthias > > > > > - To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org For additional commands, e-mail: dev-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Declarative Java Hints: Syntax help
On Sat, Nov 27, 2021 at 11:11 PM Jan Lahoda wrote: > Hi, > > That rule should be working - a more general rule would be something like: > I meant: that is a rule that should do what you want, and the fact it is not working is a bug. Jan if ($expr instanceof $type $name) { > $stmts$; > } else $else$; > => > if ($expr instanceof $type) { > $type $name = ($type) $expr); > $stmts$; > } else $else$; > ;; > > I am working on it. > > Jan > > > On Wed, Nov 24, 2021 at 12:54 AM Michael Bien wrote: > >> Hi Matthias, >> >> looks like jackpot doesn't understand >> >> if (o instanceof Integer i) >> >> yet. >> >> I tested with: >> >> if ($origVar instanceof $T $t) { >> } >> => >> if ($origVar instanceof $T $t) { >> } >> ;; >> >> and it never initialized $T or $t. >> >> >> There is a "Changing source level to 1.8" line in the log, I saw that >> before but never had time to investigate, its possible that jackpot >> can't match anything beyond 8 language level because of that (if at all >> related to this issue). >> >> another thing what jackpot doesn't understand is the short form of >> lambdas, e.g: >> $stream.mapToObj(($x) -> $x) >> >> never matches anything >> >> -michael >> >> On 23.11.21 23:37, Matthias Bläsing wrote: >> > Hi, >> > >> > it would be great if someone could give me a hint what I'm missing: >> > >> > I would like to rewrite a pattern matching if into a if checking the >> > condition and then doing the necessary cast. >> > >> > Basicly: >> > >> > if (o instanceof FancyObject fancy) { >> > doSomethingWithFancy(fancy); >> > } >> > >> > Should become: >> > >> > if (o instanceof FancyObject) { >> > FancyObject fancy = (FancyObject) o; >> > doSomethingWithFancy(fancy); >> > } >> > >> > And yes - the intention is to lower the source level from 14+ to 8. >> > >> > I tried this: >> > >> > -- >> > if ($origVar instanceof $targetClass $targetName) { >> > $body$; >> > } >> > => >> > if ($origVar instanceof $targetClass) { >> > $targetClass $targetName = ($targetClass) $origVar; >> > $body$; >> > } >> > ;; >> > -- >> > >> > But that resulted in an partial rewrite: >> > >> > -- >> > public class Mavenproject1 { >> > public static void main(String[] args) { >> > Object o = 1; >> > if(o instanceof Integer i) { >> > System.out.println("Integer: " + i); >> > } >> > } >> > } >> > -- >> > >> > became >> > >> > -- >> > public class Mavenproject1 { >> > >> > public static void main(String[] args) { >> > Object o = 1; >> > if(o instanceof $targetClass) { >> > $targetClass $targetName = ($targetClass) o; >> > System.out.println("Integer: " + i); >> > } >> > } >> > } >> > -- >> > >> > So it was matched and $origVar was picked up correctly, but the other >> > variables are totally ignored. >> > >> > What am I missing?! >> > >> > Greetings >> > >> > Matthias >> > >> > >> > - >> > To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org >> > For additional commands, e-mail: dev-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: dev-unsubscr...@netbeans.apache.org >> For additional commands, e-mail: dev-h...@netbeans.apache.org >> >> For further information about the NetBeans mailing lists, visit: >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists >> >> >> >>
Re: Declarative Java Hints: Syntax help
Hi, That rule should be working - a more general rule would be something like: if ($expr instanceof $type $name) { $stmts$; } else $else$; => if ($expr instanceof $type) { $type $name = ($type) $expr); $stmts$; } else $else$; ;; I am working on it. Jan On Wed, Nov 24, 2021 at 12:54 AM Michael Bien wrote: > Hi Matthias, > > looks like jackpot doesn't understand > > if (o instanceof Integer i) > > yet. > > I tested with: > > if ($origVar instanceof $T $t) { > } > => > if ($origVar instanceof $T $t) { > } > ;; > > and it never initialized $T or $t. > > > There is a "Changing source level to 1.8" line in the log, I saw that > before but never had time to investigate, its possible that jackpot > can't match anything beyond 8 language level because of that (if at all > related to this issue). > > another thing what jackpot doesn't understand is the short form of > lambdas, e.g: > $stream.mapToObj(($x) -> $x) > > never matches anything > > -michael > > On 23.11.21 23:37, Matthias Bläsing wrote: > > Hi, > > > > it would be great if someone could give me a hint what I'm missing: > > > > I would like to rewrite a pattern matching if into a if checking the > > condition and then doing the necessary cast. > > > > Basicly: > > > > if (o instanceof FancyObject fancy) { > > doSomethingWithFancy(fancy); > > } > > > > Should become: > > > > if (o instanceof FancyObject) { > > FancyObject fancy = (FancyObject) o; > > doSomethingWithFancy(fancy); > > } > > > > And yes - the intention is to lower the source level from 14+ to 8. > > > > I tried this: > > > > -- > > if ($origVar instanceof $targetClass $targetName) { > > $body$; > > } > > => > > if ($origVar instanceof $targetClass) { > > $targetClass $targetName = ($targetClass) $origVar; > > $body$; > > } > > ;; > > -- > > > > But that resulted in an partial rewrite: > > > > -- > > public class Mavenproject1 { > > public static void main(String[] args) { > > Object o = 1; > > if(o instanceof Integer i) { > > System.out.println("Integer: " + i); > > } > > } > > } > > -- > > > > became > > > > -- > > public class Mavenproject1 { > > > > public static void main(String[] args) { > > Object o = 1; > > if(o instanceof $targetClass) { > > $targetClass $targetName = ($targetClass) o; > > System.out.println("Integer: " + i); > > } > > } > > } > > -- > > > > So it was matched and $origVar was picked up correctly, but the other > > variables are totally ignored. > > > > What am I missing?! > > > > Greetings > > > > Matthias > > > > > > - > > To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org > > For additional commands, e-mail: dev-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: dev-unsubscr...@netbeans.apache.org > For additional commands, e-mail: dev-h...@netbeans.apache.org > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > >
RE: Re: [DISCUSS] Default to FlatLaf in NetBeans 13?
I'd say, avoid customization in both the installer and on startup. It's a lot better to have a robust discussion about defaults here, and then stick to whatever we decide. There are hundreds of options that can be customized, and there is real value-add in _not_ requiring the user (especially new users) to know about or touch them. We also don't want a situation where we end up having two different user interfaces for setting the same options. A user that changed the LAF from a startup dialog or installer would then have to find and use a _different_ user interface (the Options dialog) to change it again later. -- Eirik -Original Message- From: Neil C Smith Sent: Saturday, November 27, 2021 4:53 AM To: dev@netbeans.apache.org Subject: Re: Re: [DISCUSS] Default to FlatLaf in NetBeans 13? On Sat, 27 Nov 2021 at 08:32, Jaroslav Tulach wrote: > NetBeans IDE was always keen on to work "out of the box" - e.g. as > little dialogs on 1st start as possible. If you want prior launch > customization, put it into installer. But what is the difference? In general, I agree with you. This thread has gone on a bit of a tangent, which is about a default that works better out of the box. I don't think we need a dialog for this option. I do think we need to fix up the current dialogs, and probably look at putting some of this stuff on a revamped start page. However, the problem with putting options in the installers is the assumption that everyone uses them. And that there's a one-to-one relationship between installation and userdir. Neither applies. Whatever we do should work however people get hold of and run the IDE. I also think NBI either needs a lot of work or replacing. I'm in the latter camp, obviously! :-) Best wishes, Neil - To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org For additional commands, e-mail: dev-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [VOTE] Release Apache NetBeans 12.6 Linux installer
+1 (binding) Ubuntu 20.04 Thanks, Junichi On Wed, Nov 24, 2021 at 11:21 PM Neil C Smith wrote: > > Hi, > > Vote for Apache NetBeans 12.6 Linux installer. > > Primary voting artefact : > > https://dist.apache.org/repos/dist/dev/netbeans/netbeans-installers/12.6/Apache-NetBeans-12.6-bin-linux-x64.sh > > SHA512 checksum : > > https://dist.apache.org/repos/dist/dev/netbeans/netbeans-installers/12.6/Apache-NetBeans-12.6-bin-linux-x64.sh.sha512 > d6617b90eb2e32d7037d136e6cef6c2753c856f036a831157473b9da5fcb258ca0a92e6590d4ff2a385572bd6bbe1e163f5daa81655c6bc1e7690c474c5cbca9 > > KEYS file : > > https://dist.apache.org/repos/dist/release/netbeans/KEYS > > PGP signature file : > > https://dist.apache.org/repos/dist/dev/netbeans/netbeans-installers/12.6/Apache-NetBeans-12.6-bin-linux-x64.sh.asc > > Built by Jenkins job : > > https://ci-builds.apache.org/job/Netbeans/job/netbeans-TLP/job/netbeans/job/release126/14/ > > This vote is going to be open at least 72 hours, vote with +1, 0, and > -1 as usual. Please mark your vote with (binding) if you're an Apache > NetBeans PMC member. > > This vote is dependent on the main Apache NetBeans 12.6 release vote passing. > > Thanks and best wishes, > > Neil > > - > To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org > For additional commands, e-mail: dev-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: dev-unsubscr...@netbeans.apache.org For additional commands, e-mail: dev-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [VOTE] Release Apache NetBeans 12.6 mac OSX Installer
+1 macOS 12.0.1 Amazon Corretto JDK 17 On Sat, Nov 27, 2021 at 2:44 AM John Kostaras wrote: > +1 > MacOSX 10.13.6 > Oracle JDK 17 > > JK > > > > Στις Παρ, 26 Νοε 2021, 6:39 π.μ. ο χρήστης Scott Palmer < > swpal...@gmail.com> > έγραψε: > > > +1 > > macOS 12.0.1 intel > > Zulu “full” JDK 17.0.1 > > > > Scott > > > > > On Nov 24, 2021, at 10:30 AM, John Mc > wrote: > > > > > > Hi, > > > > > > We can vote for Apache NetBeans 12.6 mac OSX installer. > > > > > > Primary voting artefact: > > > > > > https://dist.apache.org/repos/dist/dev/netbeans/netbeans-installers/12.6/Apache-NetBeans-12.6-bin-macosx.dmg > > > > > > KEYS file: > > > https://dist.apache.org/repos/dist/release/netbeans/KEYS > > > > > > PGP signature file: > > > > > > https://dist.apache.org/repos/dist/dev/netbeans/netbeans-installers/12.6/Apache-NetBeans-12.6-bin-macosx.dmg.asc > > > > > > SHA512 checksum file: > > > > > > https://dist.apache.org/repos/dist/dev/netbeans/netbeans-installers/12.6/Apache-NetBeans-12.6-bin-macosx.dmg.sha512 > > > > > > Built locally using the artefacts found in the Jenkins job: > > > > > > > > > https://ci-builds.apache.org/job/Netbeans/job/netbeans-TLP/job/netbeans/job/release126/14/ > > > > > > NOTE: macOS versions prior to 10.14.4 require the Swift 5 Runtime to be > > > installed to launch Apache NetBeans > > > > > > This vote is going to be open at least 72 hours, vote with +1, 0, and > -1 > > as > > > usual. > > > Please mark your vote with (binding) if you're an Apache NetBeans PMC > > > member. > > > Apache NetBeans-12.6 mac OSX Installer will be released if and when > this > > > vote passes. > > > > > > Regards > > > > > > John > > > > - > > To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org > > For additional commands, e-mail: dev-h...@netbeans.apache.org > > > > For further information about the NetBeans mailing lists, visit: > > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > > > > > > > -- Carl J. Mosca
Re: Re: [DISCUSS] Default to FlatLaf in NetBeans 13?
On Sat, 27 Nov 2021 at 08:32, Jaroslav Tulach wrote: > NetBeans IDE was always keen on to work "out of the box" - e.g. as little > dialogs on 1st start as possible. If you want prior launch customization, > put it into installer. But what is the difference? In general, I agree with you. This thread has gone on a bit of a tangent, which is about a default that works better out of the box. I don't think we need a dialog for this option. I do think we need to fix up the current dialogs, and probably look at putting some of this stuff on a revamped start page. However, the problem with putting options in the installers is the assumption that everyone uses them. And that there's a one-to-one relationship between installation and userdir. Neither applies. Whatever we do should work however people get hold of and run the IDE. I also think NBI either needs a lot of work or replacing. I'm in the latter camp, obviously! :-) Best wishes, Neil - To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org For additional commands, e-mail: dev-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Re: [DISCUSS] Default to FlatLaf in NetBeans 13?
NetBeans IDE was always keen on to work "out of the box" - e.g. as little dialogs on 1st start as possible. If you want prior launch customization, put it into installer. čt 25. 11. 2021 v 20:37 odesílatel Eric Bresie napsal: > If the setup dialog is seen as useless then why not make it useful? > > I still think some additional customization wouldn’t be the end of the > world. When setting up as I recall (see below link for specifics) there is > the following dialogs: > > (1) customize dialog > (1a) select specific packs/runtimes > That's is what the installer already does, right? > (2) licenses > License is Apache. No need for any dialogs. > (3) Netbean home and JDK home > Both have reasonable defaults. (4) Summary/check for update > Check for update used to be done as the last step in installer. Keep it there. > For that matter could just as easily open up the Options to allow some > customization and/or Plugins dialog during install? > Once the IDE is installed. You can ask it to do something (show options). That's how the installer checks for updates - it asks the IDE to update itself. > For that matter IntelliJ allows look and feel customization at setup. It’s > not completely unjustified. > While many treat that IDE as a "UI specification", I don't. In case of out of box experience I'd rather eliminate as many options/dialogs/questions on 1st start as possible. -jt