Re: Recognizing environment variable while running java app in NB 12.0

2020-10-08 Thread Pete Whelpton
Hi Gary, System.getEnv() will return O/S environment variables. E.g. System.out.println("Path: " + System.getenv("PATH")); would print my current PATH variable. System.getProperty() is what you are thinking of. E.g. adding -Denv=dev to my VM options in Netbeans, then calling System.out.println("

Re: Relative URL

2020-10-06 Thread Pete Whelpton
I see the Payara team have just submitted a Pull Request to resolve the issue: https://github.com/apache/netbeans/pull/2423 So hopefully this will be fixed in an upcoming version of Netbeans. P On Tue, Oct 6, 2020 at 10:33 AM Som Lima wrote: > Fantastic. > > > On Tue, 6 Oct 2020

Re: Relative URL

2020-10-06 Thread Pete Whelpton
Hi Som, Are you creating a Maven Web project? If so, it could be this issue (a conflict between the Maven Web project type and the Payara Micro Application project type): https://issues.apache.org/jira/browse/NETBEANS-4559 If it is this issue, you can work around it to some degree by: * Open Pr

Re: Sql editor autocompletion support

2020-10-02 Thread Pete Whelpton
There is some very basic autocomplete support, based on an old ISO SQL spec (no vendor specific keywords). However, the autocomplete popup is hard coded in such a way that it will only popup after a . character (e.g. If you are typing scema.table it would popup for the table) You can get the basi

Re: Please help with configuration

2020-07-31 Thread Pete Whelpton
You can set a specific JDK in the netbeans.conf file in the /etc directory in the Netbeans installation folder. Look for the line: #netbeans_jdkhome="/path/to/jdk" delete the # to uncomment it, and change /path/to/jdk to the path to your JDK installation. I believe you can (should) still use for

Re: Changing comment character

2020-05-05 Thread Pete Whelpton
echo "Compiling [...] scss..." > > [...]/dart-sass/sass scss/main_frontend.scss css/frontend.css > --style=compressed > > echo "" > echo "Sending to server..." > scp css/* [...]@[...]:[...]/css > > -----

Re: Changing comment character

2020-05-04 Thread Pete Whelpton
Hi! Sorry to hear you are having problems. When you say you are having errors, do you mean a) Netbeans highlights errors in the compiled CSS file b) the Dart Sass compiler throws errors or c) the compiled CSS is invalid? Can you provide examples of the errors? If a), then it is most likely beca

Re: 11.3 - cannot download Payara Server

2020-04-05 Thread Pete Whelpton
Hi Mike, Tested yesterday on a Windows box, and was able to download/unpack Payara 5.194 via the NetBeans UI. I think combined with the 504 error, this would suggest a temporary blip at the remote end. Thanks for flagging this! Cheers, P On Sat, Apr 4, 2020 at 2:01 PM Mike Ryan wrote: > > H

Re: {NetBeans IDE] {JAVA]

2019-10-14 Thread Pete Whelpton
Hi Lou, Sounds like one of two things: 1) The linker needs to access that .so file and can't - probably because it is in the home directory of the pi user. If you move the jdk folder under /usr/lib/ (on my Linux laptop I tend to stick all the different version of Java I have in /usr/lib/jdk/) wi

Re: Reserved keywords for SQL files

2019-06-26 Thread Pete Whelpton
> > > > [image: EmailSig-TaglineVersion] > > > > *From:* Pete Whelpton > *Sent:* Wednesday, June 26, 2019 3:29 PM > *To:* Greenberg, Gary > *Cc:* NetBeans Mailing List > *Subject:* Re: Reserved keywords for SQL files > > > > netbeans/ide/dbapi/src/or

Re: Reserved keywords for SQL files

2019-06-26 Thread Pete Whelpton
netbeans/ide/dbapi/src/org/netbeans/modules/db/api/sql/SQLKeywords.java I think.. On Wed, 26 Jun 2019, 23:11 Greenberg, Gary, wrote: > I am working with SQL scripts in the NB 11 right now and noticed that good > portion of keywords in it are marked in blue colors, while tables and > column names

Re: Help me with this Issue please.

2019-06-17 Thread Pete Whelpton
The ; between "left" and "!important" is causing the parser error. If you remove it, the parser error should go away. If that property is to be flagged !important, then there should just be a single ; after "!important". You will probably still have a parser warning for "alignment" as it isn't a

Re: Sass comple error

2019-05-07 Thread Pete Whelpton
Hi Peter, I was able to configure a workaround. Hopefully this will work for you. :) The problem appears to be that NetBeans SASS support was written for the original Ruby SASS implementation. The root cause is that the ide/css.prep/src/org/netbeans/modules/css/prep/sass/SassExecutable.java cla

Re: Error at running glassfish server 5.0

2019-03-12 Thread Pete Whelpton
Hi Pedro! This is caused by the module system in JDK9+ preventing access to that resource bundle. Gaurav has kindly provided a fix for the upcoming NB11.0 https://github.com/apache/incubator-netbeans/pull/1152 Cheers! P On Tue, 12 Mar 2019, 05:58 Pedro Eli de Leon Robledo, < pedro.deleo...@ou

Re: Debugging Node.js

2019-03-07 Thread Pete Whelpton
org/en/docs/inspector > > But then the executable stops immediately… so, not sure where that’s > going.. > > On Mar 5, 2019, at 12:26 PM, Geertjan Wielenga < > geertjan.wiele...@googlemail.com> wrote: > > Be super-awesome, Jess! :-) > > Gj > > On Tuesday, March

Re: Debugging Node.js

2019-03-05 Thread Pete Whelpton
Hi Jessica, I believe it is: webcommon/javascript.nodejs/src/org/netbeans/modules/javascript/nodejs/exec/NodeExecutable.java There are a couple of constants near the top of the file: DEBUG_BRK_COMMAND & DEBUG_COMMAND If you want to be super-awesome and submit a pull request, the existing issue i

Re: Css error with netbeans and bootstrap 4

2019-02-11 Thread Pete Whelpton
I had a v. quick skim through the NB CSS parser code, and at first glance it appears that there might be two problems: 1) The parser doesn't seem to support custom attributes (those starting -- e.g. --blue) 2) The parser doesn't seem to support the @supports Conditional "at rule" If you would be

Re: Background project color is not the same then project

2019-01-28 Thread Pete Whelpton
Hi Marc, City Lights just changes the Editor component. Are you trying to set a dark theme for all of Netbeans? If so, you can try: 1) Download the Darcula plugin from: http://plugins.netbeans.org/plugin/62424/darcula-laf-for-netbeans 2) In NB, Tools Menu -> Plugins -> Downloaded -> Add Plugins

Re: Recommendations for RCP for Netbeans

2018-11-01 Thread Pete Whelpton
Hi Muhammad, JavaFX Rich Client Programming on the NetBeans Platform by Gail Anderson & Paul Anderson Rich Client Programming: Plugging into the NetBeans Platform by Geertjan Wielenga, Jaroslav Tulach, Tim Boudreau The Definitive Guide to NetBeans™ Platform 7 by Heiko Böck Are all currently av

Re: Netbeans ant build script not finding Log4j2 V2.11.1 module-info.class

2018-10-04 Thread Pete Whelpton
On Thu, Oct 4, 2018 at 8:52 AM Pete Whelpton wrote: > Hi Emma, > > Yes, I think there is something awry with the log4j-api-2.11.1.jar. To > get it working just using ModulePath, I first: > > 1) Opened the log4j-api-2.11.1.jar file in Archive Manager > > 2) Copied the module-

Re: Netbeans ant build script not finding Log4j2 V2.11.1 module-info.class

2018-10-04 Thread Pete Whelpton
Hi Emma, Yes, I think there is something awry with the log4j-api-2.11.1.jar. To get it working just using ModulePath, I first: 1) Opened the log4j-api-2.11.1.jar file in Archive Manager 2) Copied the module-info.class file from /META-INF/versions/9/ folder to the root of the archive After both

Re: [NBP] Some annoying questions..

2018-09-30 Thread Pete Whelpton
nga wrote: > In general, advisable to use Lookup instead of Cookies, please get > leanpub.com/nbp4beginners. > > Gj > > On Sun, Sep 30, 2018 at 10:28 AM Pete Whelpton > wrote: > >> Thanks Geertjan :) >> >> I've made the repo public for the moment, in case

Re: [NBP] Some annoying questions..

2018-09-30 Thread Pete Whelpton
tform application that > contains these problematic areas and then someone can advise. > > Gj > > On Sat, Sep 29, 2018 at 2:25 PM Pete Whelpton wrote: > >> >> Hello all :) Apologies in advance for the newbie NBP questions. I have >> already been through the NBP API docu

[NBP] Some annoying questions..

2018-09-29 Thread Pete Whelpton
Hello all :) Apologies in advance for the newbie NBP questions. I have already been through the NBP API documentation and Netbeans sources, which is how I've got to where I am, but I'm a bit stumped now. Any pointers, no matter how small, gratefully received! 1)Modular approach for project

Re: Best Netbeans Book

2018-05-04 Thread Pete Whelpton
I learned from: https://www.amazon.co.uk/JavaFX-Client-Programming-Netbeans-Platform/dp/B00QAT46PU For me, personally, the first few chapters went into Swing & JavaFX in a bit more detail than I wanted, and the later chapters about NPP didn't go into quite as much granular detail asI wanted... b

Re: [VOTE] Apache NetBeans Logo

2018-03-01 Thread Pete Whelpton
#2 On Thu, Mar 1, 2018 at 12:34 PM, Antonio wrote: > Hi all, > > For popular demand let's vote about the NetBeans Logo in the mailing list, > that's easier for everybody, right? This will close NETBEANS-145 [1]. > > The received entries are at [2]. > > Please state the icon identifer you vote fo

[Module Development] Visual editor for binary file type

2018-01-13 Thread Pete Whelpton
Hello - and apologies for what is probably a dumb question. I am trying to create a Netbeans plugin that allows editing of a binary file type (with is basically a two dimensional array) via a Visual Editor containing a JTable. I have a model class that extends AbstractTableModel, and I have follo