2 very small issues noticed in VC3

2018-07-11 Thread Mike Billman
Not sure if this is proper time to report this (also no clue if it is something 
on my settings).  Has anybody else noticed these two things:

  *   Using windows 10, I click "pin to taskbar" and it switches to the old logo
  *   The right "alt" button does not seem work for any key combinations but 
the left "alt" does (standard us keyboard)

Mike Billman
Senior Software Engineer
CPTE

[qclogo]

11800 Conrey Rd
Suite 150
Cincinnati, OH 45249

T +1 513 469 1424
E mikebill...@qcsoftware.com
F +1 513 469 1425



Re: What will happen to NB 8.x (and earlier)?

2018-07-11 Thread Geertjan Wielenga
Agree completely.

Gj

On Wednesday, July 11, 2018, Neil C Smith  wrote:

> On Wed, 11 Jul 2018 at 18:19, Geertjan Wielenga
>  wrote:
> > From another perspective, 8.2 and earlier are all Oracle products,
> licensed
> > to Oracle, so that's up to Oracle to decide.
>
> But still open-source under CDDL / GPL!  There are mirrors around,
> including Emi's conversion to git
> (https://github.com/emilianbold/netbeans-releases), and we as a
> NetBeans community should ensure they continue to exist, whether or
> not Oracle keeps hosting the hg repository themselves, albeit outside
> of Apache officially of course.
>
> Best wishes,
>
> Neil
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
> For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>


Re: What will happen to NB 8.x (and earlier)?

2018-07-11 Thread Neil C Smith
On Wed, 11 Jul 2018 at 18:19, Geertjan Wielenga
 wrote:
> From another perspective, 8.2 and earlier are all Oracle products, licensed
> to Oracle, so that's up to Oracle to decide.

But still open-source under CDDL / GPL!  There are mirrors around,
including Emi's conversion to git
(https://github.com/emilianbold/netbeans-releases), and we as a
NetBeans community should ensure they continue to exist, whether or
not Oracle keeps hosting the hg repository themselves, albeit outside
of Apache officially of course.

Best wishes,

Neil

-
To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists





Re: What will happen to NB 8.x (and earlier)?

2018-07-11 Thread Geertjan Wielenga
We'll see, too early to tell, but the longer we can keep everything the
better.

>From another perspective, 8.2 and earlier are all Oracle products, licensed
to Oracle, so that's up to Oracle to decide.

Gj

On Wed, Jul 11, 2018 at 7:10 PM, Peter Nabbefeld 
wrote:

>
> Hello,
>
> I wonder what will happen to earlier versions of NetBeans - will there any
> be available for longer time, or will hg repository etc. be closed
> completely and probably removed?
>
> Kind regards
>
> Peter
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
> For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>


Re: Any chance to still get some change into 8.2?

2018-07-11 Thread Geertjan Wielenga
No more features for 8.2.

Gj

On Wed, Jul 11, 2018 at 7:12 PM, Peter Nabbefeld 
wrote:

>
> Hello,
>
> I'd need the patch for NETBEANS-1035 (making org.netbeans.modules.web.wicket
> a friend of html.editor and html.editor.lib) to also go into NB 8.2 - still
> any chance? Or no more features for 8.2?
>
> Kind regards
>
> Peter
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
> For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>


Any chance to still get some change into 8.2?

2018-07-11 Thread Peter Nabbefeld



Hello,

I'd need the patch for NETBEANS-1035 (making 
org.netbeans.modules.web.wicket a friend of html.editor and 
html.editor.lib) to also go into NB 8.2 - still any chance? Or no more 
features for 8.2?


Kind regards

Peter

-
To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists





What will happen to NB 8.x (and earlier)?

2018-07-11 Thread Peter Nabbefeld



Hello,

I wonder what will happen to earlier versions of NetBeans - will there 
any be available for longer time, or will hg repository etc. be closed 
completely and probably removed?


Kind regards

Peter

-
To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists





Re: How to set the read lock on TokenHierarchyOperation?

2018-07-11 Thread Peter Nabbefeld



Hi Junichi,

yes, thank You, that helped a lot, since I've been on the wrong trail - 
locked for sth. to fix in the area of the lexer. I'm not yet used to the 
Javac adoption by netbeans lexing and parsing logic.


Kind regards

Peter


Am 11.07.2018 um 13:02 schrieb Junichi Yamamoto:

