[jira] [Commented] (NETBEANS-2810) Java EE 8 Web Project creation does not automatically enable feature
[ https://issues.apache.org/jira/browse/NETBEANS-2810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17443236#comment-17443236 ] Josh Juneau commented on NETBEANS-2810: --- Testing again performed using NetBeans 12.5 and 12.6 with a clean user directory. If creating a Jakarta EE 8 project without previously adding a server, user is prompted to "Download and Activate" or "Activate" Jakarta EE. This feature appears to be working without issues on OS X 11.6. > Java EE 8 Web Project creation does not automatically enable feature > > > Key: NETBEANS-2810 > URL: https://issues.apache.org/jira/browse/NETBEANS-2810 > Project: NetBeans > Issue Type: Bug > Components: javaee - Web Project >Affects Versions: 11.1 > Environment: 11.1 beta3 > Java: 1.8.0_212 > System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb) >Reporter: Vano Beridze >Assignee: Josh Juneau >Priority: Major > > # Create web project > # IDE proposes to install Oracle JS Parser > # Install the plugin > # IDE proposes to install NB Javac plugin > # Install the plugin > # At this point IDE displays the dialog page that does not have Next enabled. > If you go back and then next, it activates the feature and project is created > successfully. > You don't have to go back and feature activation should happen automatically > at the step 6. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-6192) Netbeans 11.0 very slow performance on RHEL 7
[ https://issues.apache.org/jira/browse/NETBEANS-6192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] satendra gupta updated NETBEANS-6192: - Priority: Major (was: Minor) > Netbeans 11.0 very slow performance on RHEL 7 > - > > Key: NETBEANS-6192 > URL: https://issues.apache.org/jira/browse/NETBEANS-6192 > Project: NetBeans > Issue Type: Task >Affects Versions: 11.0 >Reporter: satendra gupta >Priority: Major > > i recently migrated from RHEL6 to RHEL7 and i observe very slow performance > on RHEL7. i am using Netbeans 11.0 with JDK 8 -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-6004) Gradle plugin should identify the gradle versions that it supports.
[ https://issues.apache.org/jira/browse/NETBEANS-6004?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ASF GitHub Bot updated NETBEANS-6004: - Labels: pull-request-available (was: ) > Gradle plugin should identify the gradle versions that it supports. > --- > > Key: NETBEANS-6004 > URL: https://issues.apache.org/jira/browse/NETBEANS-6004 > Project: NetBeans > Issue Type: Improvement > Components: projects - Gradle >Affects Versions: 12.4, 12.5 >Reporter: Mark Flacy >Assignee: Laszlo Kishalmi >Priority: Major > Labels: pull-request-available > Attachments: image-2021-11-13-12-20-54-228.png > > Time Spent: 10m > Remaining Estimate: 0h > > I have had issues opening gradle projects at work whose gradle versions > differed wildly between 2.10 and 6.9. I would like to be able to examine the > gradle plugin's description to see what versions of gradle the plugin > actually supports. > > None of my company's projects are at a gradle version greater than or equal > to 7.0. However, every time I attempt to build I always get an error > message telling me > _Could not run build action using connection to Gradle installation > '/Users/me/.gradle/wrapper/dists/gradle-7.0-bin//gradle-7.0_ > > Maybe the message is misleading. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-6004) Gradle plugin should identify the gradle versions that it supports.
[ https://issues.apache.org/jira/browse/NETBEANS-6004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17443185#comment-17443185 ] Laszlo Kishalmi commented on NETBEANS-6004: --- I'm going to add a project problem reporter, which provide some information on such cases: !image-2021-11-13-12-20-54-228.png! > Gradle plugin should identify the gradle versions that it supports. > --- > > Key: NETBEANS-6004 > URL: https://issues.apache.org/jira/browse/NETBEANS-6004 > Project: NetBeans > Issue Type: Improvement > Components: projects - Gradle >Affects Versions: 12.4, 12.5 >Reporter: Mark Flacy >Assignee: Laszlo Kishalmi >Priority: Major > Attachments: image-2021-11-13-12-20-54-228.png > > > I have had issues opening gradle projects at work whose gradle versions > differed wildly between 2.10 and 6.9. I would like to be able to examine the > gradle plugin's description to see what versions of gradle the plugin > actually supports. > > None of my company's projects are at a gradle version greater than or equal > to 7.0. However, every time I attempt to build I always get an error > message telling me > _Could not run build action using connection to Gradle installation > '/Users/me/.gradle/wrapper/dists/gradle-7.0-bin//gradle-7.0_ > > Maybe the message is misleading. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-6004) Gradle plugin should identify the gradle versions that it supports.
[ https://issues.apache.org/jira/browse/NETBEANS-6004?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Laszlo Kishalmi updated NETBEANS-6004: -- Attachment: image-2021-11-13-12-20-54-228.png > Gradle plugin should identify the gradle versions that it supports. > --- > > Key: NETBEANS-6004 > URL: https://issues.apache.org/jira/browse/NETBEANS-6004 > Project: NetBeans > Issue Type: Improvement > Components: projects - Gradle >Affects Versions: 12.4, 12.5 >Reporter: Mark Flacy >Assignee: Laszlo Kishalmi >Priority: Major > Attachments: image-2021-11-13-12-20-54-228.png > > > I have had issues opening gradle projects at work whose gradle versions > differed wildly between 2.10 and 6.9. I would like to be able to examine the > gradle plugin's description to see what versions of gradle the plugin > actually supports. > > None of my company's projects are at a gradle version greater than or equal > to 7.0. However, every time I attempt to build I always get an error > message telling me > _Could not run build action using connection to Gradle installation > '/Users/me/.gradle/wrapper/dists/gradle-7.0-bin//gradle-7.0_ > > Maybe the message is misleading. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-189) SQL editor, shouldn't ask evertime to set the connection
[ https://issues.apache.org/jira/browse/NETBEANS-189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17443138#comment-17443138 ] Eric Bresie commented on NETBEANS-189: -- PR 3074 currently marked for milestone 13 > SQL editor, shouldn't ask evertime to set the connection > > > Key: NETBEANS-189 > URL: https://issues.apache.org/jira/browse/NETBEANS-189 > Project: NetBeans > Issue Type: Improvement > Components: db - SQL Editor >Affects Versions: Next >Reporter: Christian Lenz >Assignee: Eric Bresie >Priority: Major > Labels: pull-request-available > Attachments: SQL Notification.png, required-connection.gif > > Time Spent: 7h 40m > Remaining Estimate: 0h > > Of course, the SQL editor doesn't make sense, if you don't set a connection > to see databases, tables and columns, but sometimes or often, you only want > to scratch a SQL query and you want the code completion for the SQL stuff, > like the keywords (SELECT, FROM, WHERE) or aggregate functions (COUNT, AVG, > etc.) So this is not possible, without setting a connection. But when I don't > have a connection, I can't use the code completion, becauses it will ends up > in a loop. See my little screen capture for what I mean. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Resolved] (NETBEANS-5783) NPE opening Gradle project
[ https://issues.apache.org/jira/browse/NETBEANS-5783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Laszlo Kishalmi resolved NETBEANS-5783. --- Fix Version/s: 12.6 Resolution: Fixed The corresponding PR got merged in 12.6 > NPE opening Gradle project > -- > > Key: NETBEANS-5783 > URL: https://issues.apache.org/jira/browse/NETBEANS-5783 > Project: NetBeans > Issue Type: Improvement > Components: projects - Gradle >Affects Versions: 12.4 > Environment: NetBeans 12.4 > OpenJDK 16 > macOS 11.4 >Reporter: Scott Palmer >Assignee: Laszlo Kishalmi >Priority: Major > Labels: pull-request-available > Fix For: 12.6 > > Time Spent: 20m > Remaining Estimate: 0h > > I have an existing Gradle project that builds fine from the command line, but > causes a NPE related to the project name when I try to load it into NetBeans: > java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because > the return value of > "org.netbeans.api.project.ProjectInformation.getDisplayName()" is null > at > org.netbeans.modules.project.ui.actions.SetMainProject.checkProjectNames(SetMainProject.java:277) > at > org.netbeans.modules.project.ui.actions.SetMainProject.access$200(SetMainProject.java:66) > at > org.netbeans.modules.project.ui.actions.SetMainProject$5.run(SetMainProject.java:303) > at > java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:316) > at > java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770) > at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) > at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715) > at > java.base/java.security.AccessController.doPrivileged(AccessController.java:391) > at > java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) > at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740) > There are spaces in the path to the project but not the project folder itself. -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Resolved] (NETBEANS-6164) Unexpected Exception when creating new Java with Gradle Web Application project
[ https://issues.apache.org/jira/browse/NETBEANS-6164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Laszlo Kishalmi resolved NETBEANS-6164. --- Resolution: Duplicate > Unexpected Exception when creating new Java with Gradle Web Application > project > --- > > Key: NETBEANS-6164 > URL: https://issues.apache.org/jira/browse/NETBEANS-6164 > Project: NetBeans > Issue Type: Bug > Components: javaee - Web Project, projects - Gradle Java EE >Affects Versions: 12.5 > Environment: OS: Exception occurs on both Windows 10 and macOS > Catalina (10.15.7) > Java Version: OpenJDK 8u312 + OpenJ9 JVM (IBM Semeru) > Server: Apache TomEE 8.0.8 WebProfile > NetBeans Version: 12.5 >Reporter: James Parsons >Assignee: Laszlo Kishalmi >Priority: Major > Attachments: NetBeans-Stack-Trace.txt, NetBeans-UI-Log.txt > > > HOW TO REPRODUCE: > 'File' menu -> 'New Project …' -> 'Java with Gradle' -> 'Web Application' -> > 'Next' button -> accept defaults -> 'Next' button -> Server: Apache TomEE > 8.0.8 WebProfile; Java EE Version: Java EE 7 Web -> 'Finish' button. No new > project gets listed in Projects window. A red notification icon appears in > status bar indicating an Unexpected Exception. > See attached files for debug output. (Warning: One of them is 50 MB.) -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[netbeans] branch master updated: Exclude less (@{}) and scss (#{}) string interpolation from formatting
This is an automated email from the ASF dual-hosted git repository. matthiasblaesing 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 94fa014 Exclude less (@{}) and scss (#{}) string interpolation from formatting new a92befa Merge pull request #3314 from matthiasblaesing/css_formatting2 94fa014 is described below commit 94fa014e810fe0f153bb951a3a0ac1bfe6f3b2cf Author: Matthias Bläsing AuthorDate: Wed Nov 10 21:12:02 2021 +0100 Exclude less (@{}) and scss (#{}) string interpolation from formatting --- ide/css.editor/nbproject/project.properties| 4 +- .../modules/css/editor/indent/CssIndentTask.java | 124 - .../test/unit/data/testfiles/case005.less | 1 + .../unit/data/testfiles/case005.less.formatted | 5 + .../test/unit/data/testfiles/case006.scss | 6 + .../unit/data/testfiles/case006.scss.formatted | 8 ++ .../modules/css/editor/indent/CssIndenterTest.java | 6 +- .../css/editor/indent/LessIndenterTest.java| 55 + .../css/editor/indent/ScssIndenterTest.java| 58 ++ 9 files changed, 213 insertions(+), 54 deletions(-) diff --git a/ide/css.editor/nbproject/project.properties b/ide/css.editor/nbproject/project.properties index ca4bfda..91a7d02 100644 --- a/ide/css.editor/nbproject/project.properties +++ b/ide/css.editor/nbproject/project.properties @@ -15,6 +15,8 @@ # specific language governing permissions and limitations # under the License. +auxiliary.org-netbeans-modules-css-prep.less_2e_configured=true +auxiliary.org-netbeans-modules-css-prep.sass_2e_configured=true release.external/css21-spec.zip=docs/css21-spec.zip release.external/css3-spec.zip=docs/css3-spec.zip @@ -33,4 +35,4 @@ test.config.stableBTD.excludes=\ **/properties/parser/PropertyValueTest.class,\ **/CssBracketCompleterTest.class -test-unit-sys-prop.netbeans.dirs=${netbeans.dest.dir}/${nb.cluster.ide.dir} \ No newline at end of file +test-unit-sys-prop.netbeans.dirs=${netbeans.dest.dir}/${nb.cluster.ide.dir} diff --git a/ide/css.editor/src/org/netbeans/modules/css/editor/indent/CssIndentTask.java b/ide/css.editor/src/org/netbeans/modules/css/editor/indent/CssIndentTask.java index e6bf851..dfb9977 100644 --- a/ide/css.editor/src/org/netbeans/modules/css/editor/indent/CssIndentTask.java +++ b/ide/css.editor/src/org/netbeans/modules/css/editor/indent/CssIndentTask.java @@ -21,6 +21,7 @@ package org.netbeans.modules.css.editor.indent; import java.util.ArrayList; import java.util.Collections; import java.util.List; +import java.util.LinkedList; import javax.swing.text.BadLocationException; import org.netbeans.api.lexer.Token; import org.netbeans.api.lexer.TokenHierarchy; @@ -94,37 +95,76 @@ public class CssIndentTask implements IndentTask, Lookup.Provider { .get(context.document()) .embeddedTokenSequences(reg.getStartOffset(), false); TokenSequence ts = tslist.get(tslist.size() - 1); -int blockLevel = determineBlocklevel(ts); + +LinkedList blockLevel = new LinkedList<>(); + +// Initialize blockLevel with the indentions created by the +// outside context +ts.moveStart(); +Token lastToken = null; +if (ts.moveNext()) { +List> tokenSequences = TokenHierarchy +.get(context.document()) +.tokenSequenceList(ts.languagePath(), 0, ts.offset()); +OUTER: +for (TokenSequence tsX : tokenSequences) { +tsX.moveStart(); +while (tsX.moveNext()) { +if (tsX.offset() >= ts.offset()) { +break OUTER; +} +if (tsX.token().id() == CssTokenId.LBRACE) { +if (isStringInterpolation(lastToken)) { +// The sequence "@{" and "#{" lead in a strong interpolation +// in LESS (former) and SCSS (latter). +blockLevel.addLast(IndentType.NONE); +} else { +blockLevel.addLast(IndentType.BLOCK); +} +} else if (tsX.token().id() == CssTokenId.RBRACE) { +blockLevel.pollLast(); +} +lastToken = tsX.token(); +} +} +} + ts.moveStart(); while(ts.moveNext()) { if(ts.token().id() == CssTokenId.LBRACE) { -blockLevel++; -// Ensure, that there is a newline after an block opening -// brace "{" -
[jira] [Commented] (NETBEANS-6194) Renaming folder inside PSR-4 directory don't use refactor feature
[ https://issues.apache.org/jira/browse/NETBEANS-6194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17443046#comment-17443046 ] frkinta commented on NETBEANS-6194: --- [https://docs.microsoft.com/en-us/visualstudio/ide/reference/sync-namespace-and-folder-name?view=vs-2019|https://docs.microsoft.com/en-us/visualstudio/ide/reference/sync-namespace-and-folder-name?view=vs-2019] > Renaming folder inside PSR-4 directory don't use refactor feature > - > > Key: NETBEANS-6194 > URL: https://issues.apache.org/jira/browse/NETBEANS-6194 > Project: NetBeans > Issue Type: Bug > Components: php - Editor, php - Refactoring >Affects Versions: 12.4, 12.5 >Reporter: frkinta >Priority: Minor > > {code:php} > declare(strict_types=1); > namespace Issue\PDO; > class ClassTest > { > public function __construct(string $a) > { > error_log($a); > } > public function doNothingAction(): Class2 > { > throw new \Exception('nothing to do'); > } > } > {code} > The code above is a file inside a PSR-4 project located in directory > "src/PDO". If I try to rename the folder "PDO" to "MySQL", a refactor dialog > open, "PDO" is changed to new name and nothing else happen ("Rename Without > Refactoring" checkbox not checked). > What I expect is the refactoring feature to > * change namespaces all over the project from "Issue\PDO" to "Issue\MySQL" > * adjust "use" statements > after renaming "PDO" to "MySQL". -- This message was sent by Atlassian Jira (v8.20.1#820001) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists