Re: Json validation

2019-04-22 Thread Wade Chandler
On Mon, Apr 22, 2019, 17:24 Mark Eggers 
wrote:

> On 4/16/2019 10:23 AM, Greenberg, Gary wrote:
> > I sure do have one. Here it is.
> >
>
> It looks like a BOM for UTF-8.
>

For further information on BOMs in JSON see
https://tools.ietf.org/html/rfc7159#section-8.1; not allowed; to tie the
loop.

Wade


Re: NB 11 crashes on Mac

2019-04-17 Thread Wade Chandler
See this too 
https://lists.apache.org/thread.html/6cea044b220876ef9eba9068e3ec28bb8283e116b65e3ea4078af9c1@%3Cusers.netbeans.apache.org%3E
 


I was thinking perhaps it was due to an older JDK build, but we were talking 
1.8 range, and with you having it in Java 11 then not sure. The linked Java 2D 
bug is still open, so this may be an opportunity for us to try to track it down.

Wade

> On Apr 17, 2019, at 2:58 PM, Thomas Wolf  wrote:
> 
> Yes, this doesn't happen on a regular basis.  I upgraded to NB 11 a few weeks 
> ago and it's happened 3-4 times so far.  And it invariably happens while NB 
> is not even being used (e.g. a bit after I come in to work, reconnecting my 2 
> external monitors to my MBP and while I'm reading news or mail; NB is 
> iconified or hidden behind the current window.)  I'm not even sure whether NB 
> 11 is to blame or the JRE.  When I switched from NB 8.2 to NB 11, I also 
> switched from a Java 8 VM to a Java 11 VM - maybe it's a bug in the VM.  When 
> a VM crashes on a Mac, does it produce a core dump somewhere?
> 
> Thnx,
> Tom
> 
> On Wed, Apr 17, 2019 at 2:08 PM Geertjan Wielenga  > wrote:
> If you can provide a way for the problem to be reproduced, or the log files 
> exactly at the moment where the crash happens, we can try to investigate. 
> 
> But if I understand it correctly, this only happens after you’re using 
> multiple monitors, switching things off, switching things on, leaving work, 
> coming home, switching off and on, and a few other things like that?
> 
> Gj
> 
> On Wed, 17 Apr 2019 at 13:36, Thomas Wolf  > wrote:
> Hi Geertjan,
> This was a crash of the NB JVM, so I didn't think NB would have had an 
> opportunity to write anything before it croaked.  But I went to Application 
> Support/NetBeans/11.0/var/log and checked there to see if there was the 
> equivalent of a core dump.  But just the messages.  Since  I had restarted NB 
> since the crash, I looked in messages.log.1 to see if there were any messages 
> prior to the crash.  Looking back a couple hundred lines back from the end of 
> the log, I see:
>   WARNING 
> [org.netbeans.modules.javascript2.editor.formatter.FormatContext]: Tried to 
> remove EOL
>   WARNING [null]: Last record repeated again.
>   WARNING [null]: Last record repeated again.
> 
> followed by 167 WARNING messages like this:
>   WARNING [org.netbeans.modules.editor.bracesmatching.MasterMatcher]: 
> Origin offsets out of range, origin = [671, 698], caretOffset = 727,
>   lookahead = 1, searching forward. Offending BracesMatcher: 
> org.netbeans.modules.html.editor.HtmlBracesMatching@1293bde1
> 
> with only the coordinates & the caretOffset changing.  Followed by the 
> WARNING message:
>   WARNING [org.netbeans.modules.versioning.util.Utils]: 
> associateEncoding() no file object available for
>   
> /var/folders/gz/86n0ss0j65q2v4mk50wfnx8hgn/T/vcs-1555092873422/vcs-1555362477084/index.html
> 
> followed by the WARNING message:
>   WARNING [org.netbeans.core.TimableEventQueue]: too much time in AWT 
> thread null
> 
> followed by three WARNING messages like this one:
>   WARNING [org.netbeans.core.TimableEventQueue]: too much time in AWT 
> thread org.netbeans.modules.sampler.InternalSampler@662b36a1
> 
> That's it.  Since there are no time stamps on any of these entries, I have no 
> idea whether these happened just before the crash or hours/days before.  Is 
> there anywhere else I should/could be looking for clues?  Is this info enough 
> to go on to open a Jira ticket?
> 
> Thanks,
> Tom
> p.s. here's the beginning of the log file:
> 
> >Log Session: Friday, April 12, 2019 at 2:14:24 PM Eastern Daylight Time
> >System Info:
>   Product Version = Apache NetBeans IDE 11.0 (Build 
> incubator-netbeans-release-404-on-20190319)
>   Operating System= Mac OS X version 10.14.4 running on x86_64
>   Java; VM; Vendor= 11.0.1; Java HotSpot(TM) 64-Bit Server VM 
> 11.0.1+13-LTS; Oracle Corporation
>   Runtime = Java(TM) SE Runtime Environment 11.0.1+13-LTS
>   Java Home   = 
> /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home
>   System Locale; Encoding = en_US (nb); UTF-8
>   Home Directory  = /Users/thwolf
>   Current Directory   = /
> 
> 
> On Wed, Apr 17, 2019 at 11:55 AM Geertjan Wielenga  > wrote:
> You’re always going to find NetBeans messages and log files in the user 
> directory.
> 
> Gj
> 
> 
> On Wed, 17 Apr 2019 at 11:47, Thomas Wolf  > wrote:
> Thanks Josh for your environment.  Here's mine (should have included that 
> with my initial post):
> Build incubator-netbeans-release-404-on-20190319)
> Java: 11.0.1; Java HotSpot(TM) 64-Bit Server VM 