e.g. 
https://github.com/OldGrumble/NBWicketSupport/blob/e846cdd2f949af4e78433d4e74ba427453a96546/src/main/java/org/netbeans/modules/web/wicket/tree/HtmlTreeBuilder.java#L53

AbstractDocument ad = (AbstractDocument) doc;
ad.readLock();
try {
 TokenHierarchy th = TokenHierarchy.get(ad);
 // something here...
} finally {
 ad.readUnlock();
}

HTH,
Junichi

On Wed, Jul 11, 2018 at 7:38 PM Peter Nabbefeld  wrote:


Hello,

I'm -still looking through some parts of the code, while extending the
module otherwise. I just found this trace in the log/output window,
which I probably just didn't notice before (because a bunch of other
logging messages follows):

INFO [org.netbeans.spi.lexer.MutableTextInput]: !!WARNING!! Missing
READ-LOCK when accessing TokenHierarchy:
input-source:org.netbeans.modules.editor.NbEditorDocument@51afa06c,
mimeType='text/html', kitClass=null, length=976, version=1,
file=org.netbeans.modules.html.HtmlDataObject@6c020887[/home/peter/NetBeansProjects/Wicket-Test-1/src/java/com/myapp/wicket/CustomerTestPage.html@1c06400f:4586c553]
java.lang.Exception
[catch] at
org.netbeans.lib.lexer.TokenHierarchyOperation.ensureReadLocked(TokenHierarchyOperation.java:407)
  at
org.netbeans.lib.lexer.TokenHierarchyOperation.tokenSequence(TokenHierarchyOperation.java:431)
  at
org.netbeans.api.lexer.TokenHierarchy.tokenSequence(TokenHierarchy.java:201)
  at
org.netbeans.modules.web.wicket.tree.HtmlTreeBuilder.analyze(HtmlTreeBuilder.java:55)
  at
org.netbeans.modules.web.wicket.tree.HtmlTreeBuilder.getTree(HtmlTreeBuilder.java:46)
  at
org.netbeans.modules.web.wicket.verification.WicketProblemAnnotationProvider.annotate(WicketProblemAnnotationProvider.java:180)
  at
org.netbeans.modules.web.wicket.verification.WicketProblemAnnotationProvider.annotate(WicketProblemAnnotationProvider.java:170)
  at
org.netbeans.modules.web.wicket.verification.WicketProblemAnnotationProvider.annotate(WicketProblemAnnotationProvider.java:117)
  at
org.netbeans.modules.web.wicket.verification.WicketProblemAnnotationProvider.annotate(WicketProblemAnnotationProvider.java:88)
  at
org.openide.text.CloneableEditorSupport.ensureAnnotationsLoaded(CloneableEditorSupport.java:393)
  at
org.openide.text.CloneableEditorInitializer.initAnnotations(CloneableEditorInitializer.java:643)
  at
org.openide.text.CloneableEditorInitializer.run(CloneableEditorInitializer.java:351)
  at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
  at
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
  at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
  at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)

How do I set the read lock?

Code is on GitHub:
https://github.com/OldGrumble/NBWicketSupport/

For compilation and test please follow the README, as the repository
contains some non-working code (I've requested the necessary access to
html.editor and html.editor.lib with NETBEANS-1035).

Kind regards

Peter


-
To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
For additional commands, e-mail: dev-h...@netbeans.incubator.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.incubator.apache.org
For additional commands, e-mail: dev-h...@netbeans.incubator.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.incubator.apache.org
For additional commands, e-mail: dev-h...@netbeans.incubator.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 9.0 (incubating) [vote candidate 3]

2018-07-11 Thread Mike Billman
+1

-Original Message-
From: Vikas Prabhakar [mailto:vikas.prabha...@oracle.com] 
Sent: Wednesday, July 11, 2018 1:50 AM
To: dev@netbeans.incubator.apache.org
Subject: Re: [VOTE] Release Apache NetBeans 9.0 (incubating) [vote candidate 3]

+1


