[jira] [Commented] (NETBEANS-3758) "Run File" is often disabled after introducing a main() method

2020-03-27 Thread Marco Herrn (Jira)


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

Marco Herrn commented on NETBEANS-3758:
---

Sorry for my late reply. I have overlooked your comment.

Yes, I have saved the file. In the past that was enough, but this is not the 
case anymore with Netbeans 11.1. Not even closing and reopening the project 
helped.

Also my projects are on the local filesystem. Netbeans detect changes (like 
files modified in external programs) just fine. The only problem is that the 
menu entries to run the file remain disabled.


> "Run File" is often disabled after introducing a main() method
> --
>
> Key: NETBEANS-3758
> URL: https://issues.apache.org/jira/browse/NETBEANS-3758
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Actions/Menu/Toolbar
>Affects Versions: 11.1
>Reporter: Marco Herrn
>Priority: Major
>  Labels: run
> Attachments: main.png
>
>
> Often when introducing a new `main` method into an existing class, the "Run 
> File" and "Debug File" menu entries are still disabled and is therefore 
> impossible to execute this `main` method.
> In most cases it is necessary to closes netbeans and clear the netbeans cache 
> to be able to execute it, which is absolutely counterproductive if such a 
> method is only temporarily inserted for testing purposes.
> It may be that this only happens with Maven projects, since all my projects 
> are maven based.
> Please see the attached screenshot that shows the context menu after 
> introducing a new `main` method.



--
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-3913) Don't add @Override notation to static methods when generating delegate methods

2020-02-24 Thread Marco Herrn (Jira)
Marco Herrn created NETBEANS-3913:
-

 Summary: Don't add @Override notation to static methods when 
generating delegate methods
 Key: NETBEANS-3913
 URL: https://issues.apache.org/jira/browse/NETBEANS-3913
 Project: NetBeans
  Issue Type: Bug
Affects Versions: 11.1
Reporter: Marco Herrn


For the following class:

{{
import java.util.Map;
import java.util.HashMap;

public class MyMap implements Map {
private final Map innerMap= new HashMap<>();
}
}}


call {{"Source / Insert Code … / Delegate Method"}} and select all methods.

Netbeans generates a delegate for each method in Map.
All methods are annotated with @Override. But this is not valid for static 
methods like Map.of(…).

Netbeans should therefore omit the @Override annotation for such static methods.



--
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-3758) "Run File" is often disabled after introducing a main() method

2020-01-28 Thread Marco Herrn (Jira)
Marco Herrn created NETBEANS-3758:
-

 Summary: "Run File" is often disabled after introducing a main() 
method
 Key: NETBEANS-3758
 URL: https://issues.apache.org/jira/browse/NETBEANS-3758
 Project: NetBeans
  Issue Type: Bug
  Components: editor - Actions/Menu/Toolbar
Affects Versions: 11.1
Reporter: Marco Herrn
 Attachments: main.png

Often when introducing a new `main` method into an existing class, the "Run 
File" and "Debug File" menu entries are still disabled and is therefore 
impossible to execute this `main` method.

In most cases it is necessary to closes netbeans and clear the netbeans cache 
to be able to execute it, which is absolutely counterproductive if such a 
method is only temporarily inserted for testing purposes.

It may be that this only happens with Maven projects, since all my projects are 
maven based.

Please see the attached screenshot that shows the context menu after 
introducing a new `main` method.



--
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-3389) "Insert point down" seems hardcoded to arrow down

2019-11-14 Thread Marco Herrn (Jira)
Marco Herrn created NETBEANS-3389:
-

 Summary: "Insert point down" seems hardcoded to arrow down
 Key: NETBEANS-3389
 URL: https://issues.apache.org/jira/browse/NETBEANS-3389
 Project: NetBeans
  Issue Type: Bug
  Components: editor - Key bindings
Affects Versions: 11.2
Reporter: Marco Herrn


I use a (modified) emacs keybinding in Netbeans.

Therefore {{Ctrl-N}} is bound to {{Insertion Point Down}}, which means pressing 
{{Ctrl-N}} is the same as pressing the Down-Arrow, e.g. moves the cursor down 
in the editor window.

Up to Netbeans 11.1 this also works correctly in the code completion popup.
But since 11.2 only the Down-Arrow works in the code completion popup. If I 
press {{Ctrl-N}} the popup is closed and the cursor in the editor window is 
moved instead.



--
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-2918) ANSI colors stopped working since Netbeans 11.0

2019-10-22 Thread Marco Herrn (Jira)


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

Marco Herrn commented on NETBEANS-2918:
---

I could narrow the problem down. It is not directly related to Netbeans >= 11.

The output coloring works well when using the bundled maven (3.3.9).

The coloring breaks when using a custom maven 3.6.0.

When calling the same commandline netbeans uses, the coloring works when doing 
starting the application from the linux console for both, the bundled and the 
custom maven.

So it seems that the bundled maven correctly gets the color while a custom 
maven doesn't.

> ANSI colors stopped working since Netbeans 11.0
> ---
>
> Key: NETBEANS-2918
> URL: https://issues.apache.org/jira/browse/NETBEANS-2918
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - Output Window
>Affects Versions: 11.0, 11.1
> Environment: Linux (Debian Buster) 
>Reporter: Marco Herrn
>Priority: Minor
> Attachments: color.png, mono.png
>
>
> Log4j2 supports printing log entries with ANSI coloring.
> This did work in Netbeans up to version 10.0. However since 11.0 those colors 
> aren't displayed anymore.
> Please find attached the screenshots for the output window in netbeans 10.0 
> (color) and 11.0 (mono).
> However, colors from Maven or Stacktraces are still color coded.



--
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-1846) Netbeans can't print out colored text in the output window

2019-07-31 Thread Marco Herrn (JIRA)


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

Marco Herrn commented on NETBEANS-1846:
---

I could narrow the problem down. It is not directly related to Netbeans >= 11.

The output coloring works well when using the bundled maven (3.3.9).

The coloring breaks when using a custom maven 3.6.0.

When calling the same commandline netbeans uses, the coloring works when doing 
starting the application from the linux console for both, the bundled and the 
custom maven.

So it seems that the bundled maven correctly gets the color while a custom 
maven doesn't.

> Netbeans can't print out colored text in the output window
> --
>
> Key: NETBEANS-1846
> URL: https://issues.apache.org/jira/browse/NETBEANS-1846
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - Output Window
>Affects Versions: 10.0
>Reporter: Peter
>Priority: Major
> Attachments: Screenshot 2018-12-30 at 1.00.53 PM.png, Screenshot 
> 2018-12-30 at 1.01.03 PM.png
>
>
> public class TestConsole {
> @Test
>  public void test() throws Exception {
> String ANSI_RESET = "\u001B[0m";
>  String ANSI_RED = "\u001B[31m";
>  System.out.println(ANSI_RED + "XX");
>  System.out.flush();
>  System.out.println(ANSI_RESET);
>  System.out.println("\033[31;1mHello\033[0m, \033[32;1;2mworld!\033[0m");
>  System.out.println((char) 27 + "[32m" + "ERROR MESSAGE IN GREEN");
>  System.out.println((char) 27 + "[33mYELLOW");
>  System.setProperty("jansi.passthrough", "true");
>  System.out.println(ansi().fg(RED).a("Hello").fg(GREEN).a(" World").reset());
>  }
> }
>  
> 
>  org.fusesource.jansi
>  jansi
>  1.17
>  test
>  
>  
> Tried Maven 3.3.9, 3.5.3, 3.6.0
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
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-2918) ANSI colors stopped working since Netbeans 11.0

2019-07-30 Thread Marco Herrn (JIRA)
Marco Herrn created NETBEANS-2918:
-

 Summary: ANSI colors stopped working since Netbeans 11.0
 Key: NETBEANS-2918
 URL: https://issues.apache.org/jira/browse/NETBEANS-2918
 Project: NetBeans
  Issue Type: Bug
  Components: platform - Output Window
Affects Versions: 11.0, 11.1
 Environment: Linux (Debian Buster) 
Reporter: Marco Herrn
 Attachments: color.png, mono.png

Log4j2 supports printing log entries with ANSI coloring.

This did work in Netbeans up to version 10.0. However since 11.0 those colors 
aren't displayed anymore.

Please find attached the screenshots for the output window in netbeans 10.0 
(color) and 11.0 (mono).

However, colors from Maven or Stacktraces are still color coded.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
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-1213) Please support localization bundles in UTF-8

2018-10-24 Thread Marco Herrn (JIRA)


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

Marco Herrn reassigned NETBEANS-1213:
-


> Please support localization bundles in UTF-8
> 
>
> Key: NETBEANS-1213
> URL: https://issues.apache.org/jira/browse/NETBEANS-1213
> Project: NetBeans
>  Issue Type: Improvement
>Affects Versions: 9.0
>Reporter: Marco Herrn
>Assignee: Marco Herrn
>Priority: Major
>
> Since Java 9 java i18n resource bundles can (finally) be encoded in UTF-8.
> Editing these with netbeans 9 doesn't work however.
> When editing a resource bundle with netbeans it always creates a file with 
> unicode escape sequences (e.g. \u00fc for the german umlaut ü).
> Even worse, files that are already in UTF-8 the entries are mangles in the 
> IDE, since if interprets the characters wrong (e.g the german umlaut ü 
> becomes ö).
> UTF-8 should be the default for i18n resource bundles and unicode escape 
> sequences supported.



--
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



[jira] [Created] (NETBEANS-1213) Please support localization bundles in UTF-8

2018-09-04 Thread Marco Herrn (JIRA)
Marco Herrn created NETBEANS-1213:
-

 Summary: Please support localization bundles in UTF-8
 Key: NETBEANS-1213
 URL: https://issues.apache.org/jira/browse/NETBEANS-1213
 Project: NetBeans
  Issue Type: Improvement
Affects Versions: 9.0
Reporter: Marco Herrn


Since Java 9 java i18n resource bundles can (finally) be encoded in UTF-8.
Editing these with netbeans 9 doesn't work however.

When editing a resource bundle with netbeans it always creates a file with 
unicode escape sequences (e.g. \u00fc for the german umlaut ü).

Even worse, files that are already in UTF-8 the entries are mangles in the IDE, 
since if interprets the characters wrong (e.g the german umlaut ü becomes ö).

UTF-8 should be the default for i18n resource bundles and unicode escape 
sequences supported.



--
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



[jira] [Created] (NETBEANS-1212) "Report Issue" link in help menu leads to the old issue tracking system

2018-09-04 Thread Marco Herrn (JIRA)
Marco Herrn created NETBEANS-1212:
-

 Summary: "Report Issue" link in help menu leads to the old issue 
tracking system
 Key: NETBEANS-1212
 URL: https://issues.apache.org/jira/browse/NETBEANS-1212
 Project: NetBeans
  Issue Type: Bug
Affects Versions: 9.0
Reporter: Marco Herrn


The link Help/Report issue... still works in netbeans 9.0 but opens an issue 
mask for the old issue tracker and shows the available netbeans version up to 
8.2.

This should be updated to the correct issue tracker.



--
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