[jira] [Commented] (NETBEANS-5380) Background scanning spends significant time in o.n.m.j.mx.project.SuiteFileOwnerQueryImpl#getOwner

2021-03-01 Thread Jaroslav Tulach (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-5380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17293389#comment-17293389
 ] 

Jaroslav Tulach commented on NETBEANS-5380:
---

Everything seems to work in NetBeans 12.0, 12.3 as well as with [your 
patch|https://github.com/matthiasblaesing/netbeans/commit/460042be723b28b430f88c77c1ee7ab18f364892].
 To reproduce try:
{code:java}
graal/truffle$ mx build
graal/truffle$ mx netbeansinit
graal/truffle$ netbeans --open 
src/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/Frame.java
{code}
and when the {{Frame.java}} file is opened in the editor, press _Ctrl-Shift-1_. 
It always opens the right project. E.g. 
{{graal/truffle/src/com.oracle.truffle.api}} in case of 12.0 and 
{{graal/truffle}} in case of new NetBeans. Thanks a lot for the fix, Matthias!

> Background scanning spends significant time in 
> o.n.m.j.mx.project.SuiteFileOwnerQueryImpl#getOwner
> --
>
> Key: NETBEANS-5380
> URL: https://issues.apache.org/jira/browse/NETBEANS-5380
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
>Affects Versions: Next
>Reporter: Matthias Bläsing
>Assignee: Jaroslav Tulach
>Priority: Major
> Attachments: sample1.npss, sample2.npss
>
>
> I opened an angular project into an IDE build from recent master. I observed, 
> that a very (> 20 minutes) long background scanning times could be observed. 
> I first used visual VM and then the netbeans internal profiler to try to 
> narrow it down.
> *Profile*
> I'll attach two self profiles, both show the same picture, so I'll 
> concentrate on _sample2.npss_:
> There are 9 entries in the self profile, that show CPU times > 190s. From 
> these 8 are waiting in native code and thus false positives:
>  - ReferenceHandler
>  - FileSystemWatchService
>  - process reaper (3x)
>  - StreamTerm.Output (2x)
>  - pool-5-thread-1 (From the trace LSP integration)
> The one trace, that is connected to the observed scanning and is in java code 
> is _RepositoryUpdater.worker._ Breaking this down shows, that, although the 
> forward calls split into two branches, both hit:
> _org.netbeans.modules.java.mx.project.SuiteFileOwnerQueryImpl#getOwner_
> That method is responsible for 178s CPU time. No other FileOwnerQueryImpl 
> shows up in the trace, and thus this leads me to the conclusion, that this is 
> fishy.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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



[jira] [Commented] (NETBEANS-5380) Background scanning spends significant time in o.n.m.j.mx.project.SuiteFileOwnerQueryImpl#getOwner

2021-03-01 Thread Jaroslav Tulach (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-5380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17293366#comment-17293366
 ] 

Jaroslav Tulach commented on NETBEANS-5380:
---

I'll do some testing, but the solution seems to be very promising. Thanks for 
bringing it up.

> Background scanning spends significant time in 
> o.n.m.j.mx.project.SuiteFileOwnerQueryImpl#getOwner
> --
>
> Key: NETBEANS-5380
> URL: https://issues.apache.org/jira/browse/NETBEANS-5380
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
>Affects Versions: Next
>Reporter: Matthias Bläsing
>Assignee: Jaroslav Tulach
>Priority: Major
> Attachments: sample1.npss, sample2.npss
>
>
> I opened an angular project into an IDE build from recent master. I observed, 
> that a very (> 20 minutes) long background scanning times could be observed. 
> I first used visual VM and then the netbeans internal profiler to try to 
> narrow it down.
> *Profile*
> I'll attach two self profiles, both show the same picture, so I'll 
> concentrate on _sample2.npss_:
> There are 9 entries in the self profile, that show CPU times > 190s. From 
> these 8 are waiting in native code and thus false positives:
>  - ReferenceHandler
>  - FileSystemWatchService
>  - process reaper (3x)
>  - StreamTerm.Output (2x)
>  - pool-5-thread-1 (From the trace LSP integration)
> The one trace, that is connected to the observed scanning and is in java code 
> is _RepositoryUpdater.worker._ Breaking this down shows, that, although the 
> forward calls split into two branches, both hit:
> _org.netbeans.modules.java.mx.project.SuiteFileOwnerQueryImpl#getOwner_
> That method is responsible for 178s CPU time. No other FileOwnerQueryImpl 
> shows up in the trace, and thus this leads me to the conclusion, that this is 
> fishy.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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



[netbeans] branch master updated (78070a8 -> 1b8a454)

2021-03-01 Thread jtulach
This is an automated email from the ASF dual-hosted git repository.

jtulach pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git.


from 78070a8  Merge pull request #2782 from 
MartinBalin/vscode/build_md_update
 new 5efb6e7  Register JDKPlatformProvider when creating javac in ant's 
ClassLoader.
 new 71b0379  Adding test.
 new 1b8a454  Merge pull request #2784 from 
jlahoda/ant-jdkplatform-registration

The 5051 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../apache/tools/ant/module/bridge/AntBridge.java  | 28 +++
 .../test/unit/data/compile/Test.java   | 19 
 .../test/unit/data/compile/build.xml   | 27 +++
 .../tools/ant/module/bridge/AntBridgeTest.java | 54 ++
 4 files changed, 128 insertions(+)
 create mode 100644 
extide/o.apache.tools.ant.module/test/unit/data/compile/Test.java
 create mode 100644 
extide/o.apache.tools.ant.module/test/unit/data/compile/build.xml
 create mode 100644 
extide/o.apache.tools.ant.module/test/unit/src/org/apache/tools/ant/module/bridge/AntBridgeTest.java


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

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



[jira] [Comment Edited] (NETBEANS-3355) SideBarFactory painting offset with large files

2021-03-01 Thread Benedikt Schlagberger (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17292804#comment-17292804
 ] 

Benedikt Schlagberger edited comment on NETBEANS-3355 at 3/1/21, 10:32 AM:
---

Thanks a lot for your response! I tried again with NetBeans 12.0 LTS and 12.2. 
For 12.0 I could reproduce it. Note that you have to open up a very large file 
to see the effect (e.g. 
[StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]).

This is the expected result, which works for smaller files, the bar starts at 
line 1:

!Bildschirmfoto von 2021-03-01 10-41-15.png|width=262,height=202!

For very large files, the bar is offset by large amounts:

  !Bildschirmfoto von 2021-03-01 11-28-24.png|width=327,height=238!

I attached the project as a zip file: [^sidebar_test.zip]

With 12.2 and libraries with version 122, the plugin is not loaded at all 
(breakpoint in {{createSideBar}} is not triggered). With the attached zip, the 
bug can be reproduced:

  !Bildschirmfoto von 2021-03-01 11-30-57.png|width=427,height=331!


was (Author: bschlagberger):
Thanks a lot for your response! I tried again with NetBeans 12.0 LTS and 12.2. 
For 12.0 I could reproduce it. Note that you have to open up a very large file 
to see the effect (e.g. 
[StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]).

This is the expected result, which works for smaller files, the bar starts at 
line 1:

!Bildschirmfoto von 2021-03-01 10-41-15.png|width=262,height=202!

For very large files, the bar is offset by large amounts:

  !Bildschirmfoto von 2021-03-01 11-28-24.png|width=327,height=238!

You can find the zipped project here: 
[https://share.cqse.eu/public/BS/sidebar_test.zip]

With 12.2 and libraries with version 122, the plugin is not loaded at all 
(breakpoint in {{createSideBar}} is not triggered). With the attached zip, the 
bug can be reproduced:

  !Bildschirmfoto von 2021-03-01 11-30-57.png|width=427,height=331!

> SideBarFactory painting offset with large files
> ---
>
> Key: NETBEANS-3355
> URL: https://issues.apache.org/jira/browse/NETBEANS-3355
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 8.2, 11.0
>Reporter: Benedikt Schlagberger
>Priority: Major
> Attachments: Bildschirmfoto von 2019-11-07 19-34-21.png, 
> Bildschirmfoto von 2021-03-01 10-41-15.png, Bildschirmfoto von 2021-03-01 
> 11-28-24.png, Bildschirmfoto von 2021-03-01 11-30-57.png, sidebar_test.zip
>
>
> When painting in the sidebar using the {{SideBarFactory}}, the painted 
> Graphic is offset for large files. To reproduce, create a NetBeans plugin 
> project and add the following class:
> {code:java}
> package com.mycompany.sidebar_test;
> import java.awt.Color;
> import java.awt.Dimension;
> import java.awt.Graphics;
> import javax.swing.JComponent;
> import javax.swing.text.JTextComponent;
> import org.netbeans.spi.editor.SideBarFactory;
> public class MySidebarFactory implements SideBarFactory {
> @Override
> public JComponent createSideBar(JTextComponent jtc) {
> return new MySidebar();
> }
> private class MySidebar extends JComponent {
> @Override
> protected void paintComponent(Graphics g) {
> g.setColor(Color.BLUE);
> g.fillRect(0, 0, 10, 1000); // Paint blue rectangle starting at 
> the top of the sidebar with height of 1000px 
> }
> @Override
> public Dimension getPreferredSize() {
> Dimension dimension = new Dimension(this.getParent().getSize());
> dimension.width = 10;
> return dimension;
> }
> }
> }
> {code}
> Register the {{SideBarFactory}} using the following {{layers.xml}}:
> {code:xml}
> 
>  "http://www.netbeans.org/dtds/filesystem-1_2.dtd";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> {code}
> Now start the plugin and open a project containing a large file for example 
> the 
> [StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]
>  from the apache commons lib.
> The painting is offset by a large amount as you can see in the attached 
> screenshot (blue rectangle should start in line 1, not 2150). When shortening 
> the file and re-opening it, the marker moves, so I suppose this is related to 
> the file size.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commit

[jira] [Updated] (NETBEANS-3355) SideBarFactory painting offset with large files

2021-03-01 Thread Benedikt Schlagberger (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benedikt Schlagberger updated NETBEANS-3355:

Attachment: sidebar_test.zip

> SideBarFactory painting offset with large files
> ---
>
> Key: NETBEANS-3355
> URL: https://issues.apache.org/jira/browse/NETBEANS-3355
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 8.2, 11.0
>Reporter: Benedikt Schlagberger
>Priority: Major
> Attachments: Bildschirmfoto von 2019-11-07 19-34-21.png, 
> Bildschirmfoto von 2021-03-01 10-41-15.png, Bildschirmfoto von 2021-03-01 
> 11-28-24.png, Bildschirmfoto von 2021-03-01 11-30-57.png, sidebar_test.zip
>
>
> When painting in the sidebar using the {{SideBarFactory}}, the painted 
> Graphic is offset for large files. To reproduce, create a NetBeans plugin 
> project and add the following class:
> {code:java}
> package com.mycompany.sidebar_test;
> import java.awt.Color;
> import java.awt.Dimension;
> import java.awt.Graphics;
> import javax.swing.JComponent;
> import javax.swing.text.JTextComponent;
> import org.netbeans.spi.editor.SideBarFactory;
> public class MySidebarFactory implements SideBarFactory {
> @Override
> public JComponent createSideBar(JTextComponent jtc) {
> return new MySidebar();
> }
> private class MySidebar extends JComponent {
> @Override
> protected void paintComponent(Graphics g) {
> g.setColor(Color.BLUE);
> g.fillRect(0, 0, 10, 1000); // Paint blue rectangle starting at 
> the top of the sidebar with height of 1000px 
> }
> @Override
> public Dimension getPreferredSize() {
> Dimension dimension = new Dimension(this.getParent().getSize());
> dimension.width = 10;
> return dimension;
> }
> }
> }
> {code}
> Register the {{SideBarFactory}} using the following {{layers.xml}}:
> {code:xml}
> 
>  "http://www.netbeans.org/dtds/filesystem-1_2.dtd";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> {code}
> Now start the plugin and open a project containing a large file for example 
> the 
> [StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]
>  from the apache commons lib.
> The painting is offset by a large amount as you can see in the attached 
> screenshot (blue rectangle should start in line 1, not 2150). When shortening 
> the file and re-opening it, the marker moves, so I suppose this is related to 
> the file size.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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



[jira] [Updated] (NETBEANS-3355) SideBarFactory painting offset with large files

2021-03-01 Thread Benedikt Schlagberger (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benedikt Schlagberger updated NETBEANS-3355:

Attachment: Bildschirmfoto von 2021-03-01 11-30-57.png

> SideBarFactory painting offset with large files
> ---
>
> Key: NETBEANS-3355
> URL: https://issues.apache.org/jira/browse/NETBEANS-3355
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 8.2, 11.0
>Reporter: Benedikt Schlagberger
>Priority: Major
> Attachments: Bildschirmfoto von 2019-11-07 19-34-21.png, 
> Bildschirmfoto von 2021-03-01 10-41-15.png, Bildschirmfoto von 2021-03-01 
> 11-28-24.png, Bildschirmfoto von 2021-03-01 11-30-57.png
>
>
> When painting in the sidebar using the {{SideBarFactory}}, the painted 
> Graphic is offset for large files. To reproduce, create a NetBeans plugin 
> project and add the following class:
> {code:java}
> package com.mycompany.sidebar_test;
> import java.awt.Color;
> import java.awt.Dimension;
> import java.awt.Graphics;
> import javax.swing.JComponent;
> import javax.swing.text.JTextComponent;
> import org.netbeans.spi.editor.SideBarFactory;
> public class MySidebarFactory implements SideBarFactory {
> @Override
> public JComponent createSideBar(JTextComponent jtc) {
> return new MySidebar();
> }
> private class MySidebar extends JComponent {
> @Override
> protected void paintComponent(Graphics g) {
> g.setColor(Color.BLUE);
> g.fillRect(0, 0, 10, 1000); // Paint blue rectangle starting at 
> the top of the sidebar with height of 1000px 
> }
> @Override
> public Dimension getPreferredSize() {
> Dimension dimension = new Dimension(this.getParent().getSize());
> dimension.width = 10;
> return dimension;
> }
> }
> }
> {code}
> Register the {{SideBarFactory}} using the following {{layers.xml}}:
> {code:xml}
> 
>  "http://www.netbeans.org/dtds/filesystem-1_2.dtd";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> {code}
> Now start the plugin and open a project containing a large file for example 
> the 
> [StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]
>  from the apache commons lib.
> The painting is offset by a large amount as you can see in the attached 
> screenshot (blue rectangle should start in line 1, not 2150). When shortening 
> the file and re-opening it, the marker moves, so I suppose this is related to 
> the file size.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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



[jira] [Comment Edited] (NETBEANS-3355) SideBarFactory painting offset with large files

2021-03-01 Thread Benedikt Schlagberger (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17292804#comment-17292804
 ] 

Benedikt Schlagberger edited comment on NETBEANS-3355 at 3/1/21, 10:31 AM:
---

Thanks a lot for your response! I tried again with NetBeans 12.0 LTS and 12.2. 
For 12.0 I could reproduce it. Note that you have to open up a very large file 
to see the effect (e.g. 
[StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]).

This is the expected result, which works for smaller files, the bar starts at 
line 1:

!Bildschirmfoto von 2021-03-01 10-41-15.png|width=262,height=202!

For very large files, the bar is offset by large amounts:

  !Bildschirmfoto von 2021-03-01 11-28-24.png|width=327,height=238!

You can find the zipped project here: 
[https://share.cqse.eu/public/BS/sidebar_test.zip]

With 12.2 and libraries with version 122, the plugin is not loaded at all 
(breakpoint in {{createSideBar}} is not triggered). With the attached zip, the 
bug can be reproduced:

 


was (Author: bschlagberger):
Thanks a lot for your response! I tried again with NetBeans 12.0 LTS and 12.2. 
For 12.0 I could reproduce it. Note that you have to open up a very large file 
to see the effect (e.g. 
[StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]).

This is the expected result, which works for smaller files, the bar starts at 
line 1:

!Bildschirmfoto von 2021-03-01 10-41-15.png|width=262,height=202!

For very large files, the bar is offset by large amounts:

  !Bildschirmfoto von 2021-03-01 11-28-24.png|width=327,height=238!

You can find the zipped project here: 
[https://share.cqse.eu/public/BS/sidebar_test.zip]

With 12.2 the plugin is not loaded at all (breakpoint in {{createSideBar}} is 
not triggered).

> SideBarFactory painting offset with large files
> ---
>
> Key: NETBEANS-3355
> URL: https://issues.apache.org/jira/browse/NETBEANS-3355
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 8.2, 11.0
>Reporter: Benedikt Schlagberger
>Priority: Major
> Attachments: Bildschirmfoto von 2019-11-07 19-34-21.png, 
> Bildschirmfoto von 2021-03-01 10-41-15.png, Bildschirmfoto von 2021-03-01 
> 11-28-24.png
>
>
> When painting in the sidebar using the {{SideBarFactory}}, the painted 
> Graphic is offset for large files. To reproduce, create a NetBeans plugin 
> project and add the following class:
> {code:java}
> package com.mycompany.sidebar_test;
> import java.awt.Color;
> import java.awt.Dimension;
> import java.awt.Graphics;
> import javax.swing.JComponent;
> import javax.swing.text.JTextComponent;
> import org.netbeans.spi.editor.SideBarFactory;
> public class MySidebarFactory implements SideBarFactory {
> @Override
> public JComponent createSideBar(JTextComponent jtc) {
> return new MySidebar();
> }
> private class MySidebar extends JComponent {
> @Override
> protected void paintComponent(Graphics g) {
> g.setColor(Color.BLUE);
> g.fillRect(0, 0, 10, 1000); // Paint blue rectangle starting at 
> the top of the sidebar with height of 1000px 
> }
> @Override
> public Dimension getPreferredSize() {
> Dimension dimension = new Dimension(this.getParent().getSize());
> dimension.width = 10;
> return dimension;
> }
> }
> }
> {code}
> Register the {{SideBarFactory}} using the following {{layers.xml}}:
> {code:xml}
> 
>  "http://www.netbeans.org/dtds/filesystem-1_2.dtd";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> {code}
> Now start the plugin and open a project containing a large file for example 
> the 
> [StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]
>  from the apache commons lib.
> The painting is offset by a large amount as you can see in the attached 
> screenshot (blue rectangle should start in line 1, not 2150). When shortening 
> the file and re-opening it, the marker moves, so I suppose this is related to 
> the file size.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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



[jira] [Comment Edited] (NETBEANS-3355) SideBarFactory painting offset with large files

2021-03-01 Thread Benedikt Schlagberger (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17292804#comment-17292804
 ] 

Benedikt Schlagberger edited comment on NETBEANS-3355 at 3/1/21, 10:31 AM:
---

Thanks a lot for your response! I tried again with NetBeans 12.0 LTS and 12.2. 
For 12.0 I could reproduce it. Note that you have to open up a very large file 
to see the effect (e.g. 
[StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]).

This is the expected result, which works for smaller files, the bar starts at 
line 1:

!Bildschirmfoto von 2021-03-01 10-41-15.png|width=262,height=202!

For very large files, the bar is offset by large amounts:

  !Bildschirmfoto von 2021-03-01 11-28-24.png|width=327,height=238!

You can find the zipped project here: 
[https://share.cqse.eu/public/BS/sidebar_test.zip]

With 12.2 and libraries with version 122, the plugin is not loaded at all 
(breakpoint in {{createSideBar}} is not triggered). With the attached zip, the 
bug can be reproduced:

  !Bildschirmfoto von 2021-03-01 11-30-57.png|width=427,height=331!


was (Author: bschlagberger):
Thanks a lot for your response! I tried again with NetBeans 12.0 LTS and 12.2. 
For 12.0 I could reproduce it. Note that you have to open up a very large file 
to see the effect (e.g. 
[StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]).

This is the expected result, which works for smaller files, the bar starts at 
line 1:

!Bildschirmfoto von 2021-03-01 10-41-15.png|width=262,height=202!

For very large files, the bar is offset by large amounts:

  !Bildschirmfoto von 2021-03-01 11-28-24.png|width=327,height=238!

You can find the zipped project here: 
[https://share.cqse.eu/public/BS/sidebar_test.zip]

With 12.2 and libraries with version 122, the plugin is not loaded at all 
(breakpoint in {{createSideBar}} is not triggered). With the attached zip, the 
bug can be reproduced:

  !Bildschirmfoto von 2021-03-01 11-30-57.png!

> SideBarFactory painting offset with large files
> ---
>
> Key: NETBEANS-3355
> URL: https://issues.apache.org/jira/browse/NETBEANS-3355
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 8.2, 11.0
>Reporter: Benedikt Schlagberger
>Priority: Major
> Attachments: Bildschirmfoto von 2019-11-07 19-34-21.png, 
> Bildschirmfoto von 2021-03-01 10-41-15.png, Bildschirmfoto von 2021-03-01 
> 11-28-24.png, Bildschirmfoto von 2021-03-01 11-30-57.png
>
>
> When painting in the sidebar using the {{SideBarFactory}}, the painted 
> Graphic is offset for large files. To reproduce, create a NetBeans plugin 
> project and add the following class:
> {code:java}
> package com.mycompany.sidebar_test;
> import java.awt.Color;
> import java.awt.Dimension;
> import java.awt.Graphics;
> import javax.swing.JComponent;
> import javax.swing.text.JTextComponent;
> import org.netbeans.spi.editor.SideBarFactory;
> public class MySidebarFactory implements SideBarFactory {
> @Override
> public JComponent createSideBar(JTextComponent jtc) {
> return new MySidebar();
> }
> private class MySidebar extends JComponent {
> @Override
> protected void paintComponent(Graphics g) {
> g.setColor(Color.BLUE);
> g.fillRect(0, 0, 10, 1000); // Paint blue rectangle starting at 
> the top of the sidebar with height of 1000px 
> }
> @Override
> public Dimension getPreferredSize() {
> Dimension dimension = new Dimension(this.getParent().getSize());
> dimension.width = 10;
> return dimension;
> }
> }
> }
> {code}
> Register the {{SideBarFactory}} using the following {{layers.xml}}:
> {code:xml}
> 
>  "http://www.netbeans.org/dtds/filesystem-1_2.dtd";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> {code}
> Now start the plugin and open a project containing a large file for example 
> the 
> [StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]
>  from the apache commons lib.
> The painting is offset by a large amount as you can see in the attached 
> screenshot (blue rectangle should start in line 1, not 2150). When shortening 
> the file and re-opening it, the marker moves, so I suppose this is related to 
> the file size.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

[jira] [Comment Edited] (NETBEANS-3355) SideBarFactory painting offset with large files

2021-03-01 Thread Benedikt Schlagberger (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17292804#comment-17292804
 ] 

Benedikt Schlagberger edited comment on NETBEANS-3355 at 3/1/21, 10:31 AM:
---

Thanks a lot for your response! I tried again with NetBeans 12.0 LTS and 12.2. 
For 12.0 I could reproduce it. Note that you have to open up a very large file 
to see the effect (e.g. 
[StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]).

This is the expected result, which works for smaller files, the bar starts at 
line 1:

!Bildschirmfoto von 2021-03-01 10-41-15.png|width=262,height=202!

For very large files, the bar is offset by large amounts:

  !Bildschirmfoto von 2021-03-01 11-28-24.png|width=327,height=238!

You can find the zipped project here: 
[https://share.cqse.eu/public/BS/sidebar_test.zip]

With 12.2 and libraries with version 122, the plugin is not loaded at all 
(breakpoint in {{createSideBar}} is not triggered). With the attached zip, the 
bug can be reproduced:

  !Bildschirmfoto von 2021-03-01 11-30-57.png!


was (Author: bschlagberger):
Thanks a lot for your response! I tried again with NetBeans 12.0 LTS and 12.2. 
For 12.0 I could reproduce it. Note that you have to open up a very large file 
to see the effect (e.g. 
[StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]).

This is the expected result, which works for smaller files, the bar starts at 
line 1:

!Bildschirmfoto von 2021-03-01 10-41-15.png|width=262,height=202!

For very large files, the bar is offset by large amounts:

  !Bildschirmfoto von 2021-03-01 11-28-24.png|width=327,height=238!

You can find the zipped project here: 
[https://share.cqse.eu/public/BS/sidebar_test.zip]

With 12.2 and libraries with version 122, the plugin is not loaded at all 
(breakpoint in {{createSideBar}} is not triggered). With the attached zip, the 
bug can be reproduced:

 

> SideBarFactory painting offset with large files
> ---
>
> Key: NETBEANS-3355
> URL: https://issues.apache.org/jira/browse/NETBEANS-3355
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 8.2, 11.0
>Reporter: Benedikt Schlagberger
>Priority: Major
> Attachments: Bildschirmfoto von 2019-11-07 19-34-21.png, 
> Bildschirmfoto von 2021-03-01 10-41-15.png, Bildschirmfoto von 2021-03-01 
> 11-28-24.png, Bildschirmfoto von 2021-03-01 11-30-57.png
>
>
> When painting in the sidebar using the {{SideBarFactory}}, the painted 
> Graphic is offset for large files. To reproduce, create a NetBeans plugin 
> project and add the following class:
> {code:java}
> package com.mycompany.sidebar_test;
> import java.awt.Color;
> import java.awt.Dimension;
> import java.awt.Graphics;
> import javax.swing.JComponent;
> import javax.swing.text.JTextComponent;
> import org.netbeans.spi.editor.SideBarFactory;
> public class MySidebarFactory implements SideBarFactory {
> @Override
> public JComponent createSideBar(JTextComponent jtc) {
> return new MySidebar();
> }
> private class MySidebar extends JComponent {
> @Override
> protected void paintComponent(Graphics g) {
> g.setColor(Color.BLUE);
> g.fillRect(0, 0, 10, 1000); // Paint blue rectangle starting at 
> the top of the sidebar with height of 1000px 
> }
> @Override
> public Dimension getPreferredSize() {
> Dimension dimension = new Dimension(this.getParent().getSize());
> dimension.width = 10;
> return dimension;
> }
> }
> }
> {code}
> Register the {{SideBarFactory}} using the following {{layers.xml}}:
> {code:xml}
> 
>  "http://www.netbeans.org/dtds/filesystem-1_2.dtd";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> {code}
> Now start the plugin and open a project containing a large file for example 
> the 
> [StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]
>  from the apache commons lib.
> The painting is offset by a large amount as you can see in the attached 
> screenshot (blue rectangle should start in line 1, not 2150). When shortening 
> the file and re-opening it, the marker moves, so I suppose this is related to 
> the file size.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

For further information about the NetBeans ma

[jira] [Comment Edited] (NETBEANS-3355) SideBarFactory painting offset with large files

2021-03-01 Thread Benedikt Schlagberger (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17292804#comment-17292804
 ] 

Benedikt Schlagberger edited comment on NETBEANS-3355 at 3/1/21, 10:29 AM:
---

Thanks a lot for your response! I tried again with NetBeans 12.0 LTS and 12.2. 
For 12.0 I could reproduce it. Note that you have to open up a very large file 
to see the effect (e.g. 
[StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]).

This is the expected result, which works for smaller files:

!Bildschirmfoto von 2021-03-01 10-41-15.png|width=262,height=202!

For very large files, the bar is offset by large amounts:

  !Bildschirmfoto von 2021-03-01 11-28-24.png|width=327,height=238!

You can find the zipped project here: 
[https://share.cqse.eu/public/BS/sidebar_test.zip]

With 12.2 the plugin is not loaded at all (breakpoint in {{createSideBar}} is 
not triggered).


was (Author: bschlagberger):
Thanks a lot for your response! I tried again with NetBeans 12.0 LTS and 12.2. 
For 12.0 I could reproduce it. Note that you have to open up a very large file 
to see the effect (e.g. 
[StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]).

This is the expected result, which works for smaller files:

!Bildschirmfoto von 2021-03-01 10-41-15.png|width=262,height=202!

For very large files, the bar is shifted down:

  !Bildschirmfoto von 2021-03-01 11-28-24.png|width=327,height=238!

You can find the zipped project here: 
[https://share.cqse.eu/public/BS/sidebar_test.zip]

With 12.2 the plugin is not loaded at all (breakpoint in {{createSideBar}} is 
not triggered).

> SideBarFactory painting offset with large files
> ---
>
> Key: NETBEANS-3355
> URL: https://issues.apache.org/jira/browse/NETBEANS-3355
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 8.2, 11.0
>Reporter: Benedikt Schlagberger
>Priority: Major
> Attachments: Bildschirmfoto von 2019-11-07 19-34-21.png, 
> Bildschirmfoto von 2021-03-01 10-41-15.png, Bildschirmfoto von 2021-03-01 
> 11-28-24.png
>
>
> When painting in the sidebar using the {{SideBarFactory}}, the painted 
> Graphic is offset for large files. To reproduce, create a NetBeans plugin 
> project and add the following class:
> {code:java}
> package com.mycompany.sidebar_test;
> import java.awt.Color;
> import java.awt.Dimension;
> import java.awt.Graphics;
> import javax.swing.JComponent;
> import javax.swing.text.JTextComponent;
> import org.netbeans.spi.editor.SideBarFactory;
> public class MySidebarFactory implements SideBarFactory {
> @Override
> public JComponent createSideBar(JTextComponent jtc) {
> return new MySidebar();
> }
> private class MySidebar extends JComponent {
> @Override
> protected void paintComponent(Graphics g) {
> g.setColor(Color.BLUE);
> g.fillRect(0, 0, 10, 1000); // Paint blue rectangle starting at 
> the top of the sidebar with height of 1000px 
> }
> @Override
> public Dimension getPreferredSize() {
> Dimension dimension = new Dimension(this.getParent().getSize());
> dimension.width = 10;
> return dimension;
> }
> }
> }
> {code}
> Register the {{SideBarFactory}} using the following {{layers.xml}}:
> {code:xml}
> 
>  "http://www.netbeans.org/dtds/filesystem-1_2.dtd";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> {code}
> Now start the plugin and open a project containing a large file for example 
> the 
> [StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]
>  from the apache commons lib.
> The painting is offset by a large amount as you can see in the attached 
> screenshot (blue rectangle should start in line 1, not 2150). When shortening 
> the file and re-opening it, the marker moves, so I suppose this is related to 
> the file size.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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



[jira] [Comment Edited] (NETBEANS-3355) SideBarFactory painting offset with large files

2021-03-01 Thread Benedikt Schlagberger (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17292804#comment-17292804
 ] 

Benedikt Schlagberger edited comment on NETBEANS-3355 at 3/1/21, 10:29 AM:
---

Thanks a lot for your response! I tried again with NetBeans 12.0 LTS and 12.2. 
For 12.0 I could reproduce it. Note that you have to open up a very large file 
to see the effect (e.g. 
[StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]).

This is the expected result, which works for smaller files:

!Bildschirmfoto von 2021-03-01 10-41-15.png|width=262,height=202!

For very large files, the bar is shifted down:

  !Bildschirmfoto von 2021-03-01 11-28-24.png|width=327,height=238!

You can find the zipped project here: 
[https://share.cqse.eu/public/BS/sidebar_test.zip]

With 12.2 the plugin is not loaded at all (breakpoint in {{createSideBar}} is 
not triggered).


was (Author: bschlagberger):
Thanks a lot for your response! I tried again with NetBeans 12.0 LTS and 12.2. 
For 12.0 I could reproduce it. Note that you have to open up a very large file 
to see the effect (e.g. 
[StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]).

This is the expected result, which works for smaller files:

!Bildschirmfoto von 2021-03-01 10-41-15.png|width=262,height=202!

For very large files, the bar is shifted down:

 

You can find the zipped project here: 
[https://share.cqse.eu/public/BS/sidebar_test.zip]

With 12.2 the plugin is not loaded at all (breakpoint in {{createSideBar}} is 
not triggered).

> SideBarFactory painting offset with large files
> ---
>
> Key: NETBEANS-3355
> URL: https://issues.apache.org/jira/browse/NETBEANS-3355
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 8.2, 11.0
>Reporter: Benedikt Schlagberger
>Priority: Major
> Attachments: Bildschirmfoto von 2019-11-07 19-34-21.png, 
> Bildschirmfoto von 2021-03-01 10-41-15.png, Bildschirmfoto von 2021-03-01 
> 11-28-24.png
>
>
> When painting in the sidebar using the {{SideBarFactory}}, the painted 
> Graphic is offset for large files. To reproduce, create a NetBeans plugin 
> project and add the following class:
> {code:java}
> package com.mycompany.sidebar_test;
> import java.awt.Color;
> import java.awt.Dimension;
> import java.awt.Graphics;
> import javax.swing.JComponent;
> import javax.swing.text.JTextComponent;
> import org.netbeans.spi.editor.SideBarFactory;
> public class MySidebarFactory implements SideBarFactory {
> @Override
> public JComponent createSideBar(JTextComponent jtc) {
> return new MySidebar();
> }
> private class MySidebar extends JComponent {
> @Override
> protected void paintComponent(Graphics g) {
> g.setColor(Color.BLUE);
> g.fillRect(0, 0, 10, 1000); // Paint blue rectangle starting at 
> the top of the sidebar with height of 1000px 
> }
> @Override
> public Dimension getPreferredSize() {
> Dimension dimension = new Dimension(this.getParent().getSize());
> dimension.width = 10;
> return dimension;
> }
> }
> }
> {code}
> Register the {{SideBarFactory}} using the following {{layers.xml}}:
> {code:xml}
> 
>  "http://www.netbeans.org/dtds/filesystem-1_2.dtd";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> {code}
> Now start the plugin and open a project containing a large file for example 
> the 
> [StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]
>  from the apache commons lib.
> The painting is offset by a large amount as you can see in the attached 
> screenshot (blue rectangle should start in line 1, not 2150). When shortening 
> the file and re-opening it, the marker moves, so I suppose this is related to 
> the file size.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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



[jira] [Comment Edited] (NETBEANS-3355) SideBarFactory painting offset with large files

2021-03-01 Thread Benedikt Schlagberger (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17292804#comment-17292804
 ] 

Benedikt Schlagberger edited comment on NETBEANS-3355 at 3/1/21, 10:29 AM:
---

Thanks a lot for your response! I tried again with NetBeans 12.0 LTS and 12.2. 
For 12.0 I could reproduce it. Note that you have to open up a very large file 
to see the effect (e.g. 
[StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]).

This is the expected result, which works for smaller files, the bar starts at 
line 1:

!Bildschirmfoto von 2021-03-01 10-41-15.png|width=262,height=202!

For very large files, the bar is offset by large amounts:

  !Bildschirmfoto von 2021-03-01 11-28-24.png|width=327,height=238!

You can find the zipped project here: 
[https://share.cqse.eu/public/BS/sidebar_test.zip]

With 12.2 the plugin is not loaded at all (breakpoint in {{createSideBar}} is 
not triggered).


was (Author: bschlagberger):
Thanks a lot for your response! I tried again with NetBeans 12.0 LTS and 12.2. 
For 12.0 I could reproduce it. Note that you have to open up a very large file 
to see the effect (e.g. 
[StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]).

This is the expected result, which works for smaller files:

!Bildschirmfoto von 2021-03-01 10-41-15.png|width=262,height=202!

For very large files, the bar is offset by large amounts:

  !Bildschirmfoto von 2021-03-01 11-28-24.png|width=327,height=238!

You can find the zipped project here: 
[https://share.cqse.eu/public/BS/sidebar_test.zip]

With 12.2 the plugin is not loaded at all (breakpoint in {{createSideBar}} is 
not triggered).

> SideBarFactory painting offset with large files
> ---
>
> Key: NETBEANS-3355
> URL: https://issues.apache.org/jira/browse/NETBEANS-3355
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 8.2, 11.0
>Reporter: Benedikt Schlagberger
>Priority: Major
> Attachments: Bildschirmfoto von 2019-11-07 19-34-21.png, 
> Bildschirmfoto von 2021-03-01 10-41-15.png, Bildschirmfoto von 2021-03-01 
> 11-28-24.png
>
>
> When painting in the sidebar using the {{SideBarFactory}}, the painted 
> Graphic is offset for large files. To reproduce, create a NetBeans plugin 
> project and add the following class:
> {code:java}
> package com.mycompany.sidebar_test;
> import java.awt.Color;
> import java.awt.Dimension;
> import java.awt.Graphics;
> import javax.swing.JComponent;
> import javax.swing.text.JTextComponent;
> import org.netbeans.spi.editor.SideBarFactory;
> public class MySidebarFactory implements SideBarFactory {
> @Override
> public JComponent createSideBar(JTextComponent jtc) {
> return new MySidebar();
> }
> private class MySidebar extends JComponent {
> @Override
> protected void paintComponent(Graphics g) {
> g.setColor(Color.BLUE);
> g.fillRect(0, 0, 10, 1000); // Paint blue rectangle starting at 
> the top of the sidebar with height of 1000px 
> }
> @Override
> public Dimension getPreferredSize() {
> Dimension dimension = new Dimension(this.getParent().getSize());
> dimension.width = 10;
> return dimension;
> }
> }
> }
> {code}
> Register the {{SideBarFactory}} using the following {{layers.xml}}:
> {code:xml}
> 
>  "http://www.netbeans.org/dtds/filesystem-1_2.dtd";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> {code}
> Now start the plugin and open a project containing a large file for example 
> the 
> [StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]
>  from the apache commons lib.
> The painting is offset by a large amount as you can see in the attached 
> screenshot (blue rectangle should start in line 1, not 2150). When shortening 
> the file and re-opening it, the marker moves, so I suppose this is related to 
> the file size.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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



[jira] [Updated] (NETBEANS-3355) SideBarFactory painting offset with large files

2021-03-01 Thread Benedikt Schlagberger (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benedikt Schlagberger updated NETBEANS-3355:

Attachment: Bildschirmfoto von 2021-03-01 11-28-24.png

> SideBarFactory painting offset with large files
> ---
>
> Key: NETBEANS-3355
> URL: https://issues.apache.org/jira/browse/NETBEANS-3355
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 8.2, 11.0
>Reporter: Benedikt Schlagberger
>Priority: Major
> Attachments: Bildschirmfoto von 2019-11-07 19-34-21.png, 
> Bildschirmfoto von 2021-03-01 10-41-15.png, Bildschirmfoto von 2021-03-01 
> 11-28-24.png
>
>
> When painting in the sidebar using the {{SideBarFactory}}, the painted 
> Graphic is offset for large files. To reproduce, create a NetBeans plugin 
> project and add the following class:
> {code:java}
> package com.mycompany.sidebar_test;
> import java.awt.Color;
> import java.awt.Dimension;
> import java.awt.Graphics;
> import javax.swing.JComponent;
> import javax.swing.text.JTextComponent;
> import org.netbeans.spi.editor.SideBarFactory;
> public class MySidebarFactory implements SideBarFactory {
> @Override
> public JComponent createSideBar(JTextComponent jtc) {
> return new MySidebar();
> }
> private class MySidebar extends JComponent {
> @Override
> protected void paintComponent(Graphics g) {
> g.setColor(Color.BLUE);
> g.fillRect(0, 0, 10, 1000); // Paint blue rectangle starting at 
> the top of the sidebar with height of 1000px 
> }
> @Override
> public Dimension getPreferredSize() {
> Dimension dimension = new Dimension(this.getParent().getSize());
> dimension.width = 10;
> return dimension;
> }
> }
> }
> {code}
> Register the {{SideBarFactory}} using the following {{layers.xml}}:
> {code:xml}
> 
>  "http://www.netbeans.org/dtds/filesystem-1_2.dtd";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> {code}
> Now start the plugin and open a project containing a large file for example 
> the 
> [StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]
>  from the apache commons lib.
> The painting is offset by a large amount as you can see in the attached 
> screenshot (blue rectangle should start in line 1, not 2150). When shortening 
> the file and re-opening it, the marker moves, so I suppose this is related to 
> the file size.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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



[jira] [Comment Edited] (NETBEANS-3355) SideBarFactory painting offset with large files

2021-03-01 Thread Benedikt Schlagberger (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17292804#comment-17292804
 ] 

Benedikt Schlagberger edited comment on NETBEANS-3355 at 3/1/21, 10:28 AM:
---

Thanks a lot for your response! I tried again with NetBeans 12.0 LTS and 12.2. 
For 12.0 I could reproduce it. Note that you have to open up a very large file 
to see the effect (e.g. 
[StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]).

This is the expected result, which works for smaller files:

!Bildschirmfoto von 2021-03-01 10-41-15.png|width=262,height=202!

For very large files, the bar is shifted down:

 

You can find the zipped project here: 
[https://share.cqse.eu/public/BS/sidebar_test.zip]

With 12.2 the plugin is not loaded at all (breakpoint in {{createSideBar}} is 
not triggered).


was (Author: bschlagberger):
Thanks a lot for your response! I tried again with NetBeans 12.0 LTS and 12.2. 
For 12.0 I could reproduce it. Note that you have to open up a file with more 
than 2000 lines to see the effect (e.g. 
[StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]).
 You can find the zipped project here: 
https://share.cqse.eu/public/BS/sidebar_test.zip

With 12.2 the plugin is not loaded at all (breakpoint in {{createSideBar}} is 
not triggered).

> SideBarFactory painting offset with large files
> ---
>
> Key: NETBEANS-3355
> URL: https://issues.apache.org/jira/browse/NETBEANS-3355
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 8.2, 11.0
>Reporter: Benedikt Schlagberger
>Priority: Major
> Attachments: Bildschirmfoto von 2019-11-07 19-34-21.png, 
> Bildschirmfoto von 2021-03-01 10-41-15.png
>
>
> When painting in the sidebar using the {{SideBarFactory}}, the painted 
> Graphic is offset for large files. To reproduce, create a NetBeans plugin 
> project and add the following class:
> {code:java}
> package com.mycompany.sidebar_test;
> import java.awt.Color;
> import java.awt.Dimension;
> import java.awt.Graphics;
> import javax.swing.JComponent;
> import javax.swing.text.JTextComponent;
> import org.netbeans.spi.editor.SideBarFactory;
> public class MySidebarFactory implements SideBarFactory {
> @Override
> public JComponent createSideBar(JTextComponent jtc) {
> return new MySidebar();
> }
> private class MySidebar extends JComponent {
> @Override
> protected void paintComponent(Graphics g) {
> g.setColor(Color.BLUE);
> g.fillRect(0, 0, 10, 1000); // Paint blue rectangle starting at 
> the top of the sidebar with height of 1000px 
> }
> @Override
> public Dimension getPreferredSize() {
> Dimension dimension = new Dimension(this.getParent().getSize());
> dimension.width = 10;
> return dimension;
> }
> }
> }
> {code}
> Register the {{SideBarFactory}} using the following {{layers.xml}}:
> {code:xml}
> 
>  "http://www.netbeans.org/dtds/filesystem-1_2.dtd";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> {code}
> Now start the plugin and open a project containing a large file for example 
> the 
> [StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]
>  from the apache commons lib.
> The painting is offset by a large amount as you can see in the attached 
> screenshot (blue rectangle should start in line 1, not 2150). When shortening 
> the file and re-opening it, the marker moves, so I suppose this is related to 
> the file size.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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



[jira] [Updated] (NETBEANS-3355) SideBarFactory painting offset with large files

2021-03-01 Thread Benedikt Schlagberger (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benedikt Schlagberger updated NETBEANS-3355:

Attachment: Bildschirmfoto von 2021-03-01 10-41-15.png

> SideBarFactory painting offset with large files
> ---
>
> Key: NETBEANS-3355
> URL: https://issues.apache.org/jira/browse/NETBEANS-3355
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 8.2, 11.0
>Reporter: Benedikt Schlagberger
>Priority: Major
> Attachments: Bildschirmfoto von 2019-11-07 19-34-21.png, 
> Bildschirmfoto von 2021-03-01 10-41-15.png
>
>
> When painting in the sidebar using the {{SideBarFactory}}, the painted 
> Graphic is offset for large files. To reproduce, create a NetBeans plugin 
> project and add the following class:
> {code:java}
> package com.mycompany.sidebar_test;
> import java.awt.Color;
> import java.awt.Dimension;
> import java.awt.Graphics;
> import javax.swing.JComponent;
> import javax.swing.text.JTextComponent;
> import org.netbeans.spi.editor.SideBarFactory;
> public class MySidebarFactory implements SideBarFactory {
> @Override
> public JComponent createSideBar(JTextComponent jtc) {
> return new MySidebar();
> }
> private class MySidebar extends JComponent {
> @Override
> protected void paintComponent(Graphics g) {
> g.setColor(Color.BLUE);
> g.fillRect(0, 0, 10, 1000); // Paint blue rectangle starting at 
> the top of the sidebar with height of 1000px 
> }
> @Override
> public Dimension getPreferredSize() {
> Dimension dimension = new Dimension(this.getParent().getSize());
> dimension.width = 10;
> return dimension;
> }
> }
> }
> {code}
> Register the {{SideBarFactory}} using the following {{layers.xml}}:
> {code:xml}
> 
>  "http://www.netbeans.org/dtds/filesystem-1_2.dtd";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> {code}
> Now start the plugin and open a project containing a large file for example 
> the 
> [StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]
>  from the apache commons lib.
> The painting is offset by a large amount as you can see in the attached 
> screenshot (blue rectangle should start in line 1, not 2150). When shortening 
> the file and re-opening it, the marker moves, so I suppose this is related to 
> the file size.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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



[jira] [Reopened] (NETBEANS-3355) SideBarFactory painting offset with large files

2021-03-01 Thread Benedikt Schlagberger (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-3355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benedikt Schlagberger reopened NETBEANS-3355:
-

> SideBarFactory painting offset with large files
> ---
>
> Key: NETBEANS-3355
> URL: https://issues.apache.org/jira/browse/NETBEANS-3355
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 8.2, 11.0
>Reporter: Benedikt Schlagberger
>Priority: Major
> Attachments: Bildschirmfoto von 2019-11-07 19-34-21.png, 
> Bildschirmfoto von 2021-03-01 10-41-15.png
>
>
> When painting in the sidebar using the {{SideBarFactory}}, the painted 
> Graphic is offset for large files. To reproduce, create a NetBeans plugin 
> project and add the following class:
> {code:java}
> package com.mycompany.sidebar_test;
> import java.awt.Color;
> import java.awt.Dimension;
> import java.awt.Graphics;
> import javax.swing.JComponent;
> import javax.swing.text.JTextComponent;
> import org.netbeans.spi.editor.SideBarFactory;
> public class MySidebarFactory implements SideBarFactory {
> @Override
> public JComponent createSideBar(JTextComponent jtc) {
> return new MySidebar();
> }
> private class MySidebar extends JComponent {
> @Override
> protected void paintComponent(Graphics g) {
> g.setColor(Color.BLUE);
> g.fillRect(0, 0, 10, 1000); // Paint blue rectangle starting at 
> the top of the sidebar with height of 1000px 
> }
> @Override
> public Dimension getPreferredSize() {
> Dimension dimension = new Dimension(this.getParent().getSize());
> dimension.width = 10;
> return dimension;
> }
> }
> }
> {code}
> Register the {{SideBarFactory}} using the following {{layers.xml}}:
> {code:xml}
> 
>  "http://www.netbeans.org/dtds/filesystem-1_2.dtd";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> {code}
> Now start the plugin and open a project containing a large file for example 
> the 
> [StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]
>  from the apache commons lib.
> The painting is offset by a large amount as you can see in the attached 
> screenshot (blue rectangle should start in line 1, not 2150). When shortening 
> the file and re-opening it, the marker moves, so I suppose this is related to 
> the file size.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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



[jira] [Commented] (NETBEANS-3355) SideBarFactory painting offset with large files

2021-03-01 Thread Benedikt Schlagberger (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17292804#comment-17292804
 ] 

Benedikt Schlagberger commented on NETBEANS-3355:
-

Thanks a lot for your response! I tried again with NetBeans 12.0 LTS and 12.2. 
For 12.0 I could reproduce it. Note that you have to open up a file with more 
than 2000 lines to see the effect (e.g. 
[StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]).
 You can find the zipped project here: 
https://share.cqse.eu/public/BS/sidebar_test.zip

With 12.2 the plugin is not loaded at all (breakpoint in {{createSideBar}} is 
not triggered).

> SideBarFactory painting offset with large files
> ---
>
> Key: NETBEANS-3355
> URL: https://issues.apache.org/jira/browse/NETBEANS-3355
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 8.2, 11.0
>Reporter: Benedikt Schlagberger
>Priority: Major
> Attachments: Bildschirmfoto von 2019-11-07 19-34-21.png
>
>
> When painting in the sidebar using the {{SideBarFactory}}, the painted 
> Graphic is offset for large files. To reproduce, create a NetBeans plugin 
> project and add the following class:
> {code:java}
> package com.mycompany.sidebar_test;
> import java.awt.Color;
> import java.awt.Dimension;
> import java.awt.Graphics;
> import javax.swing.JComponent;
> import javax.swing.text.JTextComponent;
> import org.netbeans.spi.editor.SideBarFactory;
> public class MySidebarFactory implements SideBarFactory {
> @Override
> public JComponent createSideBar(JTextComponent jtc) {
> return new MySidebar();
> }
> private class MySidebar extends JComponent {
> @Override
> protected void paintComponent(Graphics g) {
> g.setColor(Color.BLUE);
> g.fillRect(0, 0, 10, 1000); // Paint blue rectangle starting at 
> the top of the sidebar with height of 1000px 
> }
> @Override
> public Dimension getPreferredSize() {
> Dimension dimension = new Dimension(this.getParent().getSize());
> dimension.width = 10;
> return dimension;
> }
> }
> }
> {code}
> Register the {{SideBarFactory}} using the following {{layers.xml}}:
> {code:xml}
> 
>  "http://www.netbeans.org/dtds/filesystem-1_2.dtd";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> {code}
> Now start the plugin and open a project containing a large file for example 
> the 
> [StrBuilder.java|https://raw.githubusercontent.com/apache/commons-lang/master/src/main/java/org/apache/commons/lang3/text/StrBuilder.java]
>  from the apache commons lib.
> The painting is offset by a large amount as you can see in the attached 
> screenshot (blue rectangle should start in line 1, not 2150). When shortening 
> the file and re-opening it, the marker moves, so I suppose this is related to 
> the file size.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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



[jira] [Created] (NETBEANS-5394) Support technology-specific default action mapping (e.g. Micronaut 3.0)

2021-03-01 Thread Svatopluk Dedic (Jira)
Svatopluk Dedic created NETBEANS-5394:
-

 Summary: Support technology-specific default action mapping (e.g. 
Micronaut 3.0)
 Key: NETBEANS-5394
 URL: https://issues.apache.org/jira/browse/NETBEANS-5394
 Project: NetBeans
  Issue Type: Improvement
  Components: projects - Maven
Affects Versions: 12.2
Reporter: Svatopluk Dedic


Micronaut 3.0 is going to *deprecate* maven exec:exec, which is now used by the 
IDE to issue these actions
 * Run, Run-single
 * Debug, Debug-single
 * Profile

The new supported way to invoke maven Micronaut projects will be *mn:run* using 
Micronaut's {{io.micronaut.build:micronaut-maven-plugin}}.

Maven support however has pluggable support just for different packaging type. 
Here, we would want to inject or redefine actions based on POM's or *effective 
POM*'s contents. 

The idea is to allow to plug "something like" 
{{org.netbeans.modules.maven.spi.actions.MavenActionsProvider}} for a specific 
inherited group:artifactId\{:version}, or in a generic way so that a provider 
can inspect the model and decide dynamically. Packaging could be also 
specified, as that defines the 'base' processing in most cases.

Both approaches has to be prepared for the case that the inherited POMs can be 
resolved later in the project's life, e.g. during the priming build.

This way, we can inject / override the actions with *mn:run* goal for 
specifically Micronaut projects, and keep the maven's core generic/clean.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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



[jira] [Updated] (NETBEANS-5393) Micronaut projects cannot be launched on non-default JDK

2021-03-01 Thread Svatopluk Dedic (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-5393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Svatopluk Dedic updated NETBEANS-5393:
--
External issue URL: 
https://github.com/micronaut-projects/micronaut-core/issues/5020

> Micronaut projects cannot be launched on non-default JDK
> 
>
> Key: NETBEANS-5393
> URL: https://issues.apache.org/jira/browse/NETBEANS-5393
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Maven
>Affects Versions: 12.2
>Reporter: Svatopluk Dedic
>Assignee: Svatopluk Dedic
>Priority: Major
>
> When using different than system-default JDK, Micronaut projects that 
> reference Micronaut's parent pom ( {{io.micronaut:micronaut-parent}}) cannot 
> be executed.
> For example if the system-default JDK is JDK 8, while the Micronaut project 
> targets JDK11, the project compiles fine using JDK11 compiler, but will be 
> run by JDK8 (the system-default on the PATH) runtime.
> This is caused by Micronaut's parent-pom, that prescribes to run {{java}} and 
> disables use of {{exec.executable}} project/commandline property. A possible 
> workaround would be to launch with {{PATH}} prepended with the selected JDK 
> platform, which can have adverse effects on maven execution itself and other 
> tools forked from the build process (different java than before the fix in 
> IDE).
> I will try to get Micronaut project fix this, possibly apply the above 
> workaround if Micronaut either rejects, or takes long to deliver the fix.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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



[jira] [Assigned] (NETBEANS-5393) Micronaut projects cannot be launched on non-default JDK

2021-03-01 Thread Svatopluk Dedic (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-5393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Svatopluk Dedic reassigned NETBEANS-5393:
-

Assignee: Svatopluk Dedic

> Micronaut projects cannot be launched on non-default JDK
> 
>
> Key: NETBEANS-5393
> URL: https://issues.apache.org/jira/browse/NETBEANS-5393
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Maven
>Affects Versions: 12.2
>Reporter: Svatopluk Dedic
>Assignee: Svatopluk Dedic
>Priority: Major
>
> When using different than system-default JDK, Micronaut projects that 
> reference Micronaut's parent pom ( {{io.micronaut:micronaut-parent}}) cannot 
> be executed.
> For example if the system-default JDK is JDK 8, while the Micronaut project 
> targets JDK11, the project compiles fine using JDK11 compiler, but will be 
> run by JDK8 (the system-default on the PATH) runtime.
> This is caused by Micronaut's parent-pom, that prescribes to run {{java}} and 
> disables use of {{exec.executable}} project/commandline property. A possible 
> workaround would be to launch with {{PATH}} prepended with the selected JDK 
> platform, which can have adverse effects on maven execution itself and other 
> tools forked from the build process (different java than before the fix in 
> IDE).
> I will try to get Micronaut project fix this, possibly apply the above 
> workaround if Micronaut either rejects, or takes long to deliver the fix.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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



[jira] [Updated] (NETBEANS-5393) Micronaut projects cannot be launched on non-default JDK

2021-03-01 Thread Svatopluk Dedic (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-5393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Svatopluk Dedic updated NETBEANS-5393:
--
Description: 
When using different than system-default JDK, Micronaut projects that reference 
Micronaut's parent pom ( {{io.micronaut:micronaut-parent}}) cannot be executed.

For example if the system-default JDK is JDK 8, while the Micronaut project 
targets JDK11, the project compiles fine using JDK11 compiler, but will be run 
by JDK8 (the system-default on the PATH) runtime.

This is caused by Micronaut's parent-pom, that prescribes to run {{java}} and 
disables use of {{exec.executable}} project/commandline property. A possible 
workaround would be to launch with {{PATH}} prepended with the selected JDK 
platform, which can have adverse effects on maven execution itself and other 
tools forked from the build process (different java than before the fix in IDE).

I will try to get Micronaut project fix this, possibly apply the above 
workaround if Micronaut either rejects, or takes long to deliver the fix.

  was:
When using different than system-default JDK, Micronaut projects that reference 
Micronaut's parent pom ( {{io.micronaut:micronaut-parent}}) cannot be executed.

For example if the system-default JDK is JDK 8, while the Micronaut project 
targets JDK11, the project compiles fine using JDK11 compiler, but will be run 
by JDK8 (the system-default on the PATH) runtime.

This is caused by Micronaut's parent-pom, that prescribes to run {{java}} and 
disables use of {{exec.executable}} project/commandline property.

A possible workaround would be to launch with {{PATH}} prepended with the 
selected JDK platform.


> Micronaut projects cannot be launched on non-default JDK
> 
>
> Key: NETBEANS-5393
> URL: https://issues.apache.org/jira/browse/NETBEANS-5393
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Maven
>Affects Versions: 12.2
>Reporter: Svatopluk Dedic
>Priority: Major
>
> When using different than system-default JDK, Micronaut projects that 
> reference Micronaut's parent pom ( {{io.micronaut:micronaut-parent}}) cannot 
> be executed.
> For example if the system-default JDK is JDK 8, while the Micronaut project 
> targets JDK11, the project compiles fine using JDK11 compiler, but will be 
> run by JDK8 (the system-default on the PATH) runtime.
> This is caused by Micronaut's parent-pom, that prescribes to run {{java}} and 
> disables use of {{exec.executable}} project/commandline property. A possible 
> workaround would be to launch with {{PATH}} prepended with the selected JDK 
> platform, which can have adverse effects on maven execution itself and other 
> tools forked from the build process (different java than before the fix in 
> IDE).
> I will try to get Micronaut project fix this, possibly apply the above 
> workaround if Micronaut either rejects, or takes long to deliver the fix.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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



[jira] [Created] (NETBEANS-5393) Micronaut projects cannot be launched on non-default JDK

2021-03-01 Thread Svatopluk Dedic (Jira)
Svatopluk Dedic created NETBEANS-5393:
-

 Summary: Micronaut projects cannot be launched on non-default JDK
 Key: NETBEANS-5393
 URL: https://issues.apache.org/jira/browse/NETBEANS-5393
 Project: NetBeans
  Issue Type: Bug
  Components: projects - Maven
Affects Versions: 12.2
Reporter: Svatopluk Dedic


When using different than system-default JDK, Micronaut projects that reference 
Micronaut's parent pom ( {{io.micronaut:micronaut-parent}}) cannot be executed.

For example if the system-default JDK is JDK 8, while the Micronaut project 
targets JDK11, the project compiles fine using JDK11 compiler, but will be run 
by JDK8 (the system-default on the PATH) runtime.

This is caused by Micronaut's parent-pom, that prescribes to run {{java}} and 
disables use of {{exec.executable}} project/commandline property.

A possible workaround would be to launch with {{PATH}} prepended with the 
selected JDK platform.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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