On 7/9/2018 2:16 AM, Mario Schroeder wrote:
> +1
>
> Os: macOS 10.13.3
>
> 2018-07-08 22:07 GMT+02:00 John Kostaras :
>
>> +1
>>
>> OS: MacOSX 10.9.5
>> Built from sources with ant 1.9.4
>> JDK 1.8.0_172
>>
>> INFO [org.openide.util.ImageUtilities]: Image 
>> org/netbeans/core/startup/about_nb.png is not PNG
>> javax.imageio.IIOException: Bad PNG signature!
>>  at
>> com.sun.imageio.plugins.png.PNGImageReader.readHeader(
>> PNGImageReader.java:242)
>> Caused: javax.imageio.IIOException: I/O error reading PNG header!
>>
>> Managed to run a sample RCP app without any problem. Updated 2 
>> plugins successfully.
>>
>> No major issues.
>>
>>
>>
>>
>> On Sun, 8 Jul 2018 at 20:24, Ludovic HOCHET  wrote:
>>
>>> +1
>>>
>>> built from the source artefact using:
>>> Windows 10 1803
>>> Ant 1.9.3
>>> Build JDK: jdk1.8.0_172
>>> Run JDK: openjdk 11+21
>>>
>>> On 8 July 2018 at 11:40, Emilian Bold 
>>>  wrote:
 Hi all,

 Please vote on releasing Apache NetBeans 9.0 (incubating)!

 If this voting candidate passes, another similar voting will be 
 started
>>> on gene...@incubator.apache.org, and if that passes too, then we can 
>>> release this version. This build will also undergo validation 
>>> through NetCAT.
 Apache NetBeans 9.0 (incubating) constitutes all the modules in the
>>> Apache NetBeans Git repo, which together provide the NetBeans 
>>> Platform (i.e., the underlying application framework), as well as 
>>> all the modules that provide the Java SE-related features of Apache 
>>> NetBeans.
 In short, Apache NetBeans 9.0 (incubating) is a full IDE for Java 
 SE
>>> development.
 Build artifacts available here:


>>> https://urldefense.proofpoint.com/v2/url?u=https-3A__dist.apache.org
>>> _repos_dist_dev_incubator_netbeans_=DwIBaQ=RoP1YumCXCgaWHvlZYR8P
>>> Zh8Bv7qIrMUB65eapI_JnE=EZDuW-ID1Fy7tDK-QRP9H47sL3yOMJhYItFMRUIr604
>>> =8o5PSw5xXZsGE2I4NyGDO8SOElwhH_z8SAjUdPskjw0=GYVilulbfZYUmN3cWbr
>>> uz06eOK8CCFNGZ3V03Z9SSYo=
>> incubating-netbeans-java/incubating-9.0-vc3
 The specific artifact to be voted on:


>>> https://urldefense.proofpoint.com/v2/url?u=https-3A__dist.apache.org
>>> _repos_dist_dev_incubator_netbeans_=DwIBaQ=RoP1YumCXCgaWHvlZYR8P
>>> Zh8Bv7qIrMUB65eapI_JnE=EZDuW-ID1Fy7tDK-QRP9H47sL3yOMJhYItFMRUIr604
>>> =8o5PSw5xXZsGE2I4NyGDO8SOElwhH_z8SAjUdPskjw0=GYVilulbfZYUmN3cWbr
>>> uz06eOK8CCFNGZ3V03Z9SSYo=
>> incubating-netbeans-java/incubating-9.0-vc3/incubating-
>> netbeans-java-9.0-source.zip
 Included in the above are the DEPENDENCIES, DISCLAIMER, LICENSE, 
 and
>>> NOTICE files, as well as a README file with build instructions, 
>>> which are the same as these:

>>> https://urldefense.proofpoint.com/v2/url?u=https-3A__gitbox.apache.o
>>> rg_repos_asf-3Fp-3Dincubator-2D=DwIBaQ=RoP1YumCXCgaWHvlZYR8PZh8B
>>> v7qIrMUB65eapI_JnE=EZDuW-ID1Fy7tDK-QRP9H47sL3yOMJhYItFMRUIr604=8
>>> o5PSw5xXZsGE2I4NyGDO8SOElwhH_z8SAjUdPskjw0=qY5oYLUFCZk9t3gdzTLwn-K
>>> v0LEY2hJ_zx57pP08RkE=
>> netbeans.git;a=blob_plain;f=README.md;h=eccd3c6cc707ba9ca219bcfb72979
>> 4 35d85f5f7a;hb=97904961e496383d6150aef9b78fa8dff8f3e1ce
 SHA1: ed2098c173460ec81f05635055066da06a7ea82b

 KEYS file:

 https://urldefense.proofpoint.com/v2/url?u=https-3A__dist.apache.or
 g_repos_dist_release_incubator_netbeans_KEYS=DwIBaQ=RoP1YumCXCg
 aWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE=EZDuW-ID1Fy7tDK-QRP9H47sL3yOMJhY
 ItFMRUIr604=8o5PSw5xXZsGE2I4NyGDO8SOElwhH_z8SAjUdPskjw0=KsqreHD
 VN5fPTk7OfFl2PLxXDVywL7xKBdDkTKqeruY=

 Apache NetBeans Git Repo tag: 9.0-vc3 :


