[jira] [Comment Edited] (NETBEANS-235) Wrap Text breaks copy/paste of output window

2022-01-29 Thread Eric Bresie (Jira)


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

Eric Bresie edited comment on NETBEANS-235 at 1/29/22, 3:49 PM:


I have seen this with Windows 10, with netbeans 13-rc2

openjdk version "11.0.13" 2021-10-19
OpenJDK Runtime Environment Temurin-11.0.13+8 (build 11.0.13+8)
OpenJDK 64-Bit Server VM Temurin-11.0.13+8 (build 11.0.13+8, mixed mode)

I may be in HiDP (my Display Resolution indicates 3840 x2160) but not sure how 
that aligns to HiDP in other context and OS

This was in a Maven output.
Attempting in an Ant project output seems to work fine.  

Correction: when in netbeans, on master netbeans, running ant all, from output, 
when copying and pasting to external app, it shows incorrect


was (Author: ebresie):
I have seen this with Windows 10, with netbeans 13-rc2

openjdk version "11.0.13" 2021-10-19
OpenJDK Runtime Environment Temurin-11.0.13+8 (build 11.0.13+8)
OpenJDK 64-Bit Server VM Temurin-11.0.13+8 (build 11.0.13+8, mixed mode)

I may be in HiDP (my Display Resolution indicates 3840 x2160) but not sure how 
that aligns to HiDP in other context and OS

This was in a Maven output.
Attempting in an Ant project output seems to work fine.

> Wrap Text breaks copy/paste of output window
> 
>
> Key: NETBEANS-235
> URL: https://issues.apache.org/jira/browse/NETBEANS-235
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - Output Window
>Affects Versions: 9.0
> Environment: Microsoft Windows [Version 10.0.16299.125]
> DPI scaling: 150%
> java version "9.0.1"
> Java(TM) SE Runtime Environment (build 9.0.1+11)
> Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
>Reporter: Gili
>Priority: Major
>  Labels: HiDPI, Java10, regression
> Attachments: 2018-04-22 at 00-57-36.mp4
>
>
> Repro steps:
> 1. Run any Java maven program
> 2. (With Wrap Text disabled) Copy text from the output window, paste it into 
> another application
> 3. Notice that this works (the text you see selected when you copy is the 
> text you get when you paste)
> 4. Enable Wrap Text in the Output Window
> 5. Re-run the application
> 6. Copy text from the output window, paste it into another application.
> 7. Notice that the selected text in Netbeans is not the text that gets 
> pasted. Furthermore, if you attempt to select the entire line in the Output 
> Window, you will notice that the caret will not go to the end of the line. 
> This is because the visual and API offsets are not aligned so when the caret 
> goes *near* the end of line visually, it is actually at the end of the line 
> as far as the API is concerned. If you copy/paste this fake end-of-line you 
> will get the entire line.
> Expected behavior: Consistent behavior when Wrap Text is enabled or disabled.
> 1. We should be able to copy whatever text is visually selected.
> 2. We should be able to select the entire line.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
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-235) Wrap Text breaks copy/paste of output window

2022-01-29 Thread Eric Bresie (Jira)


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

Eric Bresie edited comment on NETBEANS-235 at 1/29/22, 2:52 PM:


I have seen this with Windows 10, with netbeans 13-rc2

openjdk version "11.0.13" 2021-10-19
OpenJDK Runtime Environment Temurin-11.0.13+8 (build 11.0.13+8)
OpenJDK 64-Bit Server VM Temurin-11.0.13+8 (build 11.0.13+8, mixed mode)

I may be in HiDP (my Display Resolution indicates 3840 x2160) but not sure how 
that aligns to HiDP in other context and OS

This was in a Maven output.
Attempting in an Ant project output seems to work fine.


was (Author: ebresie):
I have seen this with Windows 10, with netbeans 13-rc2

openjdk version "11.0.13" 2021-10-19
OpenJDK Runtime Environment Temurin-11.0.13+8 (build 11.0.13+8)
OpenJDK 64-Bit Server VM Temurin-11.0.13+8 (build 11.0.13+8, mixed mode)

I may be in HiDP (my Display Resolution indicates 3840 x2160) but not sure how 
that aligns to HiDP in other context and OS