Re: [PLATFORM] API (Documentation) Updates

2019-04-17 Thread Wade Chandler
Please following mailing list netiquette, and don’t highjack someones thread 
with an off topic question. If you search this and the devs mailing list, can’t 
rem which one, you’ll see this question answered.

Wade



> On Apr 9, 2019, at 1:45 PM, Robert Erdt  wrote:
> 
> The Netbeans 11 is looking great, is there any support for weblogic?
>  
> From: Geertjan Wielenga [mailto:geertjan.wiele...@googlemail.com.INVALID] 
> Sent: Tuesday, April 09, 2019 10:48 AM
> To: Patrik Karlström 
> Cc: us...@netbeans.incubator.apache.org
> Subject: Re: [PLATFORM] API (Documentation) Updates
>  
> https://bits.netbeans.org/dev/javadoc/apichanges.html 
> 
>  
> https://bits.netbeans.org/10.0/javadoc/apichanges.html 
> 
>  
> https://bits.netbeans.org/9.0/javadoc/apichanges.html 
> 
>  
> Gj
>  
>  
> On Tue, Apr 9, 2019 at 4:46 PM Patrik Karlström  > wrote:
>> I'm really happy to see the maven artifacts for NB10 & NB11, 
>> but coming from NB82 makes me think of all the new stuff I don't know 
>> anything about.
>>  
>> How can one as developer of a platform based application keep track of 
>> changes made to new releases of the platform?
>>  
>> Patrik



Re: c/c++: static function usages cannot be collected

2019-04-17 Thread Wade Chandler
I too like C++, and am waiting on the C/C++ support from the Oracle donations 
to appear before digging in. My guess is this is something missing 
(bug/limitation), but as I’m not using NetBeans 8.2 nor working on those 
sources I can’t be sure. Once that donation is done, supporting “Modern C++” is 
one of my goals for NetBeans. I’ll see if I can see anything in any sources I 
have later today that might help.

Wade



> On Apr 15, 2019, at 4:34 PM, Pablo Chin  wrote:
> 
> Hello,
> 
> I have a C/C++ "Project with Existing Sources"  in Netbeans 8.2.   For Code 
> Assitance, I'm using CLang.  I configured Code Assistance to Search file 
> system for C/C++ header files.
> 
> After parsing the project, I'm only able to find functions for which a 
> declaration exists in a .h file.  Any other static functions in the 
> corresponding .c file result in "Usages for  cannot be 
> collected".
> 
> For example, if the .c file has a static function like this:
> 
> static bool foo(void) 
> {
> ...
> }
> 
> Then, "Find Usages" of 'foo' result in "The original element being refactored 
> is not available.  Usages for foo cannot be collected."
> 
> Is there a setting in Nebeans that I'm missing that will allow Code 
> Assistance to "find" static functions like the one mentioned?
> 
> Thank you.



Re: add JavaC in Netbeans platform application

2019-04-17 Thread Wade Chandler
If you already have a platform project, then you already depend on some NB
modules. Per what you mentioned about Python, I'm assuming you mean to have
the Java editor etc, and as NB already has this ability built in, you can
depend on it.