>>> https://urldefense.proofpoint.com/v2/url?u=https-3A__gitbox.apache.o
>>> rg_repos_asf-3Fp-3Dincubator-2D=DwIBaQ=RoP1YumCXCgaWHvlZYR8PZh8B
>>> v7qIrMUB65eapI_JnE=EZDuW-ID1Fy7tDK-QRP9H47sL3yOMJhYItFMRUIr604=8
>>> o5PSw5xXZsGE2I4NyGDO8SOElwhH_z8SAjUdPskjw0=qY5oYLUFCZk9t3gdzTLwn-K
>>> v0LEY2hJ_zx57pP08RkE=
>> netbeans.git;a=tag;h=refs/tags/9.0-vc3
 Note: NetBeans license violation checks are managed via the
>>> rat-exclusions.txt file:

>>> https://urldefense.proofpoint.com/v2/url?u=https-3A__gitbox.apache.o
>>> rg_repos_asf-3Fp-3Dincubator-2D=DwIBaQ=RoP1YumCXCgaWHvlZYR8PZh8B
>>> v7qIrMUB65eapI_JnE=EZDuW-ID1Fy7tDK-QRP9H47sL3yOMJhYItFMRUIr604=8
>>> o5PSw5xXZsGE2I4NyGDO8SOElwhH_z8SAjUdPskjw0=qY5oYLUFCZk9t3gdzTLwn-K
>>> v0LEY2hJ_zx57pP08RkE=
>> netbeans.git;a=blob;f=nbbuild/rat-exclusions.txt;h=
>> 36cb8a3eae40bd7fc41c63c6055bce42f7916859;hb=97904961e496383d6150aef9b
>> 78fa8
>> dff8f3e1ce
 Rat report shows no unknown licenses, except for license files:


>>> https://urldefense.proofpoint.com/v2/url?u=https-3A__builds.apache.o
>>> rg_job_incubator-2Dnetbeans-2Drelease_=DwIBaQ=RoP1YumCXCgaWHvlZY
>>> 

Re: How to set the read lock on TokenHierarchyOperation?

2018-07-11 Thread Junichi Yamamoto
e.g. 
https://github.com/OldGrumble/NBWicketSupport/blob/e846cdd2f949af4e78433d4e74ba427453a96546/src/main/java/org/netbeans/modules/web/wicket/tree/HtmlTreeBuilder.java#L53

AbstractDocument ad = (AbstractDocument) doc;
ad.readLock();
try {
TokenHierarchy th = TokenHierarchy.get(ad);
// something here...
} finally {
ad.readUnlock();
}

HTH,
Junichi

