[jira] [Comment Edited] (NETBEANS-5480) Wrong folding for ""
[ https://issues.apache.org/jira/browse/NETBEANS-5480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17320293#comment-17320293 ] Stefano Calabrese edited comment on NETBEANS-5480 at 4/14/21, 3:26 AM: --- Hi, maybe is better folding on reverse {code:java} - ?> | | - //<-- Tipically not present at the end of file{code} was (Author: stefanoai): Hi, maybe is better folding on reverse {code:java} Segnaposto codice // - ?> | | - //<-- Tipically not present at the end of file{code} > Wrong folding for "" > > > Key: NETBEANS-5480 > URL: https://issues.apache.org/jira/browse/NETBEANS-5480 > Project: NetBeans > Issue Type: Bug > Components: php - Formatting Indentation >Affects Versions: 12.2 >Reporter: Stefano Calabrese >Assignee: Junichi Yamamoto >Priority: Major > Labels: Folding > Attachments: aspected_tmp_code_php.jpg, wrong_tmp_code_php.jpg > > > Hi i have a problem with code folding "" > if you have this PHP code > {code:java} > Segnaposto codice // > class A { > function B(){ > ?>Hello } > } > {code} > when you create it it's ok, but *if you save, close and re-open it* , > you can see collapse ?> and break folding as in image > (tmp_code_php.jpg) > > Actual result after save, close & reopen file .php > image attached wrong_tmp_code_php.jpg > > Expected result: > image attached aspected_tmp_code_php.jpg > > > Thank you -- 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-5578) Wrong Indent whem js inside php
[ https://issues.apache.org/jira/browse/NETBEANS-5578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17320667#comment-17320667 ] Stefano Calabrese commented on NETBEANS-5578: - Solved, deactivating this plugin all sounds good. *External Code Formatter* *Version:* 1.14.0 *Source:* NetBeans Plugin Portal PS Have you seen the folding problem? (https://issues.apache.org/jira/browse/NETBEANS-5480) > Wrong Indent whem js inside php > --- > > Key: NETBEANS-5578 > URL: https://issues.apache.org/jira/browse/NETBEANS-5578 > Project: NetBeans > Issue Type: Bug > Components: javascript - Editor >Affects Versions: 12.3 >Reporter: Stefano Calabrese >Priority: Major > Labels: editor, javascript, php > Attachments: tmp.php > > > When you indent php file with javascript inline like that: > > {code:java} > public function woocommerce_settings_tabs_fatturehelp($vendor_id = NULL) { > $this->load_style(); > $this->fields->styleCheckbox(); > ?> > > > > > function fatturehelp_wc_spinner_start() { > jQuery("#fatturehelp-wc-ajax-loading").fadeIn('fast'); > } > function fatturehelp_wc_spinner_stop() { > jQuery("#fatturehelp-wc-ajax-loading").fadeOut('fast'); > } > > }{code} > javascript block will not be indented > > > > Try to indent tha file attached > > -- 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-5578) Wrong Indent whem js inside php
[ https://issues.apache.org/jira/browse/NETBEANS-5578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17320643#comment-17320643 ] Junichi Yamamoto commented on NETBEANS-5578: Please also write an actual result and an expected result. > Wrong Indent whem js inside php > --- > > Key: NETBEANS-5578 > URL: https://issues.apache.org/jira/browse/NETBEANS-5578 > Project: NetBeans > Issue Type: Bug > Components: javascript - Editor >Affects Versions: 12.3 >Reporter: Stefano Calabrese >Priority: Major > Labels: editor, javascript, php > Attachments: tmp.php > > > When you indent php file with javascript inline like that: > > {code:java} > public function woocommerce_settings_tabs_fatturehelp($vendor_id = NULL) { > $this->load_style(); > $this->fields->styleCheckbox(); > ?> > > > > > function fatturehelp_wc_spinner_start() { > jQuery("#fatturehelp-wc-ajax-loading").fadeIn('fast'); > } > function fatturehelp_wc_spinner_stop() { > jQuery("#fatturehelp-wc-ajax-loading").fadeOut('fast'); > } > > }{code} > javascript block will not be indented > > > > Try to indent tha file attached > > -- 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-5578) Wrong Indent whem js inside php
Stefano Calabrese created NETBEANS-5578: --- Summary: Wrong Indent whem js inside php Key: NETBEANS-5578 URL: https://issues.apache.org/jira/browse/NETBEANS-5578 Project: NetBeans Issue Type: Bug Components: javascript - Editor Affects Versions: 12.3 Reporter: Stefano Calabrese Attachments: tmp.php When you indent php file with javascript inline like that: {code:java} public function woocommerce_settings_tabs_fatturehelp($vendor_id = NULL) { $this->load_style(); $this->fields->styleCheckbox(); ?> function fatturehelp_wc_spinner_start() { jQuery("#fatturehelp-wc-ajax-loading").fadeIn('fast'); } function fatturehelp_wc_spinner_stop() { jQuery("#fatturehelp-wc-ajax-loading").fadeOut('fast'); } https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-5577) Add PHP-CS-Fixer 3.x configuration files
[ https://issues.apache.org/jira/browse/NETBEANS-5577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ASF GitHub Bot updated NETBEANS-5577: - Labels: pull-request-available (was: ) > Add PHP-CS-Fixer 3.x configuration files > > > Key: NETBEANS-5577 > URL: https://issues.apache.org/jira/browse/NETBEANS-5577 > Project: NetBeans > Issue Type: Improvement > Components: php - Code Analysis >Affects Versions: 12.3 >Reporter: Tomáš Procházka >Assignee: Tomáš Procházka >Priority: Major > Labels: pull-request-available > Time Spent: 10m > Remaining Estimate: 0h > > PHP-CS-Fixer 3.x will use new names for configuration files. > File {{.php_cs}} will be renamed to {{.php-cs-fixer.php}}, {{.php_cs.dist}} > will become {{.php-cs-fixer.dist.php}}. > NetBeans should reflect it in Important Files node. > Reference: > * https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/5607 > * https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/3.0/UPGRADE-v3.md -- 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-5577) Add PHP-CS-Fixer 3.x configuration files
Tomáš Procházka created NETBEANS-5577: - Summary: Add PHP-CS-Fixer 3.x configuration files Key: NETBEANS-5577 URL: https://issues.apache.org/jira/browse/NETBEANS-5577 Project: NetBeans Issue Type: Improvement Components: php - Code Analysis Affects Versions: 12.3 Reporter: Tomáš Procházka Assignee: Tomáš Procházka PHP-CS-Fixer 3.x will use new names for configuration files. File {{.php_cs}} will be renamed to {{.php-cs-fixer.php}}, {{.php_cs.dist}} will become {{.php-cs-fixer.dist.php}}. NetBeans should reflect it in Important Files node. Reference: * https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/5607 * https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/3.0/UPGRADE-v3.md -- 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-5576) getCompilationUnit() error during startup
Cation created NETBEANS-5576: Summary: getCompilationUnit() error during startup Key: NETBEANS-5576 URL: https://issues.apache.org/jira/browse/NETBEANS-5576 Project: NetBeans Issue Type: Bug Components: ide - Welcome Affects Versions: 12.0 Reporter: Cation 2021-04-13T19:24:35 1618334675354 1629 700 28 UI_USER_CONFIGURATION UI_USER_CONFIGURATION org.netbeans.modules.uihandler.Bundle Windows 10, 10.0, amd64 Java HotSpot(TM) 64-Bit Server VM, 15+36-1562, Java(TM) SE Runtime Environment, 15+36-1562 Apache NetBeans IDE 12.0 IllegalStateException: Cannot call getCompilationUnit() if current phase JavaSource.Phase.PARSED. You must call toPhase(Phase.PARSED) first. Please provide a description of the problem or the steps to reproduce * -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[netbeans] branch master updated: Test Explorer fixes. (#2878)
This is an automated email from the ASF dual-hosted git repository. dbalek 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 d100687 Test Explorer fixes. (#2878) d100687 is described below commit d1006877e919e3723a73cb131a596717492caf8f Author: Dusan Balek AuthorDate: Tue Apr 13 19:19:22 2021 +0200 Test Explorer fixes. (#2878) --- .../server/debugging/launch/NbLaunchDelegate.java | 13 ++- .../server/protocol/TextDocumentServiceImpl.java | 65 --- .../lsp/server/protocol/WorkspaceServiceImpl.java | 19 +++-- java/java.lsp.server/vscode/src/testAdapter.ts | 92 +- .../maven/junit/JUnitOutputListenerProvider.java | 16 5 files changed, 128 insertions(+), 77 deletions(-) diff --git a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/debugging/launch/NbLaunchDelegate.java b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/debugging/launch/NbLaunchDelegate.java index a254307..cf97e0d 100644 --- a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/debugging/launch/NbLaunchDelegate.java +++ b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/debugging/launch/NbLaunchDelegate.java @@ -29,6 +29,8 @@ import java.util.Collections; import java.util.List; import java.util.Map; import java.util.concurrent.CompletableFuture; +import java.util.concurrent.atomic.AtomicBoolean; +import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicReference; import java.util.function.Consumer; @@ -93,14 +95,21 @@ public abstract class NbLaunchDelegate { singleMethod = null; } ActionProgress progress = new ActionProgress() { +private final AtomicInteger count = new AtomicInteger(0); +private final AtomicBoolean finalSuccess = new AtomicBoolean(true); @Override protected void started() { +count.incrementAndGet(); } @Override public void finished(boolean success) { -ioContext.stop(); -notifyFinished(context, success); +if (count.decrementAndGet() <= 0) { +ioContext.stop(); +notifyFinished(context, success && finalSuccess.get()); +} else if (!success) { +finalSuccess.set(success); +} } }; if (toRun != null) { diff --git a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/TextDocumentServiceImpl.java b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/TextDocumentServiceImpl.java index 0c7e8ce..15433d3 100644 --- a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/TextDocumentServiceImpl.java +++ b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/protocol/TextDocumentServiceImpl.java @@ -52,10 +52,12 @@ import java.util.Map; import java.util.Set; import java.util.concurrent.Callable; import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; +import java.util.concurrent.atomic.AtomicReference; import java.util.function.BiConsumer; import java.util.function.IntFunction; import java.util.logging.Level; @@ -235,7 +237,7 @@ public class TextDocumentServiceImpl implements TextDocumentService, LanguageCli /** * Documents actually opened by the client. */ -private final Map openedDocuments = new HashMap<>(); +private final Map openedDocuments = new ConcurrentHashMap<>(); private final Map diagnosticTasks = new HashMap<>(); private final LspServerState server; private NbCodeLanguageClient client; @@ -1083,6 +1085,8 @@ public class TextDocumentServiceImpl implements TextDocumentService, LanguageCli } //end copied +private ConcurrentHashMap upToDateTests = new ConcurrentHashMap<>(); + @Override public CompletableFuture> codeLens(CodeLensParams params) { // shortcut: if the projects are not yet initialized, return empty: @@ -1099,32 +1103,35 @@ public class TextDocumentServiceImpl implements TextDocumentService, LanguageCli source.runUserActionTask(cc -> { cc.toPhase(Phase.ELEMENTS_RESOLVED); //look for test methods: -List testMethods = new ArrayList<>(); -for (ComputeTestMethods.Factory methodsFactory : Lookup.getDefault().lookupAll(ComputeTestMethods.Factory.class)) { - testMethods.addAll(methodsFactory.create().computeTestMethods(cc)); -} -if
[jira] [Commented] (NETBEANS-5534) Clicking CTRL+ Space for code completion on macbook M1 closes Netbeans
[ https://issues.apache.org/jira/browse/NETBEANS-5534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17320334#comment-17320334 ] Geertjan Wielenga commented on NETBEANS-5534: - Can you try with different JDKs, e.g., also try with JDK 8, to see whether this problem relates to a specific JDK? > Clicking CTRL+ Space for code completion on macbook M1 closes Netbeans > --- > > Key: NETBEANS-5534 > URL: https://issues.apache.org/jira/browse/NETBEANS-5534 > Project: NetBeans > Issue Type: Bug > Components: ide - Code >Affects Versions: 12.3 > Environment: Machine: Macbook AIR M1 > OS: OSx Big Sur version 11.2.3 (20D91) > java version "11.0.10" 2021-01-19 LTS > >Reporter: Imad Bougataya >Priority: Critical > Labels: code-completion > Fix For: Next > > > When trying to use the code completion feature on a Macbook M1 running Big > Sur, clicking on both CTRL and Space automatically shuts down Netbeans. No > warning, no screens, no hangs, it just disappears immediately and you have to > run the IDE again. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Comment Edited] (NETBEANS-5534) Clicking CTRL+ Space for code completion on macbook M1 closes Netbeans
[ https://issues.apache.org/jira/browse/NETBEANS-5534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17316956#comment-17316956 ] Imad Bougataya edited comment on NETBEANS-5534 at 4/13/21, 4:45 PM: Additional commands that cause an immediate crash in the editor are Fn key that toggles language change, Command+space, CTRL+Space, opening the editor keymap. was (Author: imadbougataya): Additional commands that cause an immediate crash in the editor are Command+space, CTRL+Space, opening the editor keymap. > Clicking CTRL+ Space for code completion on macbook M1 closes Netbeans > --- > > Key: NETBEANS-5534 > URL: https://issues.apache.org/jira/browse/NETBEANS-5534 > Project: NetBeans > Issue Type: Bug > Components: ide - Code >Affects Versions: 12.3 > Environment: Machine: Macbook AIR M1 > OS: OSx Big Sur version 11.2.3 (20D91) > java version "11.0.10" 2021-01-19 LTS > >Reporter: Imad Bougataya >Priority: Critical > Labels: code-completion > Fix For: Next > > > When trying to use the code completion feature on a Macbook M1 running Big > Sur, clicking on both CTRL and Space automatically shuts down Netbeans. No > warning, no screens, no hangs, it just disappears immediately and you have to > run the IDE again. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Comment Edited] (NETBEANS-5480) Wrong folding for ""
[ https://issues.apache.org/jira/browse/NETBEANS-5480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17320293#comment-17320293 ] Stefano Calabrese edited comment on NETBEANS-5480 at 4/13/21, 4:25 PM: --- Hi, maybe is better folding on reverse {code:java} Segnaposto codice // - ?> | | - //<-- Tipically not present at the end of file{code} was (Author: stefanoai): Hi, maybe is better folding on reverse |-?> | | |- > Wrong folding for "" > > > Key: NETBEANS-5480 > URL: https://issues.apache.org/jira/browse/NETBEANS-5480 > Project: NetBeans > Issue Type: Bug > Components: php - Formatting Indentation >Affects Versions: 12.2 >Reporter: Stefano Calabrese >Assignee: Junichi Yamamoto >Priority: Major > Labels: Folding > Attachments: aspected_tmp_code_php.jpg, wrong_tmp_code_php.jpg > > > Hi i have a problem with code folding "" > if you have this PHP code > {code:java} > Segnaposto codice // > class A { > function B(){ > ?>Hello } > } > {code} > when you create it it's ok, but *if you save, close and re-open it* , > you can see collapse ?> and break folding as in image > (tmp_code_php.jpg) > > Actual result after save, close & reopen file .php > image attached wrong_tmp_code_php.jpg > > Expected result: > image attached aspected_tmp_code_php.jpg > > > Thank you -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Comment Edited] (NETBEANS-5480) Wrong folding for ""
[ https://issues.apache.org/jira/browse/NETBEANS-5480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17320293#comment-17320293 ] Stefano Calabrese edited comment on NETBEANS-5480 at 4/13/21, 4:23 PM: --- Hi, maybe is better folding on reverse |-?> | | |- was (Author: stefanoai): Hi, maybe is better folding on reverse - ?> | | - Wrong folding for "" > > > Key: NETBEANS-5480 > URL: https://issues.apache.org/jira/browse/NETBEANS-5480 > Project: NetBeans > Issue Type: Bug > Components: php - Formatting Indentation >Affects Versions: 12.2 >Reporter: Stefano Calabrese >Assignee: Junichi Yamamoto >Priority: Major > Labels: Folding > Attachments: aspected_tmp_code_php.jpg, wrong_tmp_code_php.jpg > > > Hi i have a problem with code folding "" > if you have this PHP code > {code:java} > Segnaposto codice // > class A { > function B(){ > ?>Hello } > } > {code} > when you create it it's ok, but *if you save, close and re-open it* , > you can see collapse ?> and break folding as in image > (tmp_code_php.jpg) > > Actual result after save, close & reopen file .php > image attached wrong_tmp_code_php.jpg > > Expected result: > image attached aspected_tmp_code_php.jpg > > > Thank you -- 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-5480) Wrong folding for ""
[ https://issues.apache.org/jira/browse/NETBEANS-5480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17320293#comment-17320293 ] Stefano Calabrese commented on NETBEANS-5480: - Hi, maybe is better folding on reverse - ?> | | - Wrong folding for "" > > > Key: NETBEANS-5480 > URL: https://issues.apache.org/jira/browse/NETBEANS-5480 > Project: NetBeans > Issue Type: Bug > Components: php - Formatting Indentation >Affects Versions: 12.2 >Reporter: Stefano Calabrese >Assignee: Junichi Yamamoto >Priority: Major > Labels: Folding > Attachments: aspected_tmp_code_php.jpg, wrong_tmp_code_php.jpg > > > Hi i have a problem with code folding "" > if you have this PHP code > {code:java} > Segnaposto codice // > class A { > function B(){ > ?>Hello } > } > {code} > when you create it it's ok, but *if you save, close and re-open it* , > you can see collapse ?> and break folding as in image > (tmp_code_php.jpg) > > Actual result after save, close & reopen file .php > image attached wrong_tmp_code_php.jpg > > Expected result: > image attached aspected_tmp_code_php.jpg > > > Thank you -- 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-5143) NetBeans 12.2, 12.3 deploys webapps twice
[ https://issues.apache.org/jira/browse/NETBEANS-5143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17320224#comment-17320224 ] Marco Robiati commented on NETBEANS-5143: - Same issue with all combinations of NetBeans 12.2/12.3 Java 15/15.0.2/16 (which I know, it's not supported in NetBeans 12.x) Tomcat 9.0.45/10.0.5 Maven 3.6.3(bundled)/3.8.1 Windows 10 20H2 > NetBeans 12.2, 12.3 deploys webapps twice > - > > Key: NETBEANS-5143 > URL: https://issues.apache.org/jira/browse/NETBEANS-5143 > Project: NetBeans > Issue Type: Bug > Components: core >Affects Versions: 12.2, 12.3 > Environment: Windows 10 20H2/AMD Ryzen 7 4800H/32GB RAM > java: build 11.0.9.1+1, maven 3.6.3 > Netbeans versions tested: 12.1, 12.2, 12.3 (12.2/12.3 are effected) > Tomcat (new installs): 8.5.60, 9.0.40, Payara (per Patrick Musembi) >Reporter: Vlad Palnik >Priority: Major > Labels: webapp, webapp-deployment > > To whomever it concerns, > > Bug in NetBeans 12.2, 12.3. Netbeans seems to interfere with the deployment > of web apps somehow and web apps are deployed twice. > > While deploying an app it follows this pattern: deploy => undeploy => deploy > (see build log below). I tried solving this issue by undeployed any previous > versions of the app manually and restarted Tomcat, the same error occurs. The > issue appears when using NB 12.2, 12.3 > > When tested on NetBeans 12.1 using the same Java/Tomcat installation/config > no errors occur and deployment proceeds correctly. > > Steps to replicate: > 1: Create maven webapp (Java EE7, Java 11) in NetBeans 12.1 > 2 Set Tomcat Server in Properties > Run > 3. Build/Run project in 12.1, you will get a "Hello World" basic site. > 4. Check build log, only a single deploy should show up. > 5 Close 12.1 and open same project in 12.2/12.3 > 6 Before run/build make sure same server and java versions are selected > 7 Build/Run project > 8 Check build log, you will see two deploys of webapp > > > BUILD SUCCESS > > Total time: 18.211 s > Finished at: 2020-12-11T17:27:08-08:00 > > Deploying on Tomcat 8.5.60 > profile mode: false > debug mode: false > force redeploy: true > Starting Tomcat process... > Waiting for Tomcat... > Tomcat server started. > In-place deployment at C:\Users\username\Desktop\myapp\target\myapp##1.2.5 > Deployment is in progress... > > deploy?config=file%3A%2FC%3A%2FUsers%2Fusername%2FAppData%2FLocal%2FTemp%2Fcontext6407158500266578550.xml=/myapp > OK - Deployed application at context path [/myapp] > Start is in progress... > start?path=/myapp > OK - Started application at context path [/myapp] > Deploying on Tomcat 8.5.60 > profile mode: false > debug mode: false > force redeploy: true > Undeploying ... > undeploy?path=/myapp > OK - Undeployed application at context path [/myapp] > In-place deployment at C:\Users\username\Desktop\myapp\target\myapp##1.2.5 > Deployment is in progress... > > deploy?config=file%3A%2FC%3A%2FUsers%2Fusername%2FAppData%2FLocal%2FTemp%2Fcontext3519987589623367889.xml=/myapp > OK - Deployed application at context path [/myapp] > Start is in progress... > start?path=/myapp > OK - Started application at context path [/myapp] > > -- 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] [Resolved] (NETBEANS-5482) Support for explicit parameters for the application and its VM
[ https://issues.apache.org/jira/browse/NETBEANS-5482?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Svatopluk Dedic resolved NETBEANS-5482. --- Resolution: Fixed > Support for explicit parameters for the application and its VM > -- > > Key: NETBEANS-5482 > URL: https://issues.apache.org/jira/browse/NETBEANS-5482 > Project: NetBeans > Issue Type: Improvement > Components: projects - Gradle >Affects Versions: 12.3 >Reporter: Svatopluk Dedic >Assignee: Svatopluk Dedic >Priority: Major > Labels: pull-request-available > Fix For: 12.4 > > Time Spent: 1h 20m > Remaining Estimate: 0h > > In NetBeans *12.3*, a way how a caller can launch the user application, > passing application parameters and launcher (VM) parameters in an abstract > way was introduced. Maven implementation was done as a proof of concept. > In order to better support Micronaut development, I need to do the same for > Micronaut-based applications, which mostly use gradle build - Micronaut > itself is built by gradle, so it's natural to cover both Micronaut-supported > build systems with the feature. > During analysis, I have noticed that Gradle Java support does not honour > *StartupExtender* API, which is used by other NB plugins to inject VM-level > parameters; so this task should also cover implementing that support for > better integration of Gradle Java with the rest of NetBeans IDE. > The general idea is: > * mix in JVM arguments provided by {{StartupExtender}}s. > * define a project property, interpreted by NetBeans Tooling plugin, since > Gradle itself does not accept commandline arg or project property that would > affect the JVM settings > * implement a token replacer, that would generate necessary commandline > items for gradle build, that will be interpreted directly by Gradle, or the > Plugin > * Change the default {{action-mapping.xml}} to use those new tokens, for > javaExec related actions. > * Update documentation to instruct users how to change *existing* > action-mappings > Eventually some migration tool may be provided, but documentation should be > enough, our users are _developers_, after all. > The above should ensure, that for newly opened projects, the implemented > support will work 'out of the box'. Existing projects may need to be upgraded > - in the IDE-related part. > > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-5318) Gradle priming build in VSCode is asking again and again.
[ https://issues.apache.org/jira/browse/NETBEANS-5318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Svatopluk Dedic updated NETBEANS-5318: -- Fix Version/s: (was: 12.3) 12.4 > Gradle priming build in VSCode is asking again and again. > - > > Key: NETBEANS-5318 > URL: https://issues.apache.org/jira/browse/NETBEANS-5318 > Project: NetBeans > Issue Type: Bug > Components: vscode >Affects Versions: 12.3 > Environment: Ubuntu 20.04, GraalVM 21.0 Jdk 8. >Reporter: Martin Balin >Assignee: Svatopluk Dedic >Priority: Major > Labels: pull-request-available > Fix For: 12.4 > > Time Spent: 2h 50m > Remaining Estimate: 0h > > Running VSNetBeans 12.3.286 with GraalVM Micronaut ext. Create Gradle MN > project. > VSNB asks for Gradle priming build many times, message: > "NetBeans is about to invoke a Gradle build process of the project: demog. > Executing Gradle can be potentially un-safe as it allows arbitrary code > execution." > I always answered OK, but it was appearing again and again. > After that i invoked "Java: Compile workspace" and it built and also problem > with underlined "package" statement went away, this is great. > Should to be fixed for 12.3 final. > -- 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-5572) NETBEANS-5397 - Since Netbeans 12.2 the entities generated from database for mysql related tables is blank.
[ https://issues.apache.org/jira/browse/NETBEANS-5572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17320028#comment-17320028 ] Tomáš Procházka commented on NETBEANS-5572: --- Hi, please add exact steps to follow, what is your result and what you expect. Thank you. > NETBEANS-5397 - Since Netbeans 12.2 the entities generated from database for > mysql related tables is blank. > > > Key: NETBEANS-5572 > URL: https://issues.apache.org/jira/browse/NETBEANS-5572 > Project: NetBeans > Issue Type: Bug >Affects Versions: 12.2, 12.3 >Reporter: Kamlendu >Priority: Major > Fix For: 12.2, 12.3 > > -- 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