[jira] [Created] (NETBEANS-3063) Allow us to add the "Navgate back" and "Navigate forward" arrow buttons to toolbar
Lyubomir Parvanov created NETBEANS-3063: --- Summary: Allow us to add the "Navgate back" and "Navigate forward" arrow buttons to toolbar Key: NETBEANS-3063 URL: https://issues.apache.org/jira/browse/NETBEANS-3063 Project: NetBeans Issue Type: Wish Affects Versions: 11.1 Environment: Ubuntu 19.04 Reporter: Lyubomir Parvanov ++Ctrl Alt Left doesn't work for some reason on Ubuntu, so have to add buttons to toolbar, but these are not available in the "Customize Toolbar"?? -- This message was sent by Atlassian Jira (v8.3.2#803003) - 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-3062) Netbeans 11 installation with JDK 12
Maju Johanna Perala created NETBEANS-3062: - Summary: Netbeans 11 installation with JDK 12 Key: NETBEANS-3062 URL: https://issues.apache.org/jira/browse/NETBEANS-3062 Project: NetBeans Issue Type: Improvement Components: ide - Features On Demand Environment: Windows 10 Reporter: Maju Johanna Perala Fix For: 11.0 The installation for the Netbeans 11 the latest made available with JDK 12 at first functions quite well, but most of the plugins get disconnected, after about 3 projects, in addition to which the simple Java apps become forced as Maven or Gradle projects. Why? This is misleading and rather disappointing to the developers and students, who take time to try out the new product and its functionalities. Is there a way to get the plugins and the initial set up and its functionalities back or is it just the way that developers, who cannot afford the EE edition gets treated by Apache? There was no indication or mention anywhere that such would be done, so just asking what your organisation's official policy these days. -- This message was sent by Atlassian Jira (v8.3.2#803003) - 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-3061) Support for localization of interface language
CHONG.CHEN created NETBEANS-3061: Summary: Support for localization of interface language Key: NETBEANS-3061 URL: https://issues.apache.org/jira/browse/NETBEANS-3061 Project: NetBeans Issue Type: Improvement Environment: Linux X64 Reporter: CHONG.CHEN Netbeans 8.2's localized language interface is very good. It was found that it was not localized when trying out version 11, which caused it to take a long time to study the prompt message. Localization is a kind of suggestion to save users time. -- This message was sent by Atlassian Jira (v8.3.2#803003) - 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-3060) Slowness experienced in NetBeans 11.0 while switching between the tabs
Farhad P. created NETBEANS-3060: --- Summary: Slowness experienced in NetBeans 11.0 while switching between the tabs Key: NETBEANS-3060 URL: https://issues.apache.org/jira/browse/NETBEANS-3060 Project: NetBeans Issue Type: Bug Components: cnd - Navigation Affects Versions: 11.1 Reporter: Farhad P. Below is the IDE log --- >Log Session: Wednesday, September 4, 2019 7:51:22 PM PDT >System Info: Product Version = Apache NetBeans IDE 11.0 (Build incubator-netbeans-release-404-on-20190319) Operating System= Windows 7 version 6.1 running on amd64 Java; VM; Vendor= 1.8.0_201; Java HotSpot(TM) 64-Bit Server VM 25.201-b09; Oracle Corporation Runtime = Java(TM) SE Runtime Environment 1.8.0_201-b09 Java Home = C:\Program Files\Java\jdk1.8.0_201\jre System Locale; Encoding = en_US (nb); Cp1252 Home Directory = C:\Users\fpagdiwala Current Directory = C:\Netbeans-Src\netbeans\bin User Directory = C:\Users\fpagdiwala\AppData\Roaming\NetBeans\11.0 Cache Directory = C:\Users\fpagdiwala\AppData\Local\NetBeans\Cache\11.0 Installation= C:\Netbeans-Src\netbeans\nb C:\Netbeans-Src\netbeans\ergonomics C:\Netbeans-Src\netbeans\ide C:\Netbeans-Src\netbeans\extide C:\Netbeans-Src\netbeans\java C:\Netbeans-Src\netbeans\apisupport C:\Netbeans-Src\netbeans\webcommon C:\Netbeans-Src\netbeans\websvccommon C:\Netbeans-Src\netbeans\enterprise C:\Netbeans-Src\netbeans\profiler C:\Netbeans-Src\netbeans\php C:\Netbeans-Src\netbeans\harness C:\Netbeans-Src\netbeans\groovy C:\Netbeans-Src\netbeans\javafx C:\Netbeans-Src\netbeans\platform Boot & Ext. Classpath = C:\Program Files\Java\jdk1.8.0_201\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\rt.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_201\jre\classes;C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_201\jre\lib\ext\zipfs.jar Application Classpath = C:\Netbeans-Src\netbeans\platform\lib\boot.jar;C:\Netbeans-Src\netbeans\platform\lib\org-openide-modules.jar;C:\Netbeans-Src\netbeans\platform\lib\org-openide-util-lookup.jar;C:\Netbeans-Src\netbeans\platform\lib\org-openide-util-ui.jar;C:\Netbeans-Src\netbeans\platform\lib\org-openide-util.jar;C:\Program Files\Java\jdk1.8.0_201\lib\dt.jar;C:\Program Files\Java\jdk1.8.0_201\lib\tools.jar Startup Classpath = C:\Netbeans-Src\netbeans\platform\core\asm-all-5.0.1.jar;C:\Netbeans-Src\netbeans\platform\core\core-base.jar;C:\Netbeans-Src\netbeans\platform\core\core.jar;C:\Netbeans-Src\netbeans\platform\core\org-netbeans-libs-asm.jar;C:\Netbeans-Src\netbeans\platform\core\org-openide-filesystems-compat8.jar;C:\Netbeans-Src\netbeans\platform\core\org-openide-filesystems.jar;C:\Netbeans-Src\netbeans\nb\core\org-netbeans-upgrader.jar;C:\Netbeans-Src\netbeans\nb\core\locale\core_nb.jar --- INFO [org.netbeans.modules.netbinox]: Install area set to file:/C:/Netbeans-Src/netbeans/ WARNING [org.netbeans.core.modules]: the modules [org.netbeans.modules.java.editor.lib, org.netbeans.modules.web.core.syntax, org.netbeans.modules.xml.text] use org.netbeans.modules.editor.deprecated.pre65formatting which is deprecated. WARNING [org.netbeans.core.modules]: the modules [org.netbeans.modules.ide.kit, org.netbeans.modules.xml.text] use org.netbeans.modules.editor.structure which is deprecated. WARNING [org.netbeans.core.modules]:
[jira] [Commented] (NETBEANS-2914) Fix imports not working properly
[ https://issues.apache.org/jira/browse/NETBEANS-2914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16922897#comment-16922897 ] John McDonnell commented on NETBEANS-2914: -- I've definitely seen this issue before but maybe only on my work laptop. On my home one I'm not able to reproduce. {noformat} Product Version: Apache NetBeans IDE 11.1 Updates: Updates available to version NetBeans 8.2 Patch 2 Java: 12.0.1; OpenJDK 64-Bit Server VM 12.0.1+12 Runtime: OpenJDK Runtime Environment 12.0.1+12 System: Mac OS X version 10.14.6 running on x86_64; UTF-8; en_GB (nb) User directory: /Users/john/Library/Application Support/NetBeans/11.1 Cache directory: /Users/john/Library/Caches/NetBeans/11.1 {noformat} I'll double check in the office tomorrow. > Fix imports not working properly > > > Key: NETBEANS-2914 > URL: https://issues.apache.org/jira/browse/NETBEANS-2914 > Project: NetBeans > Issue Type: Bug > Components: java - Editor >Affects Versions: 11.1 >Reporter: Eduard Catala >Priority: Major > Attachments: Captura de pantalla de 2019-07-29 18-55-06.png > > > Steps to reproduce: > Create a simple project (maven) > Include a dependency: > {\{ }} > {{ io.reactivex.rxjava2}} > {{ rxjava}} > {{ 2.2.10}} > \{{ }} > > Create a main method: > > {{public class Main {}} > {{ public static void main(String[] args) {}} > {{ Single s;}} > {{ }}} > {{}}} > > Fix imports (works) > Fix imports twice: The fix imports dialog is shown with incorrect import > proposal (view attached screenshot). > > Having the option "fix imports on save" is a nigthmare! > > -- This message was sent by Atlassian Jira (v8.3.2#803003) - 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] [Resolved] (NETBEANS-1861) Recognize @method static for documenting static methods
[ https://issues.apache.org/jira/browse/NETBEANS-1861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Junichi Yamamoto resolved NETBEANS-1861. Fix Version/s: 11.2 Resolution: Fixed Done. > Recognize @method static for documenting static methods > --- > > Key: NETBEANS-1861 > URL: https://issues.apache.org/jira/browse/NETBEANS-1861 > Project: NetBeans > Issue Type: Improvement > Components: php - Editor, php - PHPDoc >Affects Versions: 8.2, 9.0, 10.0 >Reporter: Ales Seifert >Assignee: Junichi Yamamoto >Priority: Major > Labels: pull-request-available > Fix For: 11.2 > > Time Spent: 2h 10m > Remaining Estimate: 0h > > The static keyword is not documented at phpdoc.org yet but it is stated that > it was added in 2.9.1 or probably 3.x branch here: > [https://github.com/phpDocumentor/phpDocumentor2/issues/822] > Other recent IDEs seems to support this syntax already. -- This message was sent by Atlassian Jira (v8.3.2#803003) - 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-2929) xdebug not working with NetBeans 11.1
[ https://issues.apache.org/jira/browse/NETBEANS-2929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16922719#comment-16922719 ] Lyubomir Parvanov edited comment on NETBEANS-2929 at 9/4/19 6:07 PM: - I am also experiencing this bug. Clean install of Netbeans, haven't really used it. Ubuntu 19.04 Netbeans 11.1 snap package. openjdk-8-jre PHP 7.2.19-0ubuntu0.19.04.2 (cli) (built: Aug 13 2019 11:45:23) ( NTS ) Xdebug 2.7.2 [XDebug] zend_extension = /usr/lib/php/20170718/xdebug.so xdebug.remote_enable = 1 xdebug.remote_autostart = 1 Xdebug by default uses port 9000. I've installed yii2 basic template into /var/www/html/yii2-test-app. !image-2019-09-04-20-51-37-754.png|width=806,height=401! Proxy settings set to No Proxy. Port set to 9000. With and without Stop at first line it doesn't work. I've somehow set the option on start of debugging to now open the page. Properties for project are: !image-2019-09-04-20-59-59-909.png|width=395,height=405! !image-2019-09-04-21-00-31-797.png|width=389,height=348! !image-2019-09-04-21-01-04-879.png|width=715,height=403! With or without mapping, does not work. Edit: forgot to clarify what happens - Netbeans says that it is waiting for connection, and the site stays loading until i stop debugging through the stop button of Netbeans. Then it stops loading the site and Netbeans shows that a connection was not made. If Netbeans debugging is not enabled then site loads correctly. If it is enabled just keeps on loading without showing a stop line in Netbeans. was (Author: liubomirwm): I am also experiencing this bug. Clean install of Netbeans, haven't really used it. Ubuntu 19.04 Netbeans 11.1 snap package. openjdk-8-jre PHP 7.2.19-0ubuntu0.19.04.2 (cli) (built: Aug 13 2019 11:45:23) ( NTS ) Xdebug 2.7.2 [XDebug] zend_extension = /usr/lib/php/20170718/xdebug.so xdebug.remote_enable = 1 xdebug.remote_autostart = 1 Xdebug by default uses port 9000. I've installed yii2 basic template into /var/www/html/yii2-test-app. !image-2019-09-04-20-51-37-754.png|width=806,height=401! Proxy settings set to No Proxy. Port set to 9000. With and without Stop at first line it doesn't work. I've somehow set the option on start of debugging to now open the page. Properties for project are: !image-2019-09-04-20-59-59-909.png|width=395,height=405! !image-2019-09-04-21-00-31-797.png|width=389,height=348! !image-2019-09-04-21-01-04-879.png|width=715,height=403! With or without mapping, does not work. > xdebug not working with NetBeans 11.1 > - > > Key: NETBEANS-2929 > URL: https://issues.apache.org/jira/browse/NETBEANS-2929 > Project: NetBeans > Issue Type: Bug >Affects Versions: 11.1 > Environment: Windows 10 64 bit >Reporter: Eduard Fekete >Priority: Major > Attachments: image-2019-09-04-20-51-37-754.png, > image-2019-09-04-20-59-59-909.png, image-2019-09-04-21-00-31-797.png, > image-2019-09-04-21-01-04-879.png, netbeans-2929-screenshot.png > > > I tried xdebug 2.7.2 with PHP 7.2.5 running on a remote linux openSUSE server. > It does not start the debugger and says "Waiting for debugger > (netbeans-xdebug)" but nothing happens. > If I try it in NetBeans 8.2 then it works. > > The configuration is the same in both NetBeans (Port, IDE key) > Java: jdk1.8.0_172, jre1.8.0_181 > > *Reproduction:* > # Install xdebug 2.7.2 from source by following instructions from here > [https://github.com/xdebug/xdebug] > # Set the following in php.ini > {code:java} > [XDebug] > zend_extension = /usr/lib64/php7/extensions/xdebug.so > xdebug.remote_connect_back=0 > xdebug.force_display_errors=on > xdebug.force_error_reporting=on > xdebug.remote_enable=on > xdebug.remote_handler=dbgp > xdebug.remote_host=192.168.40.161 #replace with IP of your remote client > where netbeans runs > xdebug.remote_port=51234 > xdebug.remote_timeout=3000 > xdebug.remote_mode=req > xdebug.remote_log=/var/log/xdebug/xdebug.log > xdebug.idekey = netbeans-xdebug > xdebug.renite_enable = 1 > xdebug.max_nesting_level = 1000 > xdebug.profiler_enable_trigger = 1 > xdebug.profiler_output_dir = '/var/log/xdebug'{code} > 3. Restart apache2 service > 4. Check if xdebug is installed by checking phpinfo > 5. open Netbeans 11.1 > 6. Go to Tools > Options -> PHP -> Debugging > 7. set "Debugger Port" to 51234 > 8. set "Session ID" to netbeans-xdebug > 9. open a test script > 10. right click -> Debug File > 11. Notice that "Wating for Connection (netbeans-xdebug)" shows forever and > nothing happens. > */var/log/xdebug/xdebug.log:* > {code:java} > [22426] Log opened at 2019-08-01 07:01:46 > [22426] I: Connecting to configured address/port: 192.168.40.161:51234. > [22426] E: Time-out connecting to client (Waited: 3000 ms). :-( > [22426] Log closed at 2019-08-01
[jira] [Commented] (NETBEANS-2929) xdebug not working with NetBeans 11.1
[ https://issues.apache.org/jira/browse/NETBEANS-2929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16922719#comment-16922719 ] Lyubomir Parvanov commented on NETBEANS-2929: - I am also experiencing this bug. Clean install of Netbeans, haven't really used it. Ubuntu 19.04 Netbeans 11.1 snap package. openjdk-8-jre PHP 7.2.19-0ubuntu0.19.04.2 (cli) (built: Aug 13 2019 11:45:23) ( NTS ) Xdebug 2.7.2 [XDebug] zend_extension = /usr/lib/php/20170718/xdebug.so xdebug.remote_enable = 1 xdebug.remote_autostart = 1 Xdebug by default uses port 9000. I've installed yii2 basic template into /var/www/html/yii2-test-app. !image-2019-09-04-20-51-37-754.png|width=806,height=401! Proxy settings set to No Proxy. Port set to 9000. With and without Stop at first line it doesn't work. I've somehow set the option on start of debugging to now open the page. Properties for project are: !image-2019-09-04-20-59-59-909.png|width=395,height=405! !image-2019-09-04-21-00-31-797.png|width=389,height=348! !image-2019-09-04-21-01-04-879.png|width=715,height=403! With or without mapping, does not work. > xdebug not working with NetBeans 11.1 > - > > Key: NETBEANS-2929 > URL: https://issues.apache.org/jira/browse/NETBEANS-2929 > Project: NetBeans > Issue Type: Bug >Affects Versions: 11.1 > Environment: Windows 10 64 bit >Reporter: Eduard Fekete >Priority: Major > Attachments: image-2019-09-04-20-51-37-754.png, > image-2019-09-04-20-59-59-909.png, image-2019-09-04-21-00-31-797.png, > image-2019-09-04-21-01-04-879.png, netbeans-2929-screenshot.png > > > I tried xdebug 2.7.2 with PHP 7.2.5 running on a remote linux openSUSE server. > It does not start the debugger and says "Waiting for debugger > (netbeans-xdebug)" but nothing happens. > If I try it in NetBeans 8.2 then it works. > > The configuration is the same in both NetBeans (Port, IDE key) > Java: jdk1.8.0_172, jre1.8.0_181 > > *Reproduction:* > # Install xdebug 2.7.2 from source by following instructions from here > [https://github.com/xdebug/xdebug] > # Set the following in php.ini > {code:java} > [XDebug] > zend_extension = /usr/lib64/php7/extensions/xdebug.so > xdebug.remote_connect_back=0 > xdebug.force_display_errors=on > xdebug.force_error_reporting=on > xdebug.remote_enable=on > xdebug.remote_handler=dbgp > xdebug.remote_host=192.168.40.161 #replace with IP of your remote client > where netbeans runs > xdebug.remote_port=51234 > xdebug.remote_timeout=3000 > xdebug.remote_mode=req > xdebug.remote_log=/var/log/xdebug/xdebug.log > xdebug.idekey = netbeans-xdebug > xdebug.renite_enable = 1 > xdebug.max_nesting_level = 1000 > xdebug.profiler_enable_trigger = 1 > xdebug.profiler_output_dir = '/var/log/xdebug'{code} > 3. Restart apache2 service > 4. Check if xdebug is installed by checking phpinfo > 5. open Netbeans 11.1 > 6. Go to Tools > Options -> PHP -> Debugging > 7. set "Debugger Port" to 51234 > 8. set "Session ID" to netbeans-xdebug > 9. open a test script > 10. right click -> Debug File > 11. Notice that "Wating for Connection (netbeans-xdebug)" shows forever and > nothing happens. > */var/log/xdebug/xdebug.log:* > {code:java} > [22426] Log opened at 2019-08-01 07:01:46 > [22426] I: Connecting to configured address/port: 192.168.40.161:51234. > [22426] E: Time-out connecting to client (Waited: 3000 ms). :-( > [22426] Log closed at 2019-08-01 07:01:49{code} > > 12. Do the same on Netbeans 8.2 and notice that it works -- This message was sent by Atlassian Jira (v8.3.2#803003) - 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-2929) xdebug not working with NetBeans 11.1
[ https://issues.apache.org/jira/browse/NETBEANS-2929?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lyubomir Parvanov updated NETBEANS-2929: Attachment: image-2019-09-04-21-01-04-879.png > xdebug not working with NetBeans 11.1 > - > > Key: NETBEANS-2929 > URL: https://issues.apache.org/jira/browse/NETBEANS-2929 > Project: NetBeans > Issue Type: Bug >Affects Versions: 11.1 > Environment: Windows 10 64 bit >Reporter: Eduard Fekete >Priority: Major > Attachments: image-2019-09-04-20-51-37-754.png, > image-2019-09-04-20-59-59-909.png, image-2019-09-04-21-00-31-797.png, > image-2019-09-04-21-01-04-879.png, netbeans-2929-screenshot.png > > > I tried xdebug 2.7.2 with PHP 7.2.5 running on a remote linux openSUSE server. > It does not start the debugger and says "Waiting for debugger > (netbeans-xdebug)" but nothing happens. > If I try it in NetBeans 8.2 then it works. > > The configuration is the same in both NetBeans (Port, IDE key) > Java: jdk1.8.0_172, jre1.8.0_181 > > *Reproduction:* > # Install xdebug 2.7.2 from source by following instructions from here > [https://github.com/xdebug/xdebug] > # Set the following in php.ini > {code:java} > [XDebug] > zend_extension = /usr/lib64/php7/extensions/xdebug.so > xdebug.remote_connect_back=0 > xdebug.force_display_errors=on > xdebug.force_error_reporting=on > xdebug.remote_enable=on > xdebug.remote_handler=dbgp > xdebug.remote_host=192.168.40.161 #replace with IP of your remote client > where netbeans runs > xdebug.remote_port=51234 > xdebug.remote_timeout=3000 > xdebug.remote_mode=req > xdebug.remote_log=/var/log/xdebug/xdebug.log > xdebug.idekey = netbeans-xdebug > xdebug.renite_enable = 1 > xdebug.max_nesting_level = 1000 > xdebug.profiler_enable_trigger = 1 > xdebug.profiler_output_dir = '/var/log/xdebug'{code} > 3. Restart apache2 service > 4. Check if xdebug is installed by checking phpinfo > 5. open Netbeans 11.1 > 6. Go to Tools > Options -> PHP -> Debugging > 7. set "Debugger Port" to 51234 > 8. set "Session ID" to netbeans-xdebug > 9. open a test script > 10. right click -> Debug File > 11. Notice that "Wating for Connection (netbeans-xdebug)" shows forever and > nothing happens. > */var/log/xdebug/xdebug.log:* > {code:java} > [22426] Log opened at 2019-08-01 07:01:46 > [22426] I: Connecting to configured address/port: 192.168.40.161:51234. > [22426] E: Time-out connecting to client (Waited: 3000 ms). :-( > [22426] Log closed at 2019-08-01 07:01:49{code} > > 12. Do the same on Netbeans 8.2 and notice that it works -- This message was sent by Atlassian Jira (v8.3.2#803003) - 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-2929) xdebug not working with NetBeans 11.1
[ https://issues.apache.org/jira/browse/NETBEANS-2929?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lyubomir Parvanov updated NETBEANS-2929: Attachment: image-2019-09-04-21-00-31-797.png > xdebug not working with NetBeans 11.1 > - > > Key: NETBEANS-2929 > URL: https://issues.apache.org/jira/browse/NETBEANS-2929 > Project: NetBeans > Issue Type: Bug >Affects Versions: 11.1 > Environment: Windows 10 64 bit >Reporter: Eduard Fekete >Priority: Major > Attachments: image-2019-09-04-20-51-37-754.png, > image-2019-09-04-20-59-59-909.png, image-2019-09-04-21-00-31-797.png, > netbeans-2929-screenshot.png > > > I tried xdebug 2.7.2 with PHP 7.2.5 running on a remote linux openSUSE server. > It does not start the debugger and says "Waiting for debugger > (netbeans-xdebug)" but nothing happens. > If I try it in NetBeans 8.2 then it works. > > The configuration is the same in both NetBeans (Port, IDE key) > Java: jdk1.8.0_172, jre1.8.0_181 > > *Reproduction:* > # Install xdebug 2.7.2 from source by following instructions from here > [https://github.com/xdebug/xdebug] > # Set the following in php.ini > {code:java} > [XDebug] > zend_extension = /usr/lib64/php7/extensions/xdebug.so > xdebug.remote_connect_back=0 > xdebug.force_display_errors=on > xdebug.force_error_reporting=on > xdebug.remote_enable=on > xdebug.remote_handler=dbgp > xdebug.remote_host=192.168.40.161 #replace with IP of your remote client > where netbeans runs > xdebug.remote_port=51234 > xdebug.remote_timeout=3000 > xdebug.remote_mode=req > xdebug.remote_log=/var/log/xdebug/xdebug.log > xdebug.idekey = netbeans-xdebug > xdebug.renite_enable = 1 > xdebug.max_nesting_level = 1000 > xdebug.profiler_enable_trigger = 1 > xdebug.profiler_output_dir = '/var/log/xdebug'{code} > 3. Restart apache2 service > 4. Check if xdebug is installed by checking phpinfo > 5. open Netbeans 11.1 > 6. Go to Tools > Options -> PHP -> Debugging > 7. set "Debugger Port" to 51234 > 8. set "Session ID" to netbeans-xdebug > 9. open a test script > 10. right click -> Debug File > 11. Notice that "Wating for Connection (netbeans-xdebug)" shows forever and > nothing happens. > */var/log/xdebug/xdebug.log:* > {code:java} > [22426] Log opened at 2019-08-01 07:01:46 > [22426] I: Connecting to configured address/port: 192.168.40.161:51234. > [22426] E: Time-out connecting to client (Waited: 3000 ms). :-( > [22426] Log closed at 2019-08-01 07:01:49{code} > > 12. Do the same on Netbeans 8.2 and notice that it works -- This message was sent by Atlassian Jira (v8.3.2#803003) - 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-2929) xdebug not working with NetBeans 11.1
[ https://issues.apache.org/jira/browse/NETBEANS-2929?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lyubomir Parvanov updated NETBEANS-2929: Attachment: image-2019-09-04-20-59-59-909.png > xdebug not working with NetBeans 11.1 > - > > Key: NETBEANS-2929 > URL: https://issues.apache.org/jira/browse/NETBEANS-2929 > Project: NetBeans > Issue Type: Bug >Affects Versions: 11.1 > Environment: Windows 10 64 bit >Reporter: Eduard Fekete >Priority: Major > Attachments: image-2019-09-04-20-51-37-754.png, > image-2019-09-04-20-59-59-909.png, netbeans-2929-screenshot.png > > > I tried xdebug 2.7.2 with PHP 7.2.5 running on a remote linux openSUSE server. > It does not start the debugger and says "Waiting for debugger > (netbeans-xdebug)" but nothing happens. > If I try it in NetBeans 8.2 then it works. > > The configuration is the same in both NetBeans (Port, IDE key) > Java: jdk1.8.0_172, jre1.8.0_181 > > *Reproduction:* > # Install xdebug 2.7.2 from source by following instructions from here > [https://github.com/xdebug/xdebug] > # Set the following in php.ini > {code:java} > [XDebug] > zend_extension = /usr/lib64/php7/extensions/xdebug.so > xdebug.remote_connect_back=0 > xdebug.force_display_errors=on > xdebug.force_error_reporting=on > xdebug.remote_enable=on > xdebug.remote_handler=dbgp > xdebug.remote_host=192.168.40.161 #replace with IP of your remote client > where netbeans runs > xdebug.remote_port=51234 > xdebug.remote_timeout=3000 > xdebug.remote_mode=req > xdebug.remote_log=/var/log/xdebug/xdebug.log > xdebug.idekey = netbeans-xdebug > xdebug.renite_enable = 1 > xdebug.max_nesting_level = 1000 > xdebug.profiler_enable_trigger = 1 > xdebug.profiler_output_dir = '/var/log/xdebug'{code} > 3. Restart apache2 service > 4. Check if xdebug is installed by checking phpinfo > 5. open Netbeans 11.1 > 6. Go to Tools > Options -> PHP -> Debugging > 7. set "Debugger Port" to 51234 > 8. set "Session ID" to netbeans-xdebug > 9. open a test script > 10. right click -> Debug File > 11. Notice that "Wating for Connection (netbeans-xdebug)" shows forever and > nothing happens. > */var/log/xdebug/xdebug.log:* > {code:java} > [22426] Log opened at 2019-08-01 07:01:46 > [22426] I: Connecting to configured address/port: 192.168.40.161:51234. > [22426] E: Time-out connecting to client (Waited: 3000 ms). :-( > [22426] Log closed at 2019-08-01 07:01:49{code} > > 12. Do the same on Netbeans 8.2 and notice that it works -- This message was sent by Atlassian Jira (v8.3.2#803003) - 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-2929) xdebug not working with NetBeans 11.1
[ https://issues.apache.org/jira/browse/NETBEANS-2929?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lyubomir Parvanov updated NETBEANS-2929: Attachment: image-2019-09-04-20-51-37-754.png > xdebug not working with NetBeans 11.1 > - > > Key: NETBEANS-2929 > URL: https://issues.apache.org/jira/browse/NETBEANS-2929 > Project: NetBeans > Issue Type: Bug >Affects Versions: 11.1 > Environment: Windows 10 64 bit >Reporter: Eduard Fekete >Priority: Major > Attachments: image-2019-09-04-20-51-37-754.png, > netbeans-2929-screenshot.png > > > I tried xdebug 2.7.2 with PHP 7.2.5 running on a remote linux openSUSE server. > It does not start the debugger and says "Waiting for debugger > (netbeans-xdebug)" but nothing happens. > If I try it in NetBeans 8.2 then it works. > > The configuration is the same in both NetBeans (Port, IDE key) > Java: jdk1.8.0_172, jre1.8.0_181 > > *Reproduction:* > # Install xdebug 2.7.2 from source by following instructions from here > [https://github.com/xdebug/xdebug] > # Set the following in php.ini > {code:java} > [XDebug] > zend_extension = /usr/lib64/php7/extensions/xdebug.so > xdebug.remote_connect_back=0 > xdebug.force_display_errors=on > xdebug.force_error_reporting=on > xdebug.remote_enable=on > xdebug.remote_handler=dbgp > xdebug.remote_host=192.168.40.161 #replace with IP of your remote client > where netbeans runs > xdebug.remote_port=51234 > xdebug.remote_timeout=3000 > xdebug.remote_mode=req > xdebug.remote_log=/var/log/xdebug/xdebug.log > xdebug.idekey = netbeans-xdebug > xdebug.renite_enable = 1 > xdebug.max_nesting_level = 1000 > xdebug.profiler_enable_trigger = 1 > xdebug.profiler_output_dir = '/var/log/xdebug'{code} > 3. Restart apache2 service > 4. Check if xdebug is installed by checking phpinfo > 5. open Netbeans 11.1 > 6. Go to Tools > Options -> PHP -> Debugging > 7. set "Debugger Port" to 51234 > 8. set "Session ID" to netbeans-xdebug > 9. open a test script > 10. right click -> Debug File > 11. Notice that "Wating for Connection (netbeans-xdebug)" shows forever and > nothing happens. > */var/log/xdebug/xdebug.log:* > {code:java} > [22426] Log opened at 2019-08-01 07:01:46 > [22426] I: Connecting to configured address/port: 192.168.40.161:51234. > [22426] E: Time-out connecting to client (Waited: 3000 ms). :-( > [22426] Log closed at 2019-08-01 07:01:49{code} > > 12. Do the same on Netbeans 8.2 and notice that it works -- This message was sent by Atlassian Jira (v8.3.2#803003) - 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-2415) Bring back support for WildFly server
[ https://issues.apache.org/jira/browse/NETBEANS-2415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16922621#comment-16922621 ] Geertjan Wielenga commented on NETBEANS-2415: - Read the above, download the NBM and install it into 11.1: https://www.dropbox.com/s/w4pe1btxxxd2fkv/org-netbeans-modules-javaee-wildfly.nbm?dl=0 > Bring back support for WildFly server > - > > Key: NETBEANS-2415 > URL: https://issues.apache.org/jira/browse/NETBEANS-2415 > Project: NetBeans > Issue Type: Wish > Components: serverplugins - WildFly >Affects Versions: 11.0 > Environment: n.a. >Reporter: Dominik Derwiński >Assignee: Emmanuel Hugonnet >Priority: Minor > > NetBeans 8.2 had WildFly server module, which helped greatly in debugging > Java EE applications directly from IDE. NetBeans 11.0 does not contain this > module, despite boasting to be the first version of Apache NetBeans to offer > full support for developing Java EE applications. > I don't think it would be very hard to bring back WildFly server module > (currently it does not complile), because copying files of the module from > NetBeans 8.2 into NetBeans 11.0 installation, and recreating userdir is > enough to bring back that functionality (so the old module still works, but > for how long?). > The files I have copied (after removing references to localization files) are: > * enterprise/config/Modules/org-netbeans-modules-javaee-wildfly.xml > * enterprise/modules/org-netbeans-modules-javaee-wildfly.jar > * enterprise/update_tracking/org-netbeans-modules-javaee-wildfly.xml > -- This message was sent by Atlassian Jira (v8.3.2#803003) - 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-2415) Bring back support for WildFly server
[ https://issues.apache.org/jira/browse/NETBEANS-2415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16922617#comment-16922617 ] Tom Eicher commented on NETBEANS-2415: -- so how do we get this to work for everybody ? (I'm working in NB 8.2 right now. it's a long time...) > Bring back support for WildFly server > - > > Key: NETBEANS-2415 > URL: https://issues.apache.org/jira/browse/NETBEANS-2415 > Project: NetBeans > Issue Type: Wish > Components: serverplugins - WildFly >Affects Versions: 11.0 > Environment: n.a. >Reporter: Dominik Derwiński >Assignee: Emmanuel Hugonnet >Priority: Minor > > NetBeans 8.2 had WildFly server module, which helped greatly in debugging > Java EE applications directly from IDE. NetBeans 11.0 does not contain this > module, despite boasting to be the first version of Apache NetBeans to offer > full support for developing Java EE applications. > I don't think it would be very hard to bring back WildFly server module > (currently it does not complile), because copying files of the module from > NetBeans 8.2 into NetBeans 11.0 installation, and recreating userdir is > enough to bring back that functionality (so the old module still works, but > for how long?). > The files I have copied (after removing references to localization files) are: > * enterprise/config/Modules/org-netbeans-modules-javaee-wildfly.xml > * enterprise/modules/org-netbeans-modules-javaee-wildfly.jar > * enterprise/update_tracking/org-netbeans-modules-javaee-wildfly.xml > -- This message was sent by Atlassian Jira (v8.3.2#803003) - 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: Docker support: add inspect & process list actions (#1257)
This is an automated email from the ASF dual-hosted git repository. geertjan pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/master by this push: new 7881913 Docker support: add inspect & process list actions (#1257) 7881913 is described below commit 7881913517664c169733faee9bd73d027e38cf92 Author: Ihsahn AuthorDate: Wed Sep 4 16:22:27 2019 +0200 Docker support: add inspect & process list actions (#1257) --- .../netbeans/modules/docker/api/DockerAction.java | 16 ++- .../modules/docker/api/DockerContainer.java| 8 +- .../modules/docker/api/DockerEntityType.java | 37 +++ .../netbeans/modules/docker/api/DockerImage.java | 8 +- .../modules/docker/api/DockerInstanceEntity.java | 30 + .../org/netbeans/modules/docker/api/DockerTag.java | 14 ++- .../modules/docker/ui/JsonFormattingWriter.java| 72 .../docker/ui/node/DockerContainerNode.java| 2 + .../modules/docker/ui/node/DockerTagNode.java | 1 + .../docker/ui/node/InspectContainerAction.java | 122 + .../modules/docker/ui/node/ProcessListAction.java | 81 ++ 11 files changed, 385 insertions(+), 6 deletions(-) diff --git a/ide/docker.api/src/org/netbeans/modules/docker/api/DockerAction.java b/ide/docker.api/src/org/netbeans/modules/docker/api/DockerAction.java index a5f779f..f7f340d 100644 --- a/ide/docker.api/src/org/netbeans/modules/docker/api/DockerAction.java +++ b/ide/docker.api/src/org/netbeans/modules/docker/api/DockerAction.java @@ -78,6 +78,7 @@ import org.netbeans.modules.docker.DockerConfig; import org.netbeans.modules.docker.DockerUtils; import org.netbeans.modules.docker.Endpoint; import org.netbeans.modules.docker.StreamResult; +import static org.netbeans.modules.docker.api.DockerEntityType.Container; import org.newsclub.net.unix.AFUNIXSocket; import org.newsclub.net.unix.AFUNIXSocketAddress; import org.openide.filesystems.FileObject; @@ -307,9 +308,14 @@ public class DockerAction { return new DockerTag(source.getImage(), tagResult); } -public DockerContainerDetail getDetail(DockerContainer container) throws DockerException { -JSONObject value = (JSONObject) doGetRequest("/containers/" + container.getId() + "/json", +public JSONObject getRawDetails(DockerEntityType entityType, String containerId) throws DockerException { +JSONObject value = (JSONObject) doGetRequest(entityType.getUrlPath() + containerId + "/json", Collections.singleton(HttpURLConnection.HTTP_OK)); +return value; +} + +public DockerContainerDetail getDetail(DockerContainer container) throws DockerException { +JSONObject value = getRawDetails(DockerEntityType.Container, container.getId()); String name = (String) value.get("Name"); DockerContainer.Status status = DockerContainer.Status.STOPPED; JSONObject state = (JSONObject) value.get("State"); @@ -1378,6 +1384,12 @@ public class DockerAction { return id; } +public JSONObject getRunningProcessesList(DockerContainer container) throws DockerException { +JSONObject value = (JSONObject) doGetRequest(Container.getUrlPath() + container.getId() + "/top", +Collections.singleton(HttpURLConnection.HTTP_OK)); +return value; +} + private static class DirectFetcher implements StreamItem.Fetcher { private final InputStream is; diff --git a/ide/docker.api/src/org/netbeans/modules/docker/api/DockerContainer.java b/ide/docker.api/src/org/netbeans/modules/docker/api/DockerContainer.java index e8205e2..99c9aa8 100644 --- a/ide/docker.api/src/org/netbeans/modules/docker/api/DockerContainer.java +++ b/ide/docker.api/src/org/netbeans/modules/docker/api/DockerContainer.java @@ -24,7 +24,12 @@ import java.util.Objects; * * @author Petr Hejl */ -public final class DockerContainer implements DockerEntity { +public final class DockerContainer implements DockerInstanceEntity { + +@Override +public DockerEntityType getType() { +return DockerEntityType.Container; +} public enum Status { RUNNING, @@ -50,6 +55,7 @@ public final class DockerContainer implements DockerEntity { this.status = status; } +@Override public DockerInstance getInstance() { return instance; } diff --git a/ide/docker.api/src/org/netbeans/modules/docker/api/DockerEntityType.java b/ide/docker.api/src/org/netbeans/modules/docker/api/DockerEntityType.java new file mode 100644 index 000..643022f --- /dev/null +++ b/ide/docker.api/src/org/netbeans/modules/docker/api/DockerEntityType.java @@ -0,0 +1,37 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information
[netbeans] branch master updated: [NETBEANS-2775] Fix duplicate server entries by filtering using PlatformFactory (#1412)
This is an automated email from the ASF dual-hosted git repository. geertjan pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/master by this push: new 824b4a7 [NETBEANS-2775] Fix duplicate server entries by filtering using PlatformFactory (#1412) 824b4a7 is described below commit 824b4a7e85f2ed4f6b5077404f65b1aaf9af1328 Author: Gaurav Gupta AuthorDate: Wed Sep 4 15:11:01 2019 +0100 [NETBEANS-2775] Fix duplicate server entries by filtering using PlatformFactory (#1412) * Revert "NETBEANS-2775 New Java Web Application Project Duplicate Servers" This reverts commit 6d9766051a7c3359db060e8e41b6e582d4f7b6e0. * NP-47/NETBEANS-2775 Fix duplicate server entries by filtering PlatformFactory * NETBEANS-2775 Add missing bundle properties * NP-48 Fix ergonomics failure for Payara Micro module --- .../amazon/AmazonServerInstanceImplementation.java | 9 +- .../AmazonJ2EEServerInstanceImplementation.java| 6 +- enterprise/j2eeserver/nbproject/project.properties | 2 +- .../deployment/devmodules/api/ServerManager.java | 10 +- .../impl/bridge/BridgingServerInstance.java| 5 - .../impl/ui/wizard/AddServerInstanceWizard.java| 305 + .../deployment/impl/ui/wizard/Bundle.properties| 51 +++ .../impl/ui/wizard/ServerChooserPanel.java | 97 ++ .../impl/ui/wizard/ServerChooserVisual.form| 152 + .../impl/ui/wizard/ServerChooserVisual.java| 380 + .../project/api/ant/ui/wizard/Bundle.properties| 4 + enterprise/payara.eecommon/nbproject/project.xml | 9 + enterprise/payara.micro/nbproject/project.xml | 4 +- ide/server/nbproject/project.xml | 2 - .../org/netbeans/api/server/ServerInstance.java| 13 - .../server/ui/wizard/AddServerInstanceWizard.java | 24 +- .../spi/server/ServerInstanceImplementation.java | 11 - .../server/test/MockInstanceImplementation.java| 6 - 18 files changed, 1014 insertions(+), 76 deletions(-) diff --git a/enterprise/cloud.amazon/src/org/netbeans/modules/cloud/amazon/AmazonServerInstanceImplementation.java b/enterprise/cloud.amazon/src/org/netbeans/modules/cloud/amazon/AmazonServerInstanceImplementation.java index 764ba87..ea13a36 100644 --- a/enterprise/cloud.amazon/src/org/netbeans/modules/cloud/amazon/AmazonServerInstanceImplementation.java +++ b/enterprise/cloud.amazon/src/org/netbeans/modules/cloud/amazon/AmazonServerInstanceImplementation.java @@ -19,6 +19,8 @@ package org.netbeans.modules.cloud.amazon; import javax.swing.JComponent; +import javax.swing.event.ChangeEvent; +import javax.swing.event.ChangeListener; import org.netbeans.modules.cloud.amazon.ui.AmazonInstanceNode; import org.netbeans.modules.cloud.amazon.ui.AmazonWizardComponent; import org.netbeans.spi.server.ServerInstanceImplementation; @@ -70,10 +72,5 @@ public class AmazonServerInstanceImplementation implements ServerInstanceImpleme public boolean isRemovable() { return true; } - -@Override -public String getProperty(String key) { -return ai.getServerInstance().getProperty(key); -} - + } diff --git a/enterprise/cloud.amazon/src/org/netbeans/modules/cloud/amazon/serverplugin/AmazonJ2EEServerInstanceImplementation.java b/enterprise/cloud.amazon/src/org/netbeans/modules/cloud/amazon/serverplugin/AmazonJ2EEServerInstanceImplementation.java index bebd19d..b8e1e06 100644 --- a/enterprise/cloud.amazon/src/org/netbeans/modules/cloud/amazon/serverplugin/AmazonJ2EEServerInstanceImplementation.java +++ b/enterprise/cloud.amazon/src/org/netbeans/modules/cloud/amazon/serverplugin/AmazonJ2EEServerInstanceImplementation.java @@ -19,6 +19,7 @@ package org.netbeans.modules.cloud.amazon.serverplugin; import javax.swing.JComponent; +import javax.swing.JLabel; import org.netbeans.modules.cloud.amazon.ui.AmazonJ2EEInstanceNode; import org.netbeans.modules.cloud.amazon.ui.serverplugin.AmazonJ2EEServerWizardComponent; import org.netbeans.spi.server.ServerInstanceImplementation; @@ -71,9 +72,4 @@ public class AmazonJ2EEServerInstanceImplementation implements ServerInstanceImp return false; } -@Override -public String getProperty(String key) { -return aij.getInstance().getProperty(key); -} - } diff --git a/enterprise/j2eeserver/nbproject/project.properties b/enterprise/j2eeserver/nbproject/project.properties index be5775e..1317470 100644 --- a/enterprise/j2eeserver/nbproject/project.properties +++ b/enterprise/j2eeserver/nbproject/project.properties @@ -16,7 +16,7 @@ # under the License. is.autoload=true -javac.source=1.6 +javac.source=1.8 spec.version.base=1.117.0 javadoc.arch=${basedir}/arch.xml diff --git a/enterprise/j2eeserver/src/org/netbeans/modules/j2ee/deployment/devmodules/api/ServerManager.java
[netbeans] branch master updated: NP-50 Upgrade Payara Micro Maven plugin to 1.0.6 and custom contextRoot support (#1471)
This is an automated email from the ASF dual-hosted git repository. geertjan pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/master by this push: new bb672ba NP-50 Upgrade Payara Micro Maven plugin to 1.0.6 and custom contextRoot support (#1471) bb672ba is described below commit bb672ba4119e17f11bbfc57fc940a0e1bbc47efc Author: Gaurav Gupta AuthorDate: Wed Sep 4 14:15:39 2019 +0100 NP-50 Upgrade Payara Micro Maven plugin to 1.0.6 and custom contextRoot support (#1471) Signed-off-by: Gaurav Gupta --- .../fish/payara/micro/plugin/Constants.java| 1 + .../micro/plugin/MicroPluginWizardDescriptor.java | 11 --- .../fish/payara/micro/plugin/resources/pom.xml.ftl | 2 +- .../fish/payara/micro/project/ui/Bundle.properties | 5 ++- .../project/ui/MicroProjectWizardIterator.java | 5 ++- .../payara/micro/project/ui/PayaraMicroPanel.form | 36 ++ .../payara/micro/project/ui/PayaraMicroPanel.java | 34 7 files changed, 74 insertions(+), 20 deletions(-) diff --git a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/plugin/Constants.java b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/plugin/Constants.java index 07edf9e..11d818f 100644 --- a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/plugin/Constants.java +++ b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/plugin/Constants.java @@ -39,6 +39,7 @@ public interface Constants { String PROP_JAVA_EE_VERSION = "javaeeVersion"; String PROP_PAYARA_MICRO_VERSION = "payaraMicroVersion"; String PROP_AUTO_BIND_HTTP = "autoBindHttp"; +String PROP_CONTEXT_ROOT = "contextRoot"; String VERSION = "version"; diff --git a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/plugin/MicroPluginWizardDescriptor.java b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/plugin/MicroPluginWizardDescriptor.java index ef905f6..52b2082 100644 --- a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/plugin/MicroPluginWizardDescriptor.java +++ b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/plugin/MicroPluginWizardDescriptor.java @@ -31,8 +31,6 @@ import java.util.NoSuchElementException; import java.util.Set; import javax.swing.event.ChangeListener; import org.netbeans.api.project.Project; -import org.netbeans.api.project.ProjectManager; -import org.netbeans.api.project.ui.OpenProjects; import org.netbeans.api.templates.TemplateRegistration; import static org.netbeans.modules.fish.payara.micro.plugin.Constants.POM_TEMPLATE; import static org.netbeans.modules.fish.payara.micro.plugin.Constants.PROJECT_ICON; @@ -49,6 +47,7 @@ import org.netbeans.modules.maven.model.pom.POMExtensibilityElement; import org.netbeans.spi.project.ui.templates.support.Templates; import org.openide.WizardDescriptor; import org.openide.util.NbBundle; +import static org.netbeans.modules.fish.payara.micro.plugin.Constants.PROP_CONTEXT_ROOT; @TemplateRegistration( folder = "PayaraResources", @@ -67,9 +66,10 @@ public final class MicroPluginWizardDescriptor implements WizardDescriptor.Insta private List> panels; -public static void updateMicroMavenPlugin(Project project, String payaraMicroVersion, String autoBindHttp) throws IOException { +public static void updateMicroMavenPlugin(Project project, String payaraMicroVersion, String autoBindHttp, String contextRoot) throws IOException { Map params = new HashMap<>(); params.put("autoBindHttp", autoBindHttp); +params.put("contextRoot", contextRoot); params.put("payaraMicroVersion", payaraMicroVersion); try (Reader sourceReader = new InputStreamReader(loadResource(POM_TEMPLATE))) { @@ -114,8 +114,9 @@ public final class MicroPluginWizardDescriptor implements WizardDescriptor.Insta public Set instantiate() throws IOException { String payaraMicroVersion = (String) descriptor.getProperty(PROP_PAYARA_MICRO_VERSION); String autoBindHttp = (String) descriptor.getProperty(PROP_AUTO_BIND_HTTP); - -updateMicroMavenPlugin(project, payaraMicroVersion, autoBindHttp); +String contextRoot = (String) descriptor.getProperty(PROP_CONTEXT_ROOT); + +updateMicroMavenPlugin(project, payaraMicroVersion, autoBindHttp, contextRoot); MicroApplication.registerInstance(project); new MicroProjectHook(project).projectOpened(); NbMavenProject.fireMavenProjectReload(project); diff --git a/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/plugin/resources/pom.xml.ftl b/enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/plugin/resources/pom.xml.ftl index 1173b02..88ab306 100644 ---
[jira] [Created] (NETBEANS-3059) Import classes dialog never finishes execution after clicking OK
Mathieu Moloney created NETBEANS-3059: - Summary: Import classes dialog never finishes execution after clicking OK Key: NETBEANS-3059 URL: https://issues.apache.org/jira/browse/NETBEANS-3059 Project: NetBeans Issue Type: Bug Affects Versions: 11.1 Environment: Windows 10 64bit Reporter: Mathieu Moloney Attachments: Import classes.png When pasting code from one file into another file, netbeans offers to create the import declarations for the required classes. See screenshot attached. When we click the OK button, the button is greyed but nothing happens. We need to click cancel to get out of the dialog and then use "Organise Imports" shortcut -- This message was sent by Atlassian Jira (v8.3.2#803003) - 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: Adding hint for missing /ref in @compile jtreg tags. (#1360)
This is an automated email from the ASF dual-hosted git repository. geertjan pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/master by this push: new 597cca0 Adding hint for missing /ref in @compile jtreg tags. (#1360) 597cca0 is described below commit 597cca026744e32e5a34eb1ffc607cf795728886 Author: Jan Lahoda AuthorDate: Wed Sep 4 13:34:12 2019 +0200 Adding hint for missing /ref in @compile jtreg tags. (#1360) --- .../java/openjdk/jtreg/MissingRefOutputHint.java | 135 + .../modules/java/openjdk/jtreg/TagParser.java | 4 +- .../openjdk/jtreg/MissingRefOutputHintTest.java| 95 +++ 3 files changed, 232 insertions(+), 2 deletions(-) diff --git a/java/java.openjdk.project/src/org/netbeans/modules/java/openjdk/jtreg/MissingRefOutputHint.java b/java/java.openjdk.project/src/org/netbeans/modules/java/openjdk/jtreg/MissingRefOutputHint.java new file mode 100644 index 000..9012fde --- /dev/null +++ b/java/java.openjdk.project/src/org/netbeans/modules/java/openjdk/jtreg/MissingRefOutputHint.java @@ -0,0 +1,135 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + package org.netbeans.modules.java.openjdk.jtreg; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.Comparator; +import java.util.List; + +import com.sun.source.tree.Tree.Kind; +import com.sun.source.util.TreePath; +import java.io.IOException; +import org.netbeans.api.java.source.CompilationInfo; +import org.netbeans.modules.java.openjdk.jtreg.TagParser.Result; +import org.netbeans.spi.editor.hints.ErrorDescription; +import org.netbeans.spi.java.hints.ErrorDescriptionFactory; +import org.netbeans.spi.java.hints.Hint; +import org.netbeans.spi.java.hints.Hint.Options; +import org.netbeans.spi.java.hints.HintContext; +import org.netbeans.spi.java.hints.JavaFix; +import org.netbeans.spi.java.hints.TriggerTreeKind; +import org.openide.util.NbBundle.Messages; + +@Hint(displayName = "#DN_MissingRefOutputHint", description = "#DESC_MissingRefOutputHint", category = "general", options=Options.NO_BATCH) +@Messages({ +"DN_MissingRefOutputHint=Missing Reference Output", +"DESC_MissingRefOutputHint=Checks for missing reference output in jtreg @compile tags." +}) +public class MissingRefOutputHint { + +@TriggerTreeKind(Kind.COMPILATION_UNIT) +@Messages({ +"ERR_NoRef=Reference output missing", +"ERR_RefFileMissing=Reference output file is missing", +}) +public static List computeWarning(HintContext ctx) { +Result tags = TagParser.parseTags(ctx.getInfo()); +List result = new ArrayList<>(); +for (Tag tag : tags.getTags()) { +if (!"compile".equals(tag.getName())) { +continue; +} +if (tag.getValue().startsWith("/")) { +String firstParam = tag.getValue().split("[\\s]+", 2)[0]; +boolean hasFail = false; +boolean hasRef = false; +int pos = tag.getTagEnd(); +for (String opt : firstParam.split("/")) { +if ("fail".equals(opt)) { +hasFail = true; +} else if (opt.startsWith("ref=")) { +hasRef = true; +String fileName = opt.substring(4); +if (ctx.getInfo().getFileObject().getParent().getFileObject(fileName) == null) { +ErrorDescription idealED = ErrorDescriptionFactory.forName(ctx, ctx.getPath(), Bundle.ERR_RefFileMissing(), new CreateRefFileFixImpl(ctx.getInfo(), ctx.getPath(), fileName).toEditorFix()); + + result.add(org.netbeans.spi.editor.hints.ErrorDescriptionFactory.createErrorDescription(idealED.getSeverity(), idealED.getDescription(), idealED.getFixes(), ctx.getInfo().getFileObject(), pos + 4, pos + fileName.length() + 4)); +} +} +pos += opt.length() + 1; +} +if (hasFail && !hasRef) { +ErrorDescription idealED =
[netbeans] branch master updated: [NETBEANS-1861] Recognize @method static for documenting static methods
This is an automated email from the ASF dual-hosted git repository. tmysik pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/master by this push: new fbeb749 [NETBEANS-1861] Recognize @method static for documenting static methods new 2b03727 Merge pull request #1466 from junichi11/netbeans-1861-static-magic-method fbeb749 is described below commit fbeb74908a0946562f7b7db5152eefbf773f88d1 Author: Junichi Yamamoto AuthorDate: Tue Aug 20 12:49:48 2019 +0900 [NETBEANS-1861] Recognize @method static for documenting static methods Example: ``` /** * Example class. * * @method testVoid(Test $test) test comment * @method int testType(Test $test) test comment * @method static staticTestVoid(Test $test) test comment * @method static int staticTestType(Test $param1, $param2) test comment * @method static ?int staticTestNullable(?string $param, int $param2) test comment * @method static ?Example getDefault() Description */ class Example { public function test() { self::staticTestVoid($test); self::staticTestType($param1, $param2); self::staticTestNullable($param1, $param2); self::getDefault(); } } ``` - Fix DeclarationFinderImpl and PHPDocCommentParser - Fix MarkOccurences and GoToDeclaration features - Add unit tests for CC, MarkOccurences, GoToDeclaration, Navigator, CommentExtractor, ASTPHP5Parser, and PHPDocCommentParser --- php/php.editor/nbproject/project.properties| 2 +- .../php/editor/csl/DeclarationFinderImpl.java | 32 +-- .../php/editor/model/impl/OccurenceBuilder.java| 8 +- .../php/editor/model/nodes/ASTNodeInfoUtils.java | 40 + .../model/nodes/MagicMethodDeclarationInfo.java| 17 +++- .../php/editor/parser/PHPDocCommentParser.java | 18 +++- .../editor/parser/astnodes/PHPDocMethodTag.java| 31 +++ .../csl/NavigatorTest/structure/magicMethods.pass | 9 ++ .../ASTPHP5ParserTest/parser/magicMethod01.pass| 4 +- .../ASTPHP5ParserTest/parser/magicMethod02.pass| 4 +- .../ASTPHP5ParserTest/parser/magicMethod03.pass| 4 +- .../ASTPHP5ParserTest/parser/magicMethod04.pass| 4 +- .../ASTPHP5ParserTest/parser/magicMethod05.pass| 4 +- .../ASTPHP5ParserTest/parser/magicMethod06.pass| 4 +- .../ASTPHP5ParserTest/parser/magicMethod07.pass| 4 +- .../parser/magicMethodStatic01.pass| 66 ++ .../parser/magicMethodStatic02.pass| 66 ++ .../parser/magicMethodStatic03.pass| 66 ++ ...magicMethod04.pass => magicMethodStatic04.pass} | 50 +-- .../parser/magicMethodStatic05.pass| 82 + .../parser/magicMethodStatic06.pass| 84 + .../parser/magicMethodStatic07.pass| 100 + .../parser/PHPDocCommentParserTest/Method01.pass | 22 + .../parser/PHPDocCommentParserTest/Method02.pass | 21 + .../parser/PHPDocCommentParserTest/Method03.pass | 22 + .../PHPDocCommentParserTest/MethodStatic01.pass| 22 + .../PHPDocCommentParserTest/MethodStatic02.pass| 21 + .../PHPDocCommentParserTest/MethodStatic03.pass| 22 + .../testfiles/completion/lib/nb1861/nb1861_01.php | 42 + ...861_01.php.testMagicMethodStatic_01a.completion | 8 ++ ...861_01.php.testMagicMethodStatic_01b.completion | 8 ++ .../testfiles/completion/lib/nb1861/nb1861_02.php | 40 + ...861_02.php.testMagicMethodStatic_02a.completion | 8 ++ ...861_02.php.testMagicMethodStatic_02b.completion | 8 ++ .../gotodeclaration/testNb1861/testNb1861.php | 49 ++ .../markoccurences/testNb1861/testNb1861.php | 49 ++ .../data/testfiles/parser/magicMethodStatic01.php | 26 ++ .../data/testfiles/parser/magicMethodStatic02.php | 26 ++ .../data/testfiles/parser/magicMethodStatic03.php | 26 ++ .../data/testfiles/parser/magicMethodStatic04.php | 26 ++ .../data/testfiles/parser/magicMethodStatic05.php | 26 ++ .../data/testfiles/parser/magicMethodStatic06.php | 26 ++ .../data/testfiles/parser/magicMethodStatic07.php | 26 ++ .../unit/data/testfiles/structure/magicMethods.php | 40 + .../testNb1861.php.testNb1861_01a.occurrences | 3 + .../testNb1861.php.testNb1861_01b.occurrences | 3 + .../testNb1861.php.testNb1861_01c.occurrences | 3 + .../testNb1861.php.testNb1861_02a.occurrences | 3 + .../testNb1861.php.testNb1861_02b.occurrences | 3 + .../testNb1861.php.testNb1861_02c.occurrences | 3 + .../testNb1861.php.testNb1861_03a.occurrences | 3 + .../testNb1861.php.testNb1861_03b.occurrences | 3 +
[netbeans] branch master updated: NP-49 Payara Platform 5.193 support (#1470)
This is an automated email from the ASF dual-hosted git repository. geertjan pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/master by this push: new fa39268 NP-49 Payara Platform 5.193 support (#1470) fa39268 is described below commit fa3926882f0f1366ea5aacc23397fea72f7d0f36 Author: Gaurav Gupta AuthorDate: Wed Sep 4 12:29:54 2019 +0100 NP-49 Payara Platform 5.193 support (#1470) * NP-49 Upgrade Payara Server and Payara Micro to 5.193 as default version Signed-off-by: Gaurav Gupta * NP-49 Add Jakarta EE and MicroProfile libs to lirary Signed-off-by: Gaurav Gupta --- .../org-netbeans-modules-payara-common.sig | 1 + .../modules/payara/common/Bundle.properties| 1 + .../modules/payara/common/ServerDetails.java | 16 ++- .../wizards/AddServerLocationVisualPanel.form | 18 +-- .../wizards/AddServerLocationVisualPanel.java | 20 +-- .../modules/payara/spi/ServerUtilities.java| 39 +++--- .../modules/payara/jakartaee/Bundle.properties | 6 +- .../payara/jakartaee/Hk2LibraryProvider.java | 100 --- .../jakartaee/JavaEEServerModuleFactory.java | 137 +++-- .../payara/micro/project/VersionRepository.java| 1 + .../org-netbeans-modules-payara-tooling.sig| 3 +- .../modules/payara/tooling/admin/AdminFactory.java | 1 + .../modules/payara/tooling/data/PayaraVersion.java | 11 +- .../payara/tooling/server/config/PayaraV4.xml | 1 + .../payara/tooling/server/config/PayaraV5.xml | 1 + .../payara/tooling/server/config/PayaraV5_192.xml | 21 +++- 16 files changed, 211 insertions(+), 166 deletions(-) diff --git a/enterprise/payara.common/nbproject/org-netbeans-modules-payara-common.sig b/enterprise/payara.common/nbproject/org-netbeans-modules-payara-common.sig index e3eb0d6..f9e4015 100644 --- a/enterprise/payara.common/nbproject/org-netbeans-modules-payara-common.sig +++ b/enterprise/payara.common/nbproject/org-netbeans-modules-payara-common.sig @@ -1519,6 +1519,7 @@ fld public final static org.netbeans.modules.payara.common.ServerDetails PAYARA_ fld public final static org.netbeans.modules.payara.common.ServerDetails PAYARA_SERVER_5_184 fld public final static org.netbeans.modules.payara.common.ServerDetails PAYARA_SERVER_5_191 fld public final static org.netbeans.modules.payara.common.ServerDetails PAYARA_SERVER_5_192 +fld public final static org.netbeans.modules.payara.common.ServerDetails PAYARA_SERVER_5_193 meth public boolean isInstalledInDirectory(java.io.File) meth public int getVersion() meth public java.lang.String getDirectUrl() diff --git a/enterprise/payara.common/src/org/netbeans/modules/payara/common/Bundle.properties b/enterprise/payara.common/src/org/netbeans/modules/payara/common/Bundle.properties index cf6d569..a48096e 100644 --- a/enterprise/payara.common/src/org/netbeans/modules/payara/common/Bundle.properties +++ b/enterprise/payara.common/src/org/netbeans/modules/payara/common/Bundle.properties @@ -157,6 +157,7 @@ STR_5183_SERVER_NAME=Payara Server 5.183 STR_5184_SERVER_NAME=Payara Server 5.184 STR_5191_SERVER_NAME=Payara Server 5.191 STR_5192_SERVER_NAME=Payara Server 5.192 +STR_5193_SERVER_NAME=Payara Server 5.193 # CommonServerSupport.java MSG_FLAKEY_NETWORK=Network communication problemCould not establish \ diff --git a/enterprise/payara.common/src/org/netbeans/modules/payara/common/ServerDetails.java b/enterprise/payara.common/src/org/netbeans/modules/payara/common/ServerDetails.java index b36fbcf..04086e3 100644 --- a/enterprise/payara.common/src/org/netbeans/modules/payara/common/ServerDetails.java +++ b/enterprise/payara.common/src/org/netbeans/modules/payara/common/ServerDetails.java @@ -237,6 +237,16 @@ public enum ServerDetails { "https://oss.sonatype.org/service/local/repositories/releases/content/fish/payara/distributions/payara/5.192/payara-5.192.zip;, // NOI18N null, "https://raw.githubusercontent.com/payara/Payara/master/LICENSE.txt; +), +/** + * details for an instance of Payara Server 5.193 + */ +PAYARA_SERVER_5_193(NbBundle.getMessage(ServerDetails.class, "STR_5193_SERVER_NAME", new Object[]{}), // NOI18N +"deployer:pfv5ee8", // NOI18N +5193, + "https://oss.sonatype.org/service/local/repositories/releases/content/fish/payara/distributions/payara/5.193/payara-5.193.zip;, // NOI18N +null, + "https://raw.githubusercontent.com/payara/Payara/master/LICENSE.txt; ); /** @@ -250,6 +260,7 @@ public enum ServerDetails { return new ServerWizardIterator( //add new version new ServerDetails[]{ +PAYARA_SERVER_5_193, PAYARA_SERVER_5_192,
[netbeans] branch master updated: NETBEANS-3020 Cleanup Welcome screen (#1457)
This is an automated email from the ASF dual-hosted git repository. geertjan pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/master by this push: new ec35815 NETBEANS-3020 Cleanup Welcome screen (#1457) ec35815 is described below commit ec35815913e5bf8d034b5d7215a32ce50d578734 Author: Geertjan Wielenga AuthorDate: Wed Sep 4 13:27:51 2019 +0200 NETBEANS-3020 Cleanup Welcome screen (#1457) * NETBEANS-3020 Cleanup Welcome screen * NETBEANS-3020 Changing Take a Tour link to point to netbeans.apache.org * NETBEANS-3020 Changing All Documentation link to point to netbeans.apache.org * NETBEANS-3020 Changing learning trail links to netbeans.apache.org * NETBEANS-3020 Changing logo link to netbeans.apache.org * NETBEAS-3020 Decrease dependencies on external URLs by excluding the Featured Demo * NETBEANS-3020 Deleting URLs that are no longer used * NETBEANS-3020 Removing references to removed URLs * The main tutorial page is better than homepage. * NETBEANS-3020 Remove incubator logo bar * NETBEANS-3020 Removing ArticlesAndNews tab and its references * NETBEANS-3020 Removing DemoPanel tab and its references * NETBEANS-3020 Removing DemoPanel tab and its references * NETBEANS-3020 Removing DemoPanel tab and its references * NETBEANS-3020 Not pointing to docs page, which is not ready, but to homepage --- .../modules/welcome/resources/Bundle.properties| 18 +- .../netbeans/modules/welcome/resources/layer.xml | 16 - .../netbeans/modules/welcome/resources/tour.url| 2 +- .../modules/welcome/resources/tutorial1-1.url | 1 - .../modules/welcome/resources/tutorial1.url| 2 +- .../modules/welcome/resources/tutorial2.url| 1 - .../modules/welcome/resources/tutorial3.url| 1 - .../modules/welcome/resources/tutorial4.url| 2 +- .../modules/welcome/resources/tutorial5.url| 1 - .../modules/welcome/ui/ArticlesAndNews.java| 99 --- .../org/netbeans/modules/welcome/ui/BottomBar.java | 2 - .../org/netbeans/modules/welcome/ui/DemoPanel.java | 328 - .../modules/welcome/ui/LearnAndDiscoverTab.java| 3 - .../netbeans/modules/welcome/ui/WhatsNewTab.java | 3 - 14 files changed, 8 insertions(+), 471 deletions(-) diff --git a/nb/welcome/src/org/netbeans/modules/welcome/resources/Bundle.properties b/nb/welcome/src/org/netbeans/modules/welcome/resources/Bundle.properties index 415ea31..0049517 100644 --- a/nb/welcome/src/org/netbeans/modules/welcome/resources/Bundle.properties +++ b/nb/welcome/src/org/netbeans/modules/welcome/resources/Bundle.properties @@ -27,11 +27,7 @@ WelcomePage/GettingStartedLinks/tour.url=Take a Tour WelcomePage/GettingStartedLinks/sampleproject.instance=Try a Sample Project WelcomePage/TutorialsLinks/tutorial1.url=Java SE Applications -WelcomePage/TutorialsLinks/tutorial1-1.url=Java and JavaFX GUI Applications -WelcomePage/TutorialsLinks/tutorial2.url=Java EE & Java Web Applications -WelcomePage/TutorialsLinks/tutorial3.url=C/C++ Applications WelcomePage/TutorialsLinks/tutorial4.url=PHP and HTML5 Applications -WelcomePage/TutorialsLinks/tutorial5.url=Mobile and Embedded Applications LBL_MoreTutorials=More Demos and Tutorials >> @@ -48,10 +44,6 @@ LBL_Blogs=Blogs #NOI18N URL_Blogs=https://blogs.apache.org/netbeans/feed/entries/atom -LBL_ArticlesAndNews=News & Tutorials -#NOI18N -URL_ArticlesAndNews=http://www.netbeans.org/mtmo.xml - #NOI18N URL_News=http://www.netbeans.org/news.xml @@ -64,11 +56,11 @@ ACD_AllNews=Open the list of all news articles in the default web browser LBL_AllArticles=All Tutorials >> #NOI18N -URL_AllArticles=http://netbeans.org/kb/kb.html?utm_source=netbeans_campaign=welcomepage +URL_AllArticles=https://netbeans.apache.org/help/index.html ACN_AllArticles=Show all tutorials ACD_AllArticles=Open the list of all tutorials in the default web browser -LBL_AllBlogs=All Blogs >> +LBL_AllBlogs=All News >> #NOI18N URL_AllBlogs=https://blogs.apache.org/netbeans/ ACN_AllBlogs=Show all blogs @@ -76,7 +68,7 @@ ACD_AllBlogs=Open the list of all blogs in the default web browser LBL_AllOnlineDocs=All Online Documentation >> #NOI18N -URL_AllOnlineDocs=http://netbeans.org/kb?utm_source=netbeans_campaign=welcomepage +URL_AllOnlineDocs=https://netbeans.apache.org/help/index.html ACN_AllOnlineDocs=Show all online documentation ACD_AllOnlineDocs=Open the list of all documentation in the default web browser @@ -97,7 +89,7 @@ URL_IncubatorLogo=http://incubator.apache.org #NOI18N URL_ApacheLogo=http://www.apache.org #NOI18N -URL_NetBeansLogo=https://netbeans.apache.org?utm_source=netbeans_campaign=welcomepage +URL_NetBeansLogo=https://netbeans.apache.org/ LBL_ContentLoading=Content is loading...
[netbeans] branch master updated: [NETBEANS-97] Don't add braces around try/synchronized blocks when reformatting (#1392)
This is an automated email from the ASF dual-hosted git repository. geertjan pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/master by this push: new eb9f15d [NETBEANS-97] Don't add braces around try/synchronized blocks when reformatting (#1392) eb9f15d is described below commit eb9f15df149411f287988fde63da54a9b059095c Author: Mike Duigou AuthorDate: Wed Sep 4 04:12:18 2019 -0700 [NETBEANS-97] Don't add braces around try/synchronized blocks when reformatting (#1392) Extraneous braces will also be removed according to user preference --- .../org/netbeans/modules/java/hints/Braces.java| 99 .../modules/java/source/save/Reformatter.java | 128 +- .../modules/java/source/save/FormatingTest.java| 281 - 3 files changed, 336 insertions(+), 172 deletions(-) diff --git a/java/java.hints/src/org/netbeans/modules/java/hints/Braces.java b/java/java.hints/src/org/netbeans/modules/java/hints/Braces.java index 83da17a..553d9ad 100644 --- a/java/java.hints/src/org/netbeans/modules/java/hints/Braces.java +++ b/java/java.hints/src/org/netbeans/modules/java/hints/Braces.java @@ -54,19 +54,19 @@ import org.openide.util.NbBundle; public class Braces { static final EnumSet nonRelevant = EnumSet.of( -JavaTokenId.LINE_COMMENT, +JavaTokenId.LINE_COMMENT, JavaTokenId.BLOCK_COMMENT, JavaTokenId.JAVADOC_COMMENT, JavaTokenId.WHITESPACE ); - + private static final String BRACES_ID = "Braces_"; // NOI18N - + @Hint(displayName="#LBL_Braces_For", description="#DSC_Braces_For", category="braces", id=BRACES_ID + "FOR_LOOP", enabled=false, suppressWarnings={"", "ControlFlowStatementWithoutBraces"}) @TriggerTreeKind({Tree.Kind.FOR_LOOP, Tree.Kind.ENHANCED_FOR_LOOP}) public static ErrorDescription checkFor(HintContext ctx) { StatementTree st; - + switch (ctx.getPath().getLeaf().getKind()){ case FOR_LOOP: st = ((ForLoopTree) ctx.getPath().getLeaf()).getStatement(); break; case ENHANCED_FOR_LOOP: st = ((EnhancedForLoopTree) ctx.getPath().getLeaf()).getStatement(); break; @@ -75,34 +75,37 @@ public class Braces { } return checkStatement(ctx, "LBL_Braces_For", st, ctx.getPath()); } - + @Hint(displayName="#LBL_Braces_While", description="#DSC_Braces_While", category="braces", id=BRACES_ID + "WHILE_LOOP", enabled=false, suppressWarnings={"", "ControlFlowStatementWithoutBraces"}) @TriggerTreeKind(Tree.Kind.WHILE_LOOP) public static ErrorDescription checkWhile(HintContext ctx) { WhileLoopTree wlt = (WhileLoopTree) ctx.getPath().getLeaf(); return checkStatement(ctx, "LBL_Braces_While", wlt.getStatement(), ctx.getPath()); } - + @Hint(displayName="#LBL_Braces_DoWhile", description="#DSC_Braces_DoWhile", category="braces", id=BRACES_ID + "DO_WHILE_LOOP", enabled=false, suppressWarnings={"", "ControlFlowStatementWithoutBraces"}) @TriggerTreeKind(Tree.Kind.DO_WHILE_LOOP) public static ErrorDescription checkDoWhile(HintContext ctx) { DoWhileLoopTree dwlt = (DoWhileLoopTree) ctx.getPath().getLeaf(); return checkStatement(ctx, "LBL_Braces_DoWhile", dwlt.getStatement(), ctx.getPath()); } - + @Hint(displayName="#LBL_Braces_If", description="#DSC_Braces_If", category="braces", id=BRACES_ID + "IF", enabled=false, suppressWarnings={"", "ControlFlowStatementWithoutBraces"}) @TriggerTreeKind(Tree.Kind.IF) public static List checkIf(HintContext ctx) { IfTree it = (IfTree) ctx.getPath().getLeaf(); return checkifStatements(ctx, "LBL_Braces_If", it.getThenStatement(), it.getElseStatement(), ctx.getPath()); } - + // Private methods - - + private static ErrorDescription checkStatement(HintContext ctx, String dnKey, StatementTree statement, TreePath tp) { -if ( statement != null && - statement.getKind() != Tree.Kind.EMPTY_STATEMENT && +if ( statement != null && + statement.getKind() != Tree.Kind.EMPTY_STATEMENT && statement.getKind() != Tree.Kind.BLOCK && + statement.getKind() != Tree.Kind.TRY && + statement.getKind() != Tree.Kind.SYNCHRONIZED && + statement.getKind() != Tree.Kind.SWITCH && statement.getKind() != Tree.Kind.ERRONEOUS && !isErroneousExpression( statement )) { return ErrorDescriptionFactory.forTree( @@ -110,37 +113,43 @@ public class Braces { statement, NbBundle.getMessage(Braces.class, dnKey), new BracesFix(ctx.getInfo().getFileObject(), TreePathHandle.create(tp,
[netbeans] branch master updated: change javac to 1.8 in libs.nbi.ant to allow RCP installers to be built with JDK 11 (#1414)
This is an automated email from the ASF dual-hosted git repository. geertjan pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git The following commit(s) were added to refs/heads/master by this push: new f2c13cc change javac to 1.8 in libs.nbi.ant to allow RCP installers to be built with JDK 11 (#1414) f2c13cc is described below commit f2c13cce937247bb3554c95743141c70215e3aa3 Author: oyarzun AuthorDate: Wed Sep 4 07:10:31 2019 -0400 change javac to 1.8 in libs.nbi.ant to allow RCP installers to be built with JDK 11 (#1414) --- .../ext/components/products/helloworld/nbproject/project.properties | 4 ++-- harness/libs.nbi.ant/stub/ext/engine/nbproject/project.properties | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/harness/libs.nbi.ant/stub/ext/components/products/helloworld/nbproject/project.properties b/harness/libs.nbi.ant/stub/ext/components/products/helloworld/nbproject/project.properties index c98638f..d9e5b60 100644 --- a/harness/libs.nbi.ant/stub/ext/components/products/helloworld/nbproject/project.properties +++ b/harness/libs.nbi.ant/stub/ext/components/products/helloworld/nbproject/project.properties @@ -42,8 +42,8 @@ javac.classpath=\ # Space-separated list of extra javac options javac.compilerargs= javac.deprecation=false -javac.source=1.5 -javac.target=1.5 +javac.source=1.8 +javac.target=1.8 javac.test.classpath=\ ${javac.classpath}:\ ${build.classes.dir}:\ diff --git a/harness/libs.nbi.ant/stub/ext/engine/nbproject/project.properties b/harness/libs.nbi.ant/stub/ext/engine/nbproject/project.properties index dbb1e83..4cb4b38 100644 --- a/harness/libs.nbi.ant/stub/ext/engine/nbproject/project.properties +++ b/harness/libs.nbi.ant/stub/ext/engine/nbproject/project.properties @@ -43,8 +43,8 @@ javac.classpath=\ # Space-separated list of extra javac options javac.compilerargs= javac.deprecation=false -javac.source=1.5 -javac.target=1.5 +javac.source=1.8 +javac.target=1.8 javac.test.classpath=\ ${javac.classpath}:\ ${build.classes.dir}:\ - 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-2440) Cannot Debug Focused Test Method with project created by Netbean 8.2 in Netbean 11
[ https://issues.apache.org/jira/browse/NETBEANS-2440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16834497#comment-16834497 ] Thai Thien edited comment on NETBEANS-2440 at 9/4/19 7:48 AM: -- There is work around by edit the project file: Edit nbproject/build-impl.xml then make sure 2 following line is available in file (I think most case, first line is already there, you need the second line) was (Author: tthien): There is work around by edit the project file: Edit nbproject/build-impl.xml then make sure 2 following line is available in file (I think most case, first line is already there, you need the second line) > Cannot Debug Focused Test Method with project created by Netbean 8.2 in > Netbean 11 > -- > > Key: NETBEANS-2440 > URL: https://issues.apache.org/jira/browse/NETBEANS-2440 > Project: NetBeans > Issue Type: Bug >Affects Versions: 8.2, 11.0 >Reporter: Thai Thien >Priority: Major > Time Spent: 0.5h > Remaining Estimate: 0h > > How to reproduce: > # Create project with Netbean 8.2 > # Create test method in Netbean 8.2 (right click -> Tools -> create/update > tests) > # Select (highlight) a method in test, right click -> Debug Focused Test > Method. Make sure it can run with Netbean 8.2 > # Close Netbean 8.2 > # Open project with Netbean 11.0 > # Select (highlight) a method in test, right click -> Debug Focused Test > Method. Make sure it can run with Netbean 8.2 > # it show error > Target "debug-single-method" does not exist in the project "your project name" -- This message was sent by Atlassian Jira (v8.3.2#803003) - 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-3039) Extreme slow down on large YAML files
[ https://issues.apache.org/jira/browse/NETBEANS-3039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16922217#comment-16922217 ] Geertjan Wielenga commented on NETBEANS-3039: - It’s not a question of the JDK being too old. Just that different JDKs have different behavior, different features, different bug fixes. For what you’re doing, JDK 12 works better than JDK 8. > Extreme slow down on large YAML files > - > > Key: NETBEANS-3039 > URL: https://issues.apache.org/jira/browse/NETBEANS-3039 > Project: NetBeans > Issue Type: Bug >Affects Versions: 10.0, 11.0, 11.1 > Environment: Netbeans 11.1, OpenJDK 8, GNU/Debian Stretch, KDE >Reporter: Christian Naitsirch >Priority: Major > Labels: performance, yaml > Attachments: profile.zip, services.yml > > > When I work with Symfony web application (PHP framework) I usually have to > edit larger YAML files. In the last releases Netbeans really slows down when > editing those files. After some small changes in the file the loading > indicator is displayed and everything gets extremely slow. > This is why I still have to use Netbeans 8.2 which lacks some nice features > (e.g. conditional breakpoints in PHP Debugger). > I'll attach an example YAML file which makes my IDE unresponsive. I hope you > can reproduce this issue. > Other file types like large PHP files are not affected. > -- This message was sent by Atlassian Jira (v8.3.2#803003) - 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-3039) Extreme slow down on large YAML files
[ https://issues.apache.org/jira/browse/NETBEANS-3039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16922195#comment-16922195 ] Christian Naitsirch commented on NETBEANS-3039: --- Yes, I'll close this issue. Although it would be nice if Netbeans could warn the user, when a JDK is used that is too old (or unsupported). This would make users happy and would prevent these kind of issues from being added to the bug tracker ;) > Extreme slow down on large YAML files > - > > Key: NETBEANS-3039 > URL: https://issues.apache.org/jira/browse/NETBEANS-3039 > Project: NetBeans > Issue Type: Bug >Affects Versions: 10.0, 11.0, 11.1 > Environment: Netbeans 11.1, OpenJDK 8, GNU/Debian Stretch, KDE >Reporter: Christian Naitsirch >Priority: Major > Labels: performance, yaml > Attachments: profile.zip, services.yml > > > When I work with Symfony web application (PHP framework) I usually have to > edit larger YAML files. In the last releases Netbeans really slows down when > editing those files. After some small changes in the file the loading > indicator is displayed and everything gets extremely slow. > This is why I still have to use Netbeans 8.2 which lacks some nice features > (e.g. conditional breakpoints in PHP Debugger). > I'll attach an example YAML file which makes my IDE unresponsive. I hope you > can reproduce this issue. > Other file types like large PHP files are not affected. > -- This message was sent by Atlassian Jira (v8.3.2#803003) - 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] [Resolved] (NETBEANS-3039) Extreme slow down on large YAML files
[ https://issues.apache.org/jira/browse/NETBEANS-3039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Naitsirch resolved NETBEANS-3039. --- Resolution: Not A Bug Used JDK version was too old > Extreme slow down on large YAML files > - > > Key: NETBEANS-3039 > URL: https://issues.apache.org/jira/browse/NETBEANS-3039 > Project: NetBeans > Issue Type: Bug >Affects Versions: 10.0, 11.0, 11.1 > Environment: Netbeans 11.1, OpenJDK 8, GNU/Debian Stretch, KDE >Reporter: Christian Naitsirch >Priority: Major > Labels: performance, yaml > Attachments: profile.zip, services.yml > > > When I work with Symfony web application (PHP framework) I usually have to > edit larger YAML files. In the last releases Netbeans really slows down when > editing those files. After some small changes in the file the loading > indicator is displayed and everything gets extremely slow. > This is why I still have to use Netbeans 8.2 which lacks some nice features > (e.g. conditional breakpoints in PHP Debugger). > I'll attach an example YAML file which makes my IDE unresponsive. I hope you > can reproduce this issue. > Other file types like large PHP files are not affected. > -- This message was sent by Atlassian Jira (v8.3.2#803003) - 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-3039) Extreme slow down on large YAML files
[ https://issues.apache.org/jira/browse/NETBEANS-3039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Naitsirch updated NETBEANS-3039: -- Environment: Netbeans 11.1, OpenJDK 8, GNU/Debian Stretch, KDE (was: Netbeans 11.1, GNU/Debian Stretch, KDE) > Extreme slow down on large YAML files > - > > Key: NETBEANS-3039 > URL: https://issues.apache.org/jira/browse/NETBEANS-3039 > Project: NetBeans > Issue Type: Bug >Affects Versions: 10.0, 11.0, 11.1 > Environment: Netbeans 11.1, OpenJDK 8, GNU/Debian Stretch, KDE >Reporter: Christian Naitsirch >Priority: Major > Labels: performance, yaml > Attachments: profile.zip, services.yml > > > When I work with Symfony web application (PHP framework) I usually have to > edit larger YAML files. In the last releases Netbeans really slows down when > editing those files. After some small changes in the file the loading > indicator is displayed and everything gets extremely slow. > This is why I still have to use Netbeans 8.2 which lacks some nice features > (e.g. conditional breakpoints in PHP Debugger). > I'll attach an example YAML file which makes my IDE unresponsive. I hope you > can reproduce this issue. > Other file types like large PHP files are not affected. > -- This message was sent by Atlassian Jira (v8.3.2#803003) - 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