On Wed, Jul 11, 2018 at 7:38 PM Peter Nabbefeld  wrote:
>
>
> Hello,
>
> I'm -still looking through some parts of the code, while extending the
> module otherwise. I just found this trace in the log/output window,
> which I probably just didn't notice before (because a bunch of other
> logging messages follows):
>
> INFO [org.netbeans.spi.lexer.MutableTextInput]: !!WARNING!! Missing
> READ-LOCK when accessing TokenHierarchy:
> input-source:org.netbeans.modules.editor.NbEditorDocument@51afa06c,
> mimeType='text/html', kitClass=null, length=976, version=1,
> file=org.netbeans.modules.html.HtmlDataObject@6c020887[/home/peter/NetBeansProjects/Wicket-Test-1/src/java/com/myapp/wicket/CustomerTestPage.html@1c06400f:4586c553]
> java.lang.Exception
> [catch] at
> org.netbeans.lib.lexer.TokenHierarchyOperation.ensureReadLocked(TokenHierarchyOperation.java:407)
>  at
> org.netbeans.lib.lexer.TokenHierarchyOperation.tokenSequence(TokenHierarchyOperation.java:431)
>  at
> org.netbeans.api.lexer.TokenHierarchy.tokenSequence(TokenHierarchy.java:201)
>  at
> org.netbeans.modules.web.wicket.tree.HtmlTreeBuilder.analyze(HtmlTreeBuilder.java:55)
>  at
> org.netbeans.modules.web.wicket.tree.HtmlTreeBuilder.getTree(HtmlTreeBuilder.java:46)
>  at
> org.netbeans.modules.web.wicket.verification.WicketProblemAnnotationProvider.annotate(WicketProblemAnnotationProvider.java:180)
>  at
> org.netbeans.modules.web.wicket.verification.WicketProblemAnnotationProvider.annotate(WicketProblemAnnotationProvider.java:170)
>  at
> org.netbeans.modules.web.wicket.verification.WicketProblemAnnotationProvider.annotate(WicketProblemAnnotationProvider.java:117)
>  at
> org.netbeans.modules.web.wicket.verification.WicketProblemAnnotationProvider.annotate(WicketProblemAnnotationProvider.java:88)
>  at
> org.openide.text.CloneableEditorSupport.ensureAnnotationsLoaded(CloneableEditorSupport.java:393)
>  at
> org.openide.text.CloneableEditorInitializer.initAnnotations(CloneableEditorInitializer.java:643)
>  at
> org.openide.text.CloneableEditorInitializer.run(CloneableEditorInitializer.java:351)
>  at
> org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
>  at
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
>  at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
>  at
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
>
> How do I set the read lock?
>
> Code is on GitHub:
> https://github.com/OldGrumble/NBWicketSupport/
>
> For compilation and test please follow the README, as the repository
> contains some non-working code (I've requested the necessary access to
> html.editor and html.editor.lib with NETBEANS-1035).
>
> Kind regards
>
> Peter
>
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
> For additional commands, e-mail: dev-h...@netbeans.incubator.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.incubator.apache.org
For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists





Re: How to set the read lock on TokenHierarchyOperation?

2018-07-11 Thread Geertjan Wielenga
Take a look at some of the tutorials that make use of those kinds of
classes, e.g., this one:

https://platform.netbeans.org/tutorials/nbm-hyperlink.html

https://platform.netbeans.org/tutorials/nbm-javacc-parser.html

http://bits.netbeans.org/dev/javadoc/org-netbeans-modules-lexer/architecture-summary.html

Rather follow patterns from tutorials and from the javadoc than doing it
some other way.

Also, try and take a look at how other implementations are doing what it is
you're trying to do -- those friends you refer to could be useful in terms
of how they implement similar solutions.

Gj




On Wed, Jul 11, 2018 at 12:37 PM, Peter Nabbefeld 
wrote:

>
> Hello,
>
> I'm -still looking through some parts of the code, while extending the
> module otherwise. I just found this trace in the log/output window, which I
> probably just didn't notice before (because a bunch of other logging
> messages follows):
>
> INFO [org.netbeans.spi.lexer.MutableTextInput]: !!WARNING!! Missing
> READ-LOCK when accessing TokenHierarchy: input-source:org.netbeans.modu
> les.editor.NbEditorDocument@51afa06c, mimeType='text/html',
> kitClass=null, length=976, version=1, file=org.netbeans.modules.html
> .HtmlDataObject@6c020887[/home/peter/NetBeansProjects/Wicket
> -Test-1/src/java/com/myapp/wicket/CustomerTestPage.html@1c06400f:4586c553]
> java.lang.Exception
> [catch] at org.netbeans.lib.lexer.TokenHierarchyOperation.ensureReadLoc
> ked(TokenHierarchyOperation.java:407)
> at org.netbeans.lib.lexer.TokenHierarchyOperation.tokenSequence
> (TokenHierarchyOperation.java:431)
> at org.netbeans.api.lexer.TokenHierarchy.tokenSequence(TokenHie
> rarchy.java:201)
> at org.netbeans.modules.web.wicket.tree.HtmlTreeBuilder.analyze
> (HtmlTreeBuilder.java:55)
> at org.netbeans.modules.web.wicket.tree.HtmlTreeBuilder.getTree
> (HtmlTreeBuilder.java:46)
> at org.netbeans.modules.web.wicket.verification.WicketProblemAn
> notationProvider.annotate(WicketProblemAnnotationProvider.java:180)
> at org.netbeans.modules.web.wicket.verification.WicketProblemAn
> notationProvider.annotate(WicketProblemAnnotationProvider.java:170)
> at org.netbeans.modules.web.wicket.verification.WicketProblemAn
> notationProvider.annotate(WicketProblemAnnotationProvider.java:117)
> at org.netbeans.modules.web.wicket.verification.WicketProblemAn
> notationProvider.annotate(WicketProblemAnnotationProvider.java:88)
> at org.openide.text.CloneableEditorSupport.ensureAnnotationsLoa
> ded(CloneableEditorSupport.java:393)
> at org.openide.text.CloneableEditorInitializer.initAnnotations(
> CloneableEditorInitializer.java:643)
> at org.openide.text.CloneableEditorInitializer.run(CloneableEdi
> torInitializer.java:351)
> at org.openide.util.RequestProcessor$Task.run(RequestProcessor.
> java:1443)
> at org.netbeans.modules.openide.util.GlobalLookup.execute(Globa
> lLookup.java:68)
> at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
> at org.openide.util.RequestProcessor$Processor.run(
> RequestProcessor.java:2058)
>
> How do I set the read lock?
>
> Code is on GitHub:
> https://github.com/OldGrumble/NBWicketSupport/
>
> For compilation and test please follow the README, as the repository
> contains some non-working code (I've requested the necessary access to
> html.editor and html.editor.lib with NETBEANS-1035).
>
> Kind regards
>
> Peter
>
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
> For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>