It's default is to use javac if nb-javac isn't available. Anyways, that is
literally dependencies on the base IDE and Java support like any other NB
modules; even the base ones.

Adding nb-javac is some extra steps according to Neil, but even without
that NB has Java support.

Do you want to do something specific which isn't in the NB Java support?

Wade

On Wed, Apr 17, 2019, 09:23 Krishna Mohan  wrote:

> dear friends
>
> I am still a bit confused here:
> Does it mean that need to include  lib while I compile the
>  application and to include a JAVA COMPILER in it ?
> I am sure that some have already experimented with it ...
>
> Any help will be appreciated, greatly...
> Thanks
>
> On Tue, Apr 16, 2019 at 12:15 PM Krishna Mohan 
> wrote:
>
>> Hi All
>>
>> I want to use a JavaCompiler or JavaC as like in the standard Netbeans
>> IDE in my  application.
>>
>> Is any plugins are available? I know there is a Plugin for Python and it
>> works well for  application. So, is there any similar
>> plugins are available for Java?
>>
>> thanks in advance
>>
>> Km
>>
>


Re: add JavaC in Netbeans platform application

2019-04-16 Thread Wade Chandler
NetBeans is all modular. It depends on what you want to do. That said, you
can depend on the NetBeans Java support and it to your app. You can package
the separate nb-javac project as well.

Hope it helps

Wade


On Tue, Apr 16, 2019, 02:45 Krishna Mohan  wrote:

> Hi All
>
> I want to use a JavaCompiler or JavaC as like in the standard Netbeans IDE
> in my  application.
>
> Is any plugins are available? I know there is a Plugin for Python and it
> works well for  application. So, is there any similar
> plugins are available for Java?
>
> thanks in advance
>
> Km
>


Re: NetBeans 11.0-vc4 crash

2019-04-16 Thread Wade Chandler
I guess that should be update 202 versus build 202.

On Tue, Apr 16, 2019, 19:15 Wade Chandler  wrote:

> Interesting; I do see this; seems a Java 2D JDK bug. Not sure I have hit
> this yet.
>
> https://bugs.openjdk.java.net/browse/JDK-8133783
>
> I'm using the latest 1.8 (build 202) and 11 from https://adoptopenjdk.net
>
> Not sure if it could be something inadvertently fixed in later OpenJDK
> code or not even though the bug is marked as open.
>
> Is this continually happening to you in a reproducible way? If so, may
> want to try it out, and too, open a Jira issue. There you can attach the NB
> log with the loaded modules etc which may help another see if it can be
> reproduced.
>
> Hope it helps,
>
> Wade
>
>
>
> On Wed, Apr 10, 2019, 09:18 Philip Durbin  wrote:
>
>> Do not fear. I did save the text from when Netbeans crashed and I'm
>> attaching it (netbeans-crash.txt). I sure hope there's nothing super
>> private in there. I assume it's safe to share publicly or you wouldn't be
>> encouraging me to. :)
>>
>> Also, here's my Java version:
>>
>> $ java -version
>> openjdk version "1.8.0_192"
>> OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_192-b12)
>> OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.192-b12, mixed mode)
>>
>> Thanks,
>>
>> Phil
>>
>> On Fri, Apr 5, 2019 at 12:58 AM Antonio  wrote:
>>
>>> Hi Phil,
>>>
>>> This looks like an issue with your own JDK.
>>>
>>> If this happens again, will you please post the full _text_ of the error
>>> instead of a screenshot? There's important info if you scroll down in
>>> that image! Even better: file a JIRA issue with that.
>>>
>>> Thanks,
>>> Antonio
>>>
>>> El 04/04/2019 a las 21:16, Philip Durbin escribió:
>>> > I don't know if you want crash reports or not but this just appeared
>>> in the
>>> > output of mine (first crash of NetBeans 11.0-vc4 for me):
>>> >
>>> > Thread 46:: Java:
>>> org.netbeans.modules.glassfish.common.LogViewMgr$LoggerRu
>>> >
>>> > This is on Mac. I'll attach a screenshot.
>>> >
>>> > Thanks,
>>> >
>>> > Phil
>>> >
>>> >
>>> >
>>> > -
>>> > 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
>>>
>>>
>> -
>> 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 11.0-vc4 crash

2019-04-16 Thread Wade Chandler
Interesting; I do see this; seems a Java 2D JDK bug. Not sure I have hit
this yet.

https://bugs.openjdk.java.net/browse/JDK-8133783

I'm using the latest 1.8 (build 202) and 11 from https://adoptopenjdk.net

Not sure if it could be something inadvertently fixed in later OpenJDK code
or not even though the bug is marked as open.

Is this continually happening to you in a reproducible way? If so, may want
to try it out, and too, open a Jira issue. There you can attach the NB log
with the loaded modules etc which may help another see if it can be
reproduced.

Hope it helps,

Wade



On Wed, Apr 10, 2019, 09:18 Philip Durbin  wrote:

> Do not fear. I did save the text from when Netbeans crashed and I'm
> attaching it (netbeans-crash.txt). I sure hope there's nothing super
> private in there. I assume it's safe to share publicly or you wouldn't be
> encouraging me to. :)
>
> Also, here's my Java version:
>
> $ java -version
> openjdk version "1.8.0_192"
> OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_192-b12)
> OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.192-b12, mixed mode)
>
> Thanks,
>
> Phil
>
> On Fri, Apr 5, 2019 at 12:58 AM Antonio  wrote:
>
>> Hi Phil,
>>
>> This looks like an issue with your own JDK.
>>
>> If this happens again, will you please post the full _text_ of the error
>> instead of a screenshot? There's important info if you scroll down in
>> that image! Even better: file a JIRA issue with that.
>>
>> Thanks,
>> Antonio
>>
>> El 04/04/2019 a las 21:16, Philip Durbin escribió:
>> > I don't know if you want crash reports or not but this just appeared in
>> the
>> > output of mine (first crash of NetBeans 11.0-vc4 for me):
>> >
>> > Thread 46:: Java:
>> org.netbeans.modules.glassfish.common.LogViewMgr$LoggerRu
>> >
>> > This is on Mac. I'll attach a screenshot.
>> >
>> > Thanks,
>> >
>> > Phil
>> >
>> >
>> >
>> > -
>> > 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
>>
>>
> -
> 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: Json validation

2019-04-15 Thread Wade Chandler
Pretty sure .json files themselves are validated like other file types;
editor lot has it built in. Do you have a reproducible file you can share?

Wade


On Mon, Apr 15, 2019, 18:06 Greenberg, Gary  wrote:

> I know that Netbeans has a feature to validate XML files and I used it
> extensively when XML was main method to define requests and responses in
> REST API.
>
> Nowadays JSON almost completely replaced XML in that role.
>
> Is there a plugin or something to validate JSON or help to check it for
> errors?
>
> I do have pretty big JSON file which somewhere contain an error, but
> cannot find it easily.
> Netbeans marks the opening brace with an error flag, which tells me *Token
> recognition at “*
>
> Going through it for ½ hour and can’t spot any errors.
>
> Gary Greenberg
>
> Staff Software Engineer
>
> Data Product Development, BI-A
>
> E: ggree...@visa.com
>
> M: 650-269-7902
>
>
>
> [image: EmailSig-TaglineVersion]
>
>
>


Re: [RESULT] [VOTE] Recommend 'Apache NetBeans graduation to Top Level Project' resolution to board

2019-04-11 Thread Wade Chandler
Great news indeed! Thanks and congratulations to everyone who has
contributed in any way including the Apache mentors Bertrand, Ate, Daniel,
and Jim.

A big special thanks to Geertjan, Jirka, Jarda, Tim, Jesse, Bruno, Milos,
Tomas, Jan, and all the other old hats from NetBeans including the NBDT
members; a lot of years and hard work behind all of this; decades!

Everything we ever did looks like it will have a long and open life! I'm so
proud of you all.

After Bruno Souza and some of us started the "Dream Team" (say that without
feeling cheesy), we created a mission statement:

"The NetBeans Dream Team strives to make the NetBeans open source project
more accessible to our user, contributor, and partner communities."

Geertjan and Jirka helped us carry on that mission.

I can't think of a better way to complete it than here at Apache with it's
open and passion driven model "The Apache Way" and a TLP. Can it be more
accessible?!

Thanks for all the great years of fun, experiences and learning! Here's to
more!

Wade



On Thu, Apr 11, 2019, 08:50 Geertjan Wielenga
 wrote:

> Hi all,
>
> All the discussions and votes have succeeded -- and the Apache Board will
> be recommended to graduate Apache NetBeans to a top level project at its
> next meeting.
>
> Congrats everybody, for the great work done together and the even greater
> work to come!
>
> Thanks,
>
> Gj
>
> -- Forwarded message -
> From: Geertjan Wielenga 
> Date: Thu, Apr 11, 2019 at 1:18 PM
> Subject: [RESULT] [VOTE] Recommend 'Apache NetBeans graduation to Top
> Level Project' resolution to board
> To: 
>
>
> Hi all,
>
> Many thanks for the enthusiasm and encouragement -- the vote thread[1] has
> been open for 72 hours and the vote has passed:
>
> 18 +1 votes (and no 0 or -1 votes).
>
> Thanks,
>
> Geertjan
> on behalf of Apache NetBeans
>
> [1]
> https://lists.apache.org/thread.html/9d7c5d2048f8050fa0e438c5b14ea75c60a52ef479694f79f32e86b6@%3Cgeneral.incubator.apache.org%3E
>


Testing please ignore; having issues

2018-08-04 Thread Wade Chandler
Testing please ignore; having issues

-
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: Removal of org-jdesktop-layout

2018-07-12 Thread Wade Chandler
Sometimes in those cases you'll have to go outside the IDE. I would open up
a good editor, and then replace those packages with the same layout from
Swing; GroupLayout. You have to remember to edit the .form file as well.

Wade



On Thu, Jul 12, 2018, 06:57 Luff,Chris 
wrote:

> Morning people, the removal of org.netbeans.api:org-jdesktop-layout means
> we now have to use swing, no problem. But what if the form editor created
> the code. I am uplifting the scala plugin in prep for approval of the
> voting candidates but I can't modify the form generated code?!? Is there an
> override? Removing the form editor coupling?
>
> Thanks!
>
> Associate Principal Software Engineer | IP Development - Care Insight and
> Delivery Dev | chris.l...@cerner.com | +44 (0)7970 735175 | Cerner Limited
> 
>
> **Join us on Microsoft Teams
> 
> **
>
>
>
> CONFIDENTIALITY NOTICE This message and any included attachments are from
> Cerner Corporation and are intended only for the addressee. The information
> contained in this message is confidential and may constitute inside or
> non-public information under international, federal, or state securities
> laws. Unauthorized forwarding, printing, copying, distribution, or use of
> such information is strictly prohibited and may be unlawful. If you are not
> the addressee, please promptly delete this message and notify the sender of
> the delivery error by e-mail or you may call Cerner's corporate offices in
> Kansas City, Missouri, U.S.A at (+1) (816)221-1024. Cerner Limited,
> Registered in England no 2519305, Registered Office 37 North Wharf Road,
> London W2 1AF.
>


Re: Do you use NetBeans with SVN or CVS?

2018-03-08 Thread Wade Chandler
This is a discussion for the dev channel whether to remove something or
not. The data should tell us if we should remove something or not; first
step. Too, it is another Apache top level project.

Thanks

Wade


On Mar 8, 2018 08:36, "Brett Ryan"  wrote:

>
> > On 8 Mar 2018, at 23:28, Thomas Kellerer  wrote:
> >
> > Deprecate Subversion? Really? This is still wildly used.
>
> It shouldn’t be, and we should discourage its continued use. Unsupported
> plugins available to provide capability is how it should be handled.
>
> I treat svn/cvs like IE8, let’s discourage its use by not supporting. If
> your starting a new project with svn or cvs you should question why.
>
> Trimming legacy helps reduce edge cases and helps deliver value going
> forward without the need to worry about edge cases.
>
> > Brett Ryan schrieb am 08.03.2018 um 13:25:
> >> I thought we deprecated both of these years ago? Actually wasn’t CVS
> taken out in 7.?
> >>
> >>> On 8 Mar 2018, at 21:56, David Heffelfinger  > wrote:
> >>>
> >>> All,
> >>>
> >>> This year I'm leading the NetCAT Version Control Tribe. We need
> >>> volunteers that are using NetBeans with CVS or SVN to help us test
> >>> integration with these two VCS tools.
> >>>
> >>> If you are using NetBeans with either one, we could really use your
> >>> help. Please sign up at
> >>> https://cwiki.apache.org/confluence/display/NETBEANS/
> NetCAT+9.0+Participants.
> >>>
> >>> Thanks!
> >>> David
> >
> >
> > -
> > 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
>
>