> Wrap Text breaks copy/paste of output window
> 
>
> Key: NETBEANS-235
> URL: https://issues.apache.org/jira/browse/NETBEANS-235
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - Output Window
>Affects Versions: 9.0
> Environment: Microsoft Windows [Version 10.0.16299.125]
> DPI scaling: 150%
> java version "9.0.1"
> Java(TM) SE Runtime Environment (build 9.0.1+11)
> Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
>Reporter: Gili
>Priority: Major
>  Labels: HiDPI, Java10, regression
> Attachments: 2018-04-22 at 00-57-36.mp4
>
>
> Repro steps:
> 1. Run any Java maven program
> 2. (With Wrap Text disabled) Copy text from the output window, paste it into 
> another application
> 3. Notice that this works (the text you see selected when you copy is the 
> text you get when you paste)
> 4. Enable Wrap Text in the Output Window
> 5. Re-run the application
> 6. Copy text from the output window, paste it into another application.
> 7. Notice that the selected text in Netbeans is not the text that gets 
> pasted. Furthermore, if you attempt to select the entire line in the Output 
> Window, you will notice that the caret will not go to the end of the line. 
> This is because the visual and API offsets are not aligned so when the caret 
> goes *near* the end of line visually, it is actually at the end of the line 
> as far as the API is concerned. If you copy/paste this fake end-of-line you 
> will get the entire line.
> Expected behavior: Consistent behavior when Wrap Text is enabled or disabled.
> 1. We should be able to copy whatever text is visually selected.
> 2. We should be able to select the entire line.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
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-235) Wrap Text breaks copy/paste of output window

2022-01-29 Thread Eric Bresie (Jira)


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

Eric Bresie edited comment on NETBEANS-235 at 1/29/22, 2:49 PM:


I have seen this with Windows 10, with netbeans 13-rc2

openjdk version "11.0.13" 2021-10-19
OpenJDK Runtime Environment Temurin-11.0.13+8 (build 11.0.13+8)
OpenJDK 64-Bit Server VM Temurin-11.0.13+8 (build 11.0.13+8, mixed mode)

I may be in HiDP (my Display Resolution indicates 3840 x2160) but not sure how 
that aligns to HiDP in other context and OS


was (Author: ebresie):
I have seen this with Windows 10, with netbeans 12-rc2

openjdk version "11.0.13" 2021-10-19
OpenJDK Runtime Environment Temurin-11.0.13+8 (build 11.0.13+8)
OpenJDK 64-Bit Server VM Temurin-11.0.13+8 (build 11.0.13+8, mixed mode)

I may be in HiDP (my Display Resolution indicates 3840 x2160) but not sure how 
that aligns to HiDP in other context and OS

> Wrap Text breaks copy/paste of output window
> 
>
> Key: NETBEANS-235
> URL: https://issues.apache.org/jira/browse/NETBEANS-235
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - Output Window
>Affects Versions: 9.0
> Environment: Microsoft Windows [Version 10.0.16299.125]
> DPI scaling: 150%
> java version "9.0.1"
> Java(TM) SE Runtime Environment (build 9.0.1+11)
> Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
>Reporter: Gili
>Priority: Major
>  Labels: HiDPI, Java10, regression
> Attachments: 2018-04-22 at 00-57-36.mp4
>
>
> Repro steps:
> 1. Run any Java maven program
> 2. (With Wrap Text disabled) Copy text from the output window, paste it into 
> another application
> 3. Notice that this works (the text you see selected when you copy is the 
> text you get when you paste)
> 4. Enable Wrap Text in the Output Window
> 5. Re-run the application
> 6. Copy text from the output window, paste it into another application.
> 7. Notice that the selected text in Netbeans is not the text that gets 
> pasted. Furthermore, if you attempt to select the entire line in the Output 
> Window, you will notice that the caret will not go to the end of the line. 
> This is because the visual and API offsets are not aligned so when the caret 
> goes *near* the end of line visually, it is actually at the end of the line 
> as far as the API is concerned. If you copy/paste this fake end-of-line you 
> will get the entire line.
> Expected behavior: Consistent behavior when Wrap Text is enabled or disabled.
> 1. We should be able to copy whatever text is visually selected.
> 2. We should be able to select the entire line.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
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-235) Wrap Text breaks copy/paste of output window

2022-01-29 Thread Eric Bresie (Jira)


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

Eric Bresie edited comment on NETBEANS-235 at 1/29/22, 2:47 PM:


I have seen this with Windows 10, with netbeans 12-rc2

openjdk version "11.0.13" 2021-10-19
OpenJDK Runtime Environment Temurin-11.0.13+8 (build 11.0.13+8)
OpenJDK 64-Bit Server VM Temurin-11.0.13+8 (build 11.0.13+8, mixed mode)

I may be in HiDP (my Display Resolution indicates 3840 x2160) but not sure how 
that aligns to HiDP in other context and OS


was (Author: ebresie):
I have seen this with Windows 10, with netbeans 12-rc2

openjdk version "11.0.13" 2021-10-19
OpenJDK Runtime Environment Temurin-11.0.13+8 (build 11.0.13+8)
OpenJDK 64-Bit Server VM Temurin-11.0.13+8 (build 11.0.13+8, mixed mode)

> Wrap Text breaks copy/paste of output window
> 
>
> Key: NETBEANS-235
> URL: https://issues.apache.org/jira/browse/NETBEANS-235
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - Output Window
>Affects Versions: 9.0
> Environment: Microsoft Windows [Version 10.0.16299.125]
> DPI scaling: 150%
> java version "9.0.1"
> Java(TM) SE Runtime Environment (build 9.0.1+11)
> Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
>Reporter: Gili
>Priority: Major
>  Labels: HiDPI, Java10, regression
> Attachments: 2018-04-22 at 00-57-36.mp4
>
>
> Repro steps:
> 1. Run any Java maven program
> 2. (With Wrap Text disabled) Copy text from the output window, paste it into 
> another application
> 3. Notice that this works (the text you see selected when you copy is the 
> text you get when you paste)
> 4. Enable Wrap Text in the Output Window
> 5. Re-run the application
> 6. Copy text from the output window, paste it into another application.
> 7. Notice that the selected text in Netbeans is not the text that gets 
> pasted. Furthermore, if you attempt to select the entire line in the Output 
> Window, you will notice that the caret will not go to the end of the line. 
> This is because the visual and API offsets are not aligned so when the caret 
> goes *near* the end of line visually, it is actually at the end of the line 
> as far as the API is concerned. If you copy/paste this fake end-of-line you 
> will get the entire line.
> Expected behavior: Consistent behavior when Wrap Text is enabled or disabled.
> 1. We should be able to copy whatever text is visually selected.
> 2. We should be able to select the entire line.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
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-235) Wrap Text breaks copy/paste of output window

2018-04-22 Thread Gili (JIRA)

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

Gili edited comment on NETBEANS-235 at 4/22/18 11:35 PM:
-

Confirmed. This bug does **not** occur with JDK 8.

This still does not necessarily mean the bug is in the JDK. Maybe we're 
misusing the Java API somehow. How do we track down the problem to its source?

Out of curiosity, were you able to reproduce the problem using the testcase I 
provided above? Or does the problem still not occur under Linux?

As a side-note, here is the description of the HiDPI support added in Java 9: 
https://bugs.openjdk.java.net/browse/JDK-8055212


was (Author: cowwoc):
Confirmed. This bug does **not** occur with JDK 8.

This still does not necessarily mean the bug is in the JDK. Maybe we're 
misusing the Java API somehow. How do we track down the problem to its source?

Out of curiosity, were you able to reproduce the problem using the testcase I 
provided above? Or does the problem still not occur under Linux?

> Wrap Text breaks copy/paste of output window
> 
>
> Key: NETBEANS-235
> URL: https://issues.apache.org/jira/browse/NETBEANS-235
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - Output Window
>Affects Versions: 9.0
> Environment: Microsoft Windows [Version 10.0.16299.125]
> DPI scaling: 150%
> java version "9.0.1"
> Java(TM) SE Runtime Environment (build 9.0.1+11)
> Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
>Reporter: Gili
>Priority: Major
>  Labels: HiDPI, Java10, regression
> Attachments: 2018-04-22 at 00-57-36.mp4
>
>
> Repro steps:
> 1. Run any Java maven program
> 2. (With Wrap Text disabled) Copy text from the output window, paste it into 
> another application
> 3. Notice that this works (the text you see selected when you copy is the 
> text you get when you paste)
> 4. Enable Wrap Text in the Output Window
> 5. Re-run the application
> 6. Copy text from the output window, paste it into another application.
> 7. Notice that the selected text in Netbeans is not the text that gets 
> pasted. Furthermore, if you attempt to select the entire line in the Output 
> Window, you will notice that the caret will not go to the end of the line. 
> This is because the visual and API offsets are not aligned so when the caret 
> goes *near* the end of line visually, it is actually at the end of the line 
> as far as the API is concerned. If you copy/paste this fake end-of-line you 
> will get the entire line.
> Expected behavior: Consistent behavior when Wrap Text is enabled or disabled.
> 1. We should be able to copy whatever text is visually selected.
> 2. We should be able to select the entire line.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
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