How to set the read lock on TokenHierarchyOperation?

2018-07-11 Thread Peter Nabbefeld



Hello,

I'm -still looking through some parts of the code, while extending the 
module otherwise. I just found this trace in the log/output window, 
which I probably just didn't notice before (because a bunch of other 
logging messages follows):


INFO [org.netbeans.spi.lexer.MutableTextInput]: !!WARNING!! Missing 
READ-LOCK when accessing TokenHierarchy: 
input-source:org.netbeans.modules.editor.NbEditorDocument@51afa06c, 
mimeType='text/html', kitClass=null, length=976, version=1, 
file=org.netbeans.modules.html.HtmlDataObject@6c020887[/home/peter/NetBeansProjects/Wicket-Test-1/src/java/com/myapp/wicket/CustomerTestPage.html@1c06400f:4586c553]

java.lang.Exception
[catch] at 
org.netbeans.lib.lexer.TokenHierarchyOperation.ensureReadLocked(TokenHierarchyOperation.java:407)
    at 
org.netbeans.lib.lexer.TokenHierarchyOperation.tokenSequence(TokenHierarchyOperation.java:431)
    at 
org.netbeans.api.lexer.TokenHierarchy.tokenSequence(TokenHierarchy.java:201)
    at 
org.netbeans.modules.web.wicket.tree.HtmlTreeBuilder.analyze(HtmlTreeBuilder.java:55)
    at 
org.netbeans.modules.web.wicket.tree.HtmlTreeBuilder.getTree(HtmlTreeBuilder.java:46)
    at 
org.netbeans.modules.web.wicket.verification.WicketProblemAnnotationProvider.annotate(WicketProblemAnnotationProvider.java:180)
    at 
org.netbeans.modules.web.wicket.verification.WicketProblemAnnotationProvider.annotate(WicketProblemAnnotationProvider.java:170)
    at 
org.netbeans.modules.web.wicket.verification.WicketProblemAnnotationProvider.annotate(WicketProblemAnnotationProvider.java:117)
    at 
org.netbeans.modules.web.wicket.verification.WicketProblemAnnotationProvider.annotate(WicketProblemAnnotationProvider.java:88)
    at 
org.openide.text.CloneableEditorSupport.ensureAnnotationsLoaded(CloneableEditorSupport.java:393)
    at 
org.openide.text.CloneableEditorInitializer.initAnnotations(CloneableEditorInitializer.java:643)
    at 
org.openide.text.CloneableEditorInitializer.run(CloneableEditorInitializer.java:351)
    at 
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
    at 
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)

    at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
    at 
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)


How do I set the read lock?

Code is on GitHub:
https://github.com/OldGrumble/NBWicketSupport/

For compilation and test please follow the README, as the repository 
contains some non-working code (I've requested the necessary access to 
html.editor and html.editor.lib with NETBEANS-1035).


Kind regards

Peter


-
To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists