[jira] [Commented] (NETBEANS-3992) Fields are shown as unused even there are possible getters and setters via lombok

2020-09-22 Thread Laszlo Kishalmi (Jira)


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

Laszlo Kishalmi commented on NETBEANS-3992:
---

At first sight it looks good after applying the patch for NETBEANS-4762

> Fields are shown as unused even there are possible getters and setters via 
> lombok
> -
>
> Key: NETBEANS-3992
> URL: https://issues.apache.org/jira/browse/NETBEANS-3992
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Compiler, java - Editor, projects - Gradle
>Affects Versions: 12.0, 11.3
> Environment: OpenJDK 11.0.2
> Gradle 6.2.2, 6.4.1
>Reporter: Netbeans User 2019
>Assignee: Laszlo Kishalmi
>Priority: Major
>  Labels: Lombok
> Attachments: nbissuesproject.zip
>
>
> fields that have getters and setters via lombok is presented as unsued since 
> 11.3 (no such issue has been seen in 11.2)



--
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-4833) Gradle project not triggering Lombok annotation processor anymore in 12.1

2020-09-22 Thread Laszlo Kishalmi (Jira)


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

Laszlo Kishalmi resolved NETBEANS-4833.
---
Resolution: Duplicate

Working on it. Not a simple case unfortunately.

> Gradle project not triggering Lombok annotation processor anymore in 12.1
> -
>
> Key: NETBEANS-4833
> URL: https://issues.apache.org/jira/browse/NETBEANS-4833
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 12.1
> Environment: Ubuntu 18.04, openjdk 13, Netbeans 12.1, gradle 6.6.1 
> (installed by Netbeans)
>Reporter: Nicolas Vanhoren
>Priority: Major
>
> h3. Description:
> A Gradle project using the Lombok plugin doesn't seem to trigger the 
> annotation processor anymore in 12.1. It worked with previous version.
> h3. How to reproduce:
>  * In 12.1, create a new "Java Application" project using Gradle.
>  * Alter the gradle file, \{{build.gradle, }}to add a reference to the lombok 
> gradle plugin:
>  
> {code:java}
> plugins {
> id "io.freefair.lombok" version "5.2.1"
> }
> apply plugin: 'java'
> apply plugin: 'jacoco'
> apply plugin: 'application'mainClassName = 'gradleproject1.Main'
> repositories {
> jcenter()
> }
> dependencies {
> testImplementation 'junit:junit:4.13'
> }
> {code}
>  
>  
>  * Alter the \{{Main.java}} file to make some use of a Lombok annotation:
>  
> {code:java}
> /*
>  * To change this license header, choose License Headers in Project 
> Properties.
>  * To change this template file, choose Tools | Templates
>  * and open the template in the editor.
>  */
> package gradleproject1;
> import lombok.Getter;
> /**
>  *
>  * @author nico
>  */
> public class Main {
> 
> public static class TestClass {
> @Getter String testString = "hello";
> }
> /**
>  * @param args the command line arguments
>  */
> public static void main(String[] args) {
> TestClass x = new TestClass();
> System.out.println(x.getTestString());
> }
> 
> }
> {code}
>  
> Result: The project compiles and executes correctly. Unfortunately Netbeans 
> identifies this line as an error:
> {code:java}
>  System.out.println(x.getTestString());
> {code}
> This is due to the Lombok annotation processor not being run before checking 
> for errors.
> By looking at the properties of the project we can see that the lombok jar 
> file was correctly detected by Netbeans as it can be found in the "Sources > 
> Main > Annotation Processors" tab. But somehow it doesn't seem to be used by 
> Netbeans before checking errors.
> I tested the same procedure in 12.0 and it doesn't yield the same problem. 
> That line is not identified as a compilation error.
> I do not know any kind of workaround for this problem. For normal Netbeans 
> projects it is possible to manually enable the annotation processor in the 
> properties of the project but it is not possible for Gradle projects. This 
> basically makes Netbeans 12.1 unsuitable to work on projects using both 
> Gradle and Lombok as far a I know. (If someone find a workaround I would be 
> very glad.)
> h3. Expected Behavior:
> That Netbeans properly triggers the annotation processor with Gradle 
> projects, like it does in versions prior to 12.1.
>  



--
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-3903) Netbeans 11.2 fails to detect successful startup of Tomcat 9.0.31

2020-09-22 Thread Daniel Yacob (Jira)


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

Daniel Yacob commented on NETBEANS-3903:


Hi, I'm using Mac OS 10.15.2 with Netbeans 8.2 and Tomcat 8.15. For me the 
solution of  [~bitsink] was the best (I downloaded the jar and paste in .app). 
Thank you bro [~bitsink] you are a master (*) Thnks.

> Netbeans 11.2 fails to detect successful startup of Tomcat 9.0.31
> -
>
> Key: NETBEANS-3903
> URL: https://issues.apache.org/jira/browse/NETBEANS-3903
> Project: NetBeans
>  Issue Type: Bug
>  Components: debugger - Java, serverplugins - Tomcat
>Affects Versions: 11.0, 11.1, 11.2, 11.3
> Environment: MacOS Catalina 10.15.3
> Netbeans 11.2 (using installer)
> Netbeans 11.0 (using binary download)
> Tomcat 9.0.31 (via brew and binary download)
> Tomcat 8.5.51 (via brew and binary download)
>Reporter: Rob
>Assignee: Nam Nguyen
>Priority: Blocker
>  Labels: ide, pull-request-available, server, tomcat, tomcat9
> Fix For: 12.0
>
> Attachments: Netbeans11.0-terminal-output.log, Screenshot 2020-02-20 
> at 21.17.36.png, apache-tomcat-9.0.31.zip, netbeans11-2-log.zip, 
> org-netbeans-modules-tomcat5.jar
>
>  Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> * Example code - Not applicable 
>  * Example project - Not applicable
>  * Attachments...
>  * Screenshot 1) Console shows success whilst minutes later Netbeans error 
> appears
>  * Screenshot 2) Netbeans 11.0 terminal output included and I suspect it the 
> same error in Netbeans 11.2
>  * apache-tomcat-9.0.31.zip that includes the tomcat configuration and logs 
> for one attempt of running Tomcat (all looks good here) 
>  * netbeans11-2-log for the latest Netbeans 11.2 logs
>  * Exact steps 1. Add tomcat server 2. Run tomcat server, 3. Confirm it 
> starts (browser success and console logs success), 4. Minutes later error 
> appears to say "Starting of Tomcat Failed"
>  * Actual results - Tomcat should start than then Netbeans would usually 
> deploy the app, but Netbeans fails to detect Tomcat started successfully.  No 
> projects required to recreate this - starting Tomcat up from within the 
> Netbeans IDE shows success in the console <500ms but then reports as failed 
> minutes later
>  * Expected results - Netbeans should continue to deploy an application once 
> detecting tomcat has started
>  * NetBeans version - Multiple (11.0, 11.2)
>  * JDK version JDK 13 Open JDK and Sun JDK
>  * OS (Environment) Mac Catalina 10.15.3
> Deeper information follows...
> I installed the pre-requisite Open JDK 13 first.
> I had Netbeans 8.2 running on my iMac and decided to install the latest 
> version of Netbeans on my MacBook Pro running Mac OS Catalina 10.15.3, so I 
> opted for the latest NetBeans 11.2 installer.  
> I was surprised to see no 'customise' option during installation to choose 
> Tomcat (which is what used to happen in Netbeans 8.2).  Once Netbeans 11.2 
> was running I went to the server tab and added Tomcat 9.0.31 by pointing to 
> the Tomcat brew installation folder and added a private configuration folder, 
> I entered a new user 'ide' and password and ticked the 'Create user if does 
> not exist'.
> I can confirm it created the user in the tomcat-users.xml file correctly.
> ```
> 
> http://tomcat.apache.org/xml"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="1.0" 
> xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd">
>  
>  
>  
>   username="ide"/>
> 
> ```
> When I right-click on the server and choose "Start", or "Start in debug mode" 
> tomcat starts and it is confirmed as starting within 317 milliseconds.
> I can load a browser manually and navigate to 
> [http://localhost:8084/manager/status] and confirm Tomcat is indeed running.
> ```
> NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED 
> --add-opens=java.base/java.io=ALL-UNNAMED 
> --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
> 20-Feb-2020 21:09:28.879 INFO [main] 
> org.apache.catalina.startup.VersionLoggerListener.log Server version name: 
> Apache Tomcat/9.0.31
> 20-Feb-2020 21:09:28.883 INFO [main] 
> org.apache.catalina.startup.VersionLoggerListener.log Server built: Feb 5 
> 2020 19:32:12 UTC
> 20-Feb-2020 21:09:28.883 INFO [main] 
> org.apache.catalina.startup.VersionLoggerListener.log Server version number: 
> 9.0.31.0
> 20-Feb-2020 21:09:28.883 INFO [main] 
> org.apache.catalina.startup.VersionLoggerListener.log OS Name: Mac OS X
> 20-Feb-2020 21:09:28.883 INFO [main] 
> org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.15.3
> 20-Feb-2020 21:09:28.883 INFO [main] 
> org.apache.catalina.startup.VersionLoggerListener.log

[jira] [Updated] (NETBEANS-4664) Upgrade JDBC PostgreSQL from 42.2.10 to 42.2.16

2020-09-22 Thread Jose (Jira)


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

Jose updated NETBEANS-4664:
---
Fix Version/s: (was: Next)
   12.2
Affects Version/s: (was: 12.0.1)
   (was: 12.0)
  Summary: Upgrade JDBC PostgreSQL from 42.2.10 to 42.2.16  (was: 
Upgrade JDBC PostgreSQL from 42.2.10 to 42.2.14)

> Upgrade JDBC PostgreSQL from 42.2.10 to 42.2.16
> ---
>
> Key: NETBEANS-4664
> URL: https://issues.apache.org/jira/browse/NETBEANS-4664
> Project: NetBeans
>  Issue Type: Improvement
>  Components: projects - Libraries
>Affects Versions: 12.1
>Reporter: Jose
>Assignee: Jose
>Priority: Minor
> Fix For: 12.2
>
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> Notes:
> - Fix security vulnerability CVE-2020-13692 
> - Other bug fixes
> [Releases Notes|https://jdbc.postgresql.org/documentation/changelog.html]



--
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] [Closed] (NETBEANS-4284) cleanup a bunch of raw type warnings..

2020-09-22 Thread Brad Walker (Jira)


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

Brad Walker closed NETBEANS-4284.
-

fixed and merged..

> cleanup a bunch of raw type warnings..
> --
>
> Key: NETBEANS-4284
> URL: https://issues.apache.org/jira/browse/NETBEANS-4284
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: Next
>Reporter: Brad Walker
>Assignee: Brad Walker
>Priority: Major
> Fix For: 12.2
>
>  Time Spent: 2h 10m
>  Remaining Estimate: 0h
>
> Cleanup a bunch of raw type warnings related to the following..
>[repeat] 
> /home/bwalker/src/netbeans/platform/openide.util/src/org/openide/util/MapFormat.java:91:
>  warning: [rawtypes] found raw type: Map
>[repeat] public MapFormat(Map arguments) {
>[repeat]  ^
>[repeat]   missing type arguments for generic class Map
>[repeat]   where K,V are type-variables:
>[repeat] K extends Object declared in interface Map
>[repeat] V extends Object declared in interface Map
>[repeat] 
> /home/bwalker/src/netbeans/platform/openide.util/src/org/openide/util/MapFormat.java:105:
>  warning: [rawtypes]
> Also, updated Iterator types..



--
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-4284) cleanup a bunch of raw type warnings..

2020-09-22 Thread Brad Walker (Jira)


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

Brad Walker resolved NETBEANS-4284.
---
Fix Version/s: 12.2
   Resolution: Fixed

> cleanup a bunch of raw type warnings..
> --
>
> Key: NETBEANS-4284
> URL: https://issues.apache.org/jira/browse/NETBEANS-4284
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: Next
>Reporter: Brad Walker
>Assignee: Brad Walker
>Priority: Major
> Fix For: 12.2
>
>  Time Spent: 2h 10m
>  Remaining Estimate: 0h
>
> Cleanup a bunch of raw type warnings related to the following..
>[repeat] 
> /home/bwalker/src/netbeans/platform/openide.util/src/org/openide/util/MapFormat.java:91:
>  warning: [rawtypes] found raw type: Map
>[repeat] public MapFormat(Map arguments) {
>[repeat]  ^
>[repeat]   missing type arguments for generic class Map
>[repeat]   where K,V are type-variables:
>[repeat] K extends Object declared in interface Map
>[repeat] V extends Object declared in interface Map
>[repeat] 
> /home/bwalker/src/netbeans/platform/openide.util/src/org/openide/util/MapFormat.java:105:
>  warning: [rawtypes]
> Also, updated Iterator types..



--
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 (dd427e8 -> a04b626)

2020-09-22 Thread matthiasblaesing
This is an automated email from the ASF dual-hosted git repository.

matthiasblaesing pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git.


from dd427e8  Merge pull request #2359 from 
sdedic/bugfix/commit-validation/positions-codefixes
 new 0196791  General Availability for javadoc 15
 new 5ae825f  [NETBEANS-4284] - cleanup a bunch of raw type warnings..
 new a04b626  Merge pull request #2114 from BradWalker/clean_raw_types

The 4373 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../glassfish/eecommon/api/JDBCDriverDeployHelper.java   |  4 ++--
 .../payara/eecommon/api/JDBCDriverDeployHelper.java  |  2 +-
 .../modules/groovy/editor/api/PathFinderVisitor.java |  2 +-
 .../editor/api/parser/GroovyVirtualSourceProvider.java   |  7 ---
 .../src/org/netbeans/editor/ext/ExtFormatter.java|  4 ++--
 .../modules/editor/CompletionJListOperator.java  |  6 +++---
 .../parsing/impl/indexing/ClusteredIndexables.java   |  2 +-
 .../modules/parsing/lucene/SimpleDocumentIndexCache.java | 10 +-
 .../modules/debugger/ui/actions/ConnectAction.java   |  2 +-
 .../org/netbeans/modules/xml/dtd/grammar/DTDGrammar.java |  2 +-
 ide/xml.tax/nbproject/project.properties |  2 +-
 .../xml/tax/beans/editor/TreeNodeFilterCustomEditor.java |  6 +++---
 ide/xml/src/org/netbeans/modules/xml/XMLDataLoader.java  |  8 
 .../modules/xml/actions/CollectSystemAction.java |  4 ++--
 .../org/netbeans/modules/ant/debugger/AntDebugger.java   |  2 +-
 .../netbeans/modules/beans/IdxPropertyPatternPanel.java  |  2 +-
 .../modules/dbschema/jdbcimpl/SchemaElementImpl.java |  2 +-
 .../java/freeform/ui/SourceFoldersWizardPanel.java   |  2 +-
 .../libraries/J2SELibrarySourceLevelQueryImpl.java   |  2 +-
 .../platformdefinition/FileObjectPropertyEditor.java |  2 +-
 .../platformdefinition/J2SEPlatformCustomizer.java   |  7 ---
 .../netbeans/modules/java/openjdk/jtreg/JPDAStart.java   |  4 ++--
 .../modules/maven/codegen/ExclusionGenerator.java|  4 ++--
 .../grammar/effpom/LocationAwareMavenXpp3Writer.java | 16 
 .../tools/java/generator/SAXGeneratorAbstractPanel.java  |  2 +-
 .../core/multiview/MultiViewCloneableTopComponent.java   |  2 +-
 .../src/org/netbeans/core/multiview/MultiViewPeer.java   |  2 +-
 .../netbeans/core/startup/layers/LocalFileSystemEx.java  |  6 +++---
 .../modules/openide/explorer/ExternalDragAndDrop.java|  2 +-
 .../openide/explorer/TabbedContainerBridgeImpl.java  |  2 +-
 .../src/org/openide/filesystems/MultiFileObject.java |  2 +-
 .../src/org/openide/filesystems/StreamPool.java  |  2 +-
 .../openide.nodes/src/org/openide/nodes/NodeLookup.java  |  2 +-
 .../src/org/openide/options/VetoSystemOption.java|  6 +++---
 .../openide.util/src/org/openide/util/MapFormat.java |  2 +-
 platform/openide.util/src/org/openide/util/Task.java |  2 +-
 .../src/org/openide/util/TopologicalSortException.java   |  2 +-
 .../modules/templates/actions/TemplatesAction.java   |  2 +-
 .../modules/profiler/oql/engine/api/impl/Snapshot.java   |  2 +-
 .../projectsupport/AbstractProjectLookupProvider.java|  2 +-
 .../netbeans/modules/websvc/saas/codegen/util/Util.java  |  2 +-
 41 files changed, 74 insertions(+), 72 deletions(-)


-
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 (bb0e205 -> dd427e8)

2020-09-22 Thread sdedic
This is an automated email from the ASF dual-hosted git repository.

sdedic pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git.


from bb0e205  Merge pull request #2383 from pepness/ga-javadoc-15
 new b54371e  Positions always generated for MIME services; Ordering does 
not warn if all files or all dirs are unordered.
 new b75cef3  Do not generate spurious MAXINT positions.
 new 3a191af  Lambda causes linkage error during tests (nbjavac not present 
on cp).
 new c008c90  Do not fail on smaller cluster.configs
 new 3dad068  Fixed checking in Ordering, relaxed only for configfs
 new 15447f6  Add webcommon for testing
 new 8e5d5d1  Collect more errors in one run.
 new 69bdff9  Various fixes that may affect code. Pending review: 
NETBEANS-4826, NETBEANS-4828
 new 5b7f336  Ignore java failures for eager modules as well.
 new 4c86f65  Removed unused performance.* modules.
 new 166f1d1  Added release to cpplite
 new b3bbf3c  Wait for Updater to finish before testing.
 new dd427e8  Merge pull request #2359 from 
sdedic/bugfix/commit-validation/positions-codefixes

The 4370 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../cpplite.kit}/release/VERSION.txt   |  2 +-
 enterprise/j2ee.kit/nbproject/project.xml  |  7 +++
 .../modules/javaee/api/javaee-endorsed-api-6.0.xml |  3 +-
 .../dd/loader/PayaraDescriptorDataObject.java  | 10 +++-
 .../modules/groovy/editor/resources/layer.xml  |  7 ++-
 .../testrunner/TestCreatorProviderProcessor.java   | 13 -
 .../java/project/ui/NewJavaFileWizardIterator.java | 32 +++
 nbbuild/cluster.properties |  8 +--
 .../netbeans/core/startup/ConsistencyVerifier.java |  2 +-
 .../validation/ValidateLayerConsistencyTest.java   | 55 --
 .../core/validation/ValidateModulesTest.java   |  2 +-
 .../core/validation/ValidateNbinstTest.java|  4 ++
 .../src/org/openide/filesystems/Ordering.java  | 19 +-
 .../src/org/openide/filesystems/OrderingTest.java  | 67 ++
 .../jquery/JQueryCodeCompletionSelectorsTest.java  |  4 +-
 15 files changed, 185 insertions(+), 50 deletions(-)
 copy {groovy/groovy.kit => cpplite/cpplite.kit}/release/VERSION.txt (99%)


-
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] [Closed] (NETBEANS-4835) Find in projects stuck in searching

2020-09-22 Thread Alessandro Riggio (Jira)


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

Alessandro Riggio closed NETBEANS-4835.
---
Resolution: Not A Problem

> Find in projects stuck in searching
> ---
>
> Key: NETBEANS-4835
> URL: https://issues.apache.org/jira/browse/NETBEANS-4835
> Project: NetBeans
>  Issue Type: Bug
> Environment: Product Version: Apache NetBeans IDE 12.0
> Updates: NetBeans IDE is updated to version NetBeans 8.2 Patch 2
> Java: 13.0.3; OpenJDK 64-Bit Server VM 13.0.3+3-Ubuntu-1ubuntu2
> Runtime: OpenJDK Runtime Environment 13.0.3+3-Ubuntu-1ubuntu2
> System: Linux version 5.4.0-48-generic running on amd64; UTF-8; it_IT (nb)
>Reporter: Alessandro Riggio
>Priority: Minor
>
> Every time I try to find in projects the search run forever without producing 
> results.



--
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-4461) Debug PHP file doesn't work

2020-09-22 Thread Florian Rival (Jira)


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

Florian Rival commented on NETBEANS-4461:
-

It also works with Netbeans v12.0 now, I think the problem comes from the 
setting import from Netbeans 11.

What I've done : export configuration from Netebans 12.1 and import it in 
Netbeasn 12.0 and now v12.0 works also as expected.

Except that the first time I can't set breakpoint by clicking on a line but 
adding a breakpoint through breakpoint windows works well and after that it 
works again by clicking on the line. 

There are some strange behaviour.

> Debug PHP file doesn't work
> ---
>
> Key: NETBEANS-4461
> URL: https://issues.apache.org/jira/browse/NETBEANS-4461
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Debugger
>Affects Versions: 12.0.1
> Environment: Netbeans 12.0
> PHP 7.1
> Chromium Version 83.0.4103.61
> NetBeans Connector 1.1.5
>Reporter: Florian Rival
>Assignee: Junichi Yamamoto
>Priority: Major
>  Labels: Debug
> Attachments: netbeans.tgz
>
>
> I have a problem when trying to debug a PHP file, I set a breakpoint, start 
> the debugger, the debugger stop at the breakpoint, so far, so good.
> Then I press F8 to step over and instead of going to the next line of code, 
> the debugger  step over the current class  and stop at the line next to class 
> call.
> Sample PHP class call :
> {code:java}
> $res .= 
> DG\MvSkin\ViewHelpers\Format\DateViewHelper::renderStatic($arguments); 
> $res .= '';
> {code}
>  
> The class (simplified) :
> {code:java}
> namespace DG\MvSkin\ViewHelpers\Format;
> class DateViewHelper extends AbstractViewHelper implements CompilableInterface
> { 
> public static function renderStatic(array $arguments)
> {
> $date = $arguments['date'];
> $format = $arguments['format'];
> 
> return $date;
> }
> }{code}
>  
> If I set a breakpoint at line *$date = $arguments['date'];* and then press F8 
> (it's the same with F7 or Ctrl+F7) then the debugger jump to line : *$res .= 
> '';*  instead of next line.
> Note : the function is a public static function.
> The same use case works well with previous version (Netbeans 11).
>  
>  



--
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-4461) Debug PHP file doesn't work

2020-09-22 Thread Geertjan Wielenga (Jira)


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

Geertjan Wielenga resolved NETBEANS-4461.
-
Resolution: Implemented

Thanks, good to hear.

> Debug PHP file doesn't work
> ---
>
> Key: NETBEANS-4461
> URL: https://issues.apache.org/jira/browse/NETBEANS-4461
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Debugger
>Affects Versions: 12.0.1
> Environment: Netbeans 12.0
> PHP 7.1
> Chromium Version 83.0.4103.61
> NetBeans Connector 1.1.5
>Reporter: Florian Rival
>Assignee: Junichi Yamamoto
>Priority: Major
>  Labels: Debug
> Attachments: netbeans.tgz
>
>
> I have a problem when trying to debug a PHP file, I set a breakpoint, start 
> the debugger, the debugger stop at the breakpoint, so far, so good.
> Then I press F8 to step over and instead of going to the next line of code, 
> the debugger  step over the current class  and stop at the line next to class 
> call.
> Sample PHP class call :
> {code:java}
> $res .= 
> DG\MvSkin\ViewHelpers\Format\DateViewHelper::renderStatic($arguments); 
> $res .= '';
> {code}
>  
> The class (simplified) :
> {code:java}
> namespace DG\MvSkin\ViewHelpers\Format;
> class DateViewHelper extends AbstractViewHelper implements CompilableInterface
> { 
> public static function renderStatic(array $arguments)
> {
> $date = $arguments['date'];
> $format = $arguments['format'];
> 
> return $date;
> }
> }{code}
>  
> If I set a breakpoint at line *$date = $arguments['date'];* and then press F8 
> (it's the same with F7 or Ctrl+F7) then the debugger jump to line : *$res .= 
> '';*  instead of next line.
> Note : the function is a public static function.
> The same use case works well with previous version (Netbeans 11).
>  
>  



--
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-4461) Debug PHP file doesn't work

2020-09-22 Thread Florian Rival (Jira)


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

Florian Rival commented on NETBEANS-4461:
-

I tried with Netbeans 12.1 and debug mode works as expected.

> Debug PHP file doesn't work
> ---
>
> Key: NETBEANS-4461
> URL: https://issues.apache.org/jira/browse/NETBEANS-4461
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Debugger
>Affects Versions: 12.0.1
> Environment: Netbeans 12.0
> PHP 7.1
> Chromium Version 83.0.4103.61
> NetBeans Connector 1.1.5
>Reporter: Florian Rival
>Assignee: Junichi Yamamoto
>Priority: Major
>  Labels: Debug
> Attachments: netbeans.tgz
>
>
> I have a problem when trying to debug a PHP file, I set a breakpoint, start 
> the debugger, the debugger stop at the breakpoint, so far, so good.
> Then I press F8 to step over and instead of going to the next line of code, 
> the debugger  step over the current class  and stop at the line next to class 
> call.
> Sample PHP class call :
> {code:java}
> $res .= 
> DG\MvSkin\ViewHelpers\Format\DateViewHelper::renderStatic($arguments); 
> $res .= '';
> {code}
>  
> The class (simplified) :
> {code:java}
> namespace DG\MvSkin\ViewHelpers\Format;
> class DateViewHelper extends AbstractViewHelper implements CompilableInterface
> { 
> public static function renderStatic(array $arguments)
> {
> $date = $arguments['date'];
> $format = $arguments['format'];
> 
> return $date;
> }
> }{code}
>  
> If I set a breakpoint at line *$date = $arguments['date'];* and then press F8 
> (it's the same with F7 or Ctrl+F7) then the debugger jump to line : *$res .= 
> '';*  instead of next line.
> Note : the function is a public static function.
> The same use case works well with previous version (Netbeans 11).
>  
>  



--
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-4835) Find in projects stuck in searching

2020-09-22 Thread Alessandro Riggio (Jira)
Alessandro Riggio created NETBEANS-4835:
---

 Summary: Find in projects stuck in searching
 Key: NETBEANS-4835
 URL: https://issues.apache.org/jira/browse/NETBEANS-4835
 Project: NetBeans
  Issue Type: Bug
 Environment: Product Version: Apache NetBeans IDE 12.0
Updates: NetBeans IDE is updated to version NetBeans 8.2 Patch 2
Java: 13.0.3; OpenJDK 64-Bit Server VM 13.0.3+3-Ubuntu-1ubuntu2
Runtime: OpenJDK Runtime Environment 13.0.3+3-Ubuntu-1ubuntu2
System: Linux version 5.4.0-48-generic running on amd64; UTF-8; it_IT (nb)

Reporter: Alessandro Riggio


Every time I try to find in projects the search run forever without producing 
results.



--
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-4834) Bug in editor

2020-09-22 Thread Junichi Yamamoto (Jira)


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

Junichi Yamamoto updated NETBEANS-4834:
---
Component/s: web - HTML Editor

> Bug in editor
> -
>
> Key: NETBEANS-4834
> URL: https://issues.apache.org/jira/browse/NETBEANS-4834
> Project: NetBeans
>  Issue Type: Bug
>  Components: web - HTML Editor
>Affects Versions: 11.2
> Environment: Windows 10
>Reporter: Gianluca Demarinis
>Priority: Minor
>
> Open a new file PHP and write only this code:
> https://api.whatsapp.com/send?text= "See%20This%20http://www.site.org/index.php?id{color:#de350b}={color}"; . $id; 
> ?>">Share
> Now try to auto-indent or indent manually using TAB. ---> Null Pointer 
> Exception
> The problem seems to be the *{color:#ff}={color}* {color:#172b4d}symbol; 
> {color}
> Restart NetBeans (if Exception appears), remove the red = and try to indent – 
> > all is OK.
>  
> java.lang.NullPointerExceptionjava.lang.NullPointerException at 
> org.netbeans.lib.html.lexer.HtmlLexer.equals(HtmlLexer.java:1557) at 
> org.netbeans.lib.html.lexer.HtmlLexer.nextToken(HtmlLexer.java:1051) at 
> org.netbeans.lib.lexer.LexerInputOperation.nextToken(LexerInputOperation.java:191)
>  at 
> org.netbeans.lib.lexer.BatchTokenList.tokenOrEmbeddingImpl(BatchTokenList.java:171)
>  at org.netbeans.lib.lexer.BatchTokenList.tokenCount(BatchTokenList.java:122) 
> at org.netbeans.api.lexer.TokenSequence.moveEnd(TokenSequence.java:607) at 
> org.netbeans.modules.html.editor.lib.ElementsParser.forTokenIndex(ElementsParser.java:106)
>  at 
> org.netbeans.modules.html.editor.lib.api.elements.ElementsIterator.(ElementsIterator.java:63)
>  at 
> org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.(SyntaxAnalyzer.java:57)
>  at 
> org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.create(SyntaxAnalyzer.java:53)
>  at 
> org.netbeans.modules.html.editor.indent.HtmlIndenter.(HtmlIndenter.java:63)
>  at 
> org.netbeans.modules.html.editor.indent.HtmlIndentTask.(HtmlIndentTask.java:40)
>  at 
> org.netbeans.modules.html.editor.indent.HtmlIndentTaskFactory.createTask(HtmlIndentTaskFactory.java:32)
>  at 
> org.netbeans.modules.editor.indent.TaskHandler$MimeItem.createTask(TaskHandler.java:531)
>  at 
> org.netbeans.modules.editor.indent.TaskHandler.addItem(TaskHandler.java:315) 
> at 
> org.netbeans.modules.editor.indent.TaskHandler.collectTasks(TaskHandler.java:133)
>  at 
> org.netbeans.modules.editor.indent.IndentImpl.indentLock(IndentImpl.java:136) 
> at org.netbeans.modules.editor.indent.api.Indent.lock(Indent.java:91) at 
> org.netbeans.editor.BaseKit$InsertTabAction.actionPerformed(BaseKit.java:1728)
>  at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:322) at 
> javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1663) at 
> javax.swing.JComponent.processKeyBinding(JComponent.java:2882) at 
> javax.swing.JComponent.processKeyBindings(JComponent.java:2929) at 
> javax.swing.JComponent.processKeyEvent(JComponent.java:2845) at 
> java.awt.Component.processEvent(Component.java:6310) at 
> java.awt.Container.processEvent(Container.java:2236) at 
> java.awt.Component.dispatchEventImpl(Component.java:4889) at 
> java.awt.Container.dispatchEventImpl(Container.java:2294) at 
> java.awt.Component.dispatchEvent(Component.java:4711) at 
> java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954) 
> at 
> java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:806)
>  at 
> java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1074)
>  at 
> java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:945)
>  at 
> java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:771)
>  at java.awt.Component.dispatchEventImpl(Component.java:4760) at 
> java.awt.Container.dispatchEventImpl(Container.java:2294) at 
> java.awt.Window.dispatchEventImpl(Window.java:2746) at 
> java.awt.Component.dispatchEvent(Component.java:4711) at 
> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) at 
> java.awt.EventQueue.access$500(EventQueue.java:97) at 
> java.awt.EventQueue$3.run(EventQueue.java:709) at 
> java.awt.EventQueue$3.run(EventQueue.java:703) at 
> java.security.AccessController.doPrivileged(Native Method) at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
>  at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
>  at java.awt.EventQueue$4.run(EventQueue.java:731) at 
> java.awt.EventQueue$4.run(EventQueue.java:729) at 
> java.security.AccessController.doPrivileged(Native Method) at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Protectio

[jira] [Updated] (NETBEANS-4834) Bug in editor

2020-09-22 Thread Gianluca Demarinis (Jira)


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

Gianluca Demarinis updated NETBEANS-4834:
-
Description: 
Open a new file PHP and write only this code:

https://api.whatsapp.com/send?text=http://www.site.org/index.php?id{color:#de350b}={color}"; . $id; 
?>">Share

Now try to auto-indent or indent manually using TAB. ---> Null Pointer Exception

The problem seems to be the *{color:#ff}={color}* {color:#172b4d}symbol; 
{color}

Restart NetBeans (if Exception appears), remove the red = and try to indent – > 
all is OK.

 

java.lang.NullPointerExceptionjava.lang.NullPointerException at 
org.netbeans.lib.html.lexer.HtmlLexer.equals(HtmlLexer.java:1557) at 
org.netbeans.lib.html.lexer.HtmlLexer.nextToken(HtmlLexer.java:1051) at 
org.netbeans.lib.lexer.LexerInputOperation.nextToken(LexerInputOperation.java:191)
 at 
org.netbeans.lib.lexer.BatchTokenList.tokenOrEmbeddingImpl(BatchTokenList.java:171)
 at org.netbeans.lib.lexer.BatchTokenList.tokenCount(BatchTokenList.java:122) 
at org.netbeans.api.lexer.TokenSequence.moveEnd(TokenSequence.java:607) at 
org.netbeans.modules.html.editor.lib.ElementsParser.forTokenIndex(ElementsParser.java:106)
 at 
org.netbeans.modules.html.editor.lib.api.elements.ElementsIterator.(ElementsIterator.java:63)
 at 
org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.(SyntaxAnalyzer.java:57)
 at 
org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.create(SyntaxAnalyzer.java:53)
 at 
org.netbeans.modules.html.editor.indent.HtmlIndenter.(HtmlIndenter.java:63)
 at 
org.netbeans.modules.html.editor.indent.HtmlIndentTask.(HtmlIndentTask.java:40)
 at 
org.netbeans.modules.html.editor.indent.HtmlIndentTaskFactory.createTask(HtmlIndentTaskFactory.java:32)
 at 
org.netbeans.modules.editor.indent.TaskHandler$MimeItem.createTask(TaskHandler.java:531)
 at 
org.netbeans.modules.editor.indent.TaskHandler.addItem(TaskHandler.java:315) at 
org.netbeans.modules.editor.indent.TaskHandler.collectTasks(TaskHandler.java:133)
 at 
org.netbeans.modules.editor.indent.IndentImpl.indentLock(IndentImpl.java:136) 
at org.netbeans.modules.editor.indent.api.Indent.lock(Indent.java:91) at 
org.netbeans.editor.BaseKit$InsertTabAction.actionPerformed(BaseKit.java:1728) 
at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:322) at 
javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1663) at 
javax.swing.JComponent.processKeyBinding(JComponent.java:2882) at 
javax.swing.JComponent.processKeyBindings(JComponent.java:2929) at 
javax.swing.JComponent.processKeyEvent(JComponent.java:2845) at 
java.awt.Component.processEvent(Component.java:6310) at 
java.awt.Container.processEvent(Container.java:2236) at 
java.awt.Component.dispatchEventImpl(Component.java:4889) at 
java.awt.Container.dispatchEventImpl(Container.java:2294) at 
java.awt.Component.dispatchEvent(Component.java:4711) at 
java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954) 
at 
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:806)
 at 
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1074)
 at 
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:945)
 at 
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:771)
 at java.awt.Component.dispatchEventImpl(Component.java:4760) at 
java.awt.Container.dispatchEventImpl(Container.java:2294) at 
java.awt.Window.dispatchEventImpl(Window.java:2746) at 
java.awt.Component.dispatchEvent(Component.java:4711) at 
java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) at 
java.awt.EventQueue.access$500(EventQueue.java:97) at 
java.awt.EventQueue$3.run(EventQueue.java:709) at 
java.awt.EventQueue$3.run(EventQueue.java:703) at 
java.security.AccessController.doPrivileged(Native Method) at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
 at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
 at java.awt.EventQueue$4.run(EventQueue.java:731) at 
java.awt.EventQueue$4.run(EventQueue.java:729) at 
java.security.AccessController.doPrivileged(Native Method) at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) at 
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)[catch]
 at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
 at 
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) 
at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThre

[jira] [Updated] (NETBEANS-4834) Bug in editor

2020-09-22 Thread Gianluca Demarinis (Jira)


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

Gianluca Demarinis updated NETBEANS-4834:
-
Description: 
Write only this code

https://api.whatsapp.com/send?text=http://www.site.org/index.php?id{color:#de350b}={color}"; . $id; 
?>">Share

now try to auto-indent or indent using TAB. ---> Null Pointer Exception

The problem seems to be the *{color:#ff}={color}* 
{color:#172b4d}symbol{color}

 

 

 

java.lang.NullPointerExceptionjava.lang.NullPointerException at 
org.netbeans.lib.html.lexer.HtmlLexer.equals(HtmlLexer.java:1557) at 
org.netbeans.lib.html.lexer.HtmlLexer.nextToken(HtmlLexer.java:1051) at 
org.netbeans.lib.lexer.LexerInputOperation.nextToken(LexerInputOperation.java:191)
 at 
org.netbeans.lib.lexer.BatchTokenList.tokenOrEmbeddingImpl(BatchTokenList.java:171)
 at org.netbeans.lib.lexer.BatchTokenList.tokenCount(BatchTokenList.java:122) 
at org.netbeans.api.lexer.TokenSequence.moveEnd(TokenSequence.java:607) at 
org.netbeans.modules.html.editor.lib.ElementsParser.forTokenIndex(ElementsParser.java:106)
 at 
org.netbeans.modules.html.editor.lib.api.elements.ElementsIterator.(ElementsIterator.java:63)
 at 
org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.(SyntaxAnalyzer.java:57)
 at 
org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.create(SyntaxAnalyzer.java:53)
 at 
org.netbeans.modules.html.editor.indent.HtmlIndenter.(HtmlIndenter.java:63)
 at 
org.netbeans.modules.html.editor.indent.HtmlIndentTask.(HtmlIndentTask.java:40)
 at 
org.netbeans.modules.html.editor.indent.HtmlIndentTaskFactory.createTask(HtmlIndentTaskFactory.java:32)
 at 
org.netbeans.modules.editor.indent.TaskHandler$MimeItem.createTask(TaskHandler.java:531)
 at 
org.netbeans.modules.editor.indent.TaskHandler.addItem(TaskHandler.java:315) at 
org.netbeans.modules.editor.indent.TaskHandler.collectTasks(TaskHandler.java:133)
 at 
org.netbeans.modules.editor.indent.IndentImpl.indentLock(IndentImpl.java:136) 
at org.netbeans.modules.editor.indent.api.Indent.lock(Indent.java:91) at 
org.netbeans.editor.BaseKit$InsertTabAction.actionPerformed(BaseKit.java:1728) 
at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:322) at 
javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1663) at 
javax.swing.JComponent.processKeyBinding(JComponent.java:2882) at 
javax.swing.JComponent.processKeyBindings(JComponent.java:2929) at 
javax.swing.JComponent.processKeyEvent(JComponent.java:2845) at 
java.awt.Component.processEvent(Component.java:6310) at 
java.awt.Container.processEvent(Container.java:2236) at 
java.awt.Component.dispatchEventImpl(Component.java:4889) at 
java.awt.Container.dispatchEventImpl(Container.java:2294) at 
java.awt.Component.dispatchEvent(Component.java:4711) at 
java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954) 
at 
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:806)
 at 
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1074)
 at 
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:945)
 at 
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:771)
 at java.awt.Component.dispatchEventImpl(Component.java:4760) at 
java.awt.Container.dispatchEventImpl(Container.java:2294) at 
java.awt.Window.dispatchEventImpl(Window.java:2746) at 
java.awt.Component.dispatchEvent(Component.java:4711) at 
java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) at 
java.awt.EventQueue.access$500(EventQueue.java:97) at 
java.awt.EventQueue$3.run(EventQueue.java:709) at 
java.awt.EventQueue$3.run(EventQueue.java:703) at 
java.security.AccessController.doPrivileged(Native Method) at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
 at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
 at java.awt.EventQueue$4.run(EventQueue.java:731) at 
java.awt.EventQueue$4.run(EventQueue.java:729) at 
java.security.AccessController.doPrivileged(Native Method) at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) at 
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)[catch]
 at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
 at 
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) 
at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at 
java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

 

 

 

  was:
Write only this code

http:/

[jira] [Updated] (NETBEANS-4834) Bug in editor

2020-09-22 Thread Gianluca Demarinis (Jira)


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

Gianluca Demarinis updated NETBEANS-4834:
-
Description: 
Write only this code

http://www.site.com?q{color:#ff}={color}"; . 
$x; ?>">

now try to auto-indent or indent using TAB. ---> Null Pointer Exception

The problem seems to be the *{color:#ff}={color}* 
{color:#172b4d}symbol{color}

 

This code seems to be usefull but is used here:

 

https://api.whatsapp.com/send?text=http://www.site.org/index.php?id="; . $id; ?>">Share

 

 

 

java.lang.NullPointerExceptionjava.lang.NullPointerException at 
org.netbeans.lib.html.lexer.HtmlLexer.equals(HtmlLexer.java:1557) at 
org.netbeans.lib.html.lexer.HtmlLexer.nextToken(HtmlLexer.java:1051) at 
org.netbeans.lib.lexer.LexerInputOperation.nextToken(LexerInputOperation.java:191)
 at 
org.netbeans.lib.lexer.BatchTokenList.tokenOrEmbeddingImpl(BatchTokenList.java:171)
 at org.netbeans.lib.lexer.BatchTokenList.tokenCount(BatchTokenList.java:122) 
at org.netbeans.api.lexer.TokenSequence.moveEnd(TokenSequence.java:607) at 
org.netbeans.modules.html.editor.lib.ElementsParser.forTokenIndex(ElementsParser.java:106)
 at 
org.netbeans.modules.html.editor.lib.api.elements.ElementsIterator.(ElementsIterator.java:63)
 at 
org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.(SyntaxAnalyzer.java:57)
 at 
org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.create(SyntaxAnalyzer.java:53)
 at 
org.netbeans.modules.html.editor.indent.HtmlIndenter.(HtmlIndenter.java:63)
 at 
org.netbeans.modules.html.editor.indent.HtmlIndentTask.(HtmlIndentTask.java:40)
 at 
org.netbeans.modules.html.editor.indent.HtmlIndentTaskFactory.createTask(HtmlIndentTaskFactory.java:32)
 at 
org.netbeans.modules.editor.indent.TaskHandler$MimeItem.createTask(TaskHandler.java:531)
 at 
org.netbeans.modules.editor.indent.TaskHandler.addItem(TaskHandler.java:315) at 
org.netbeans.modules.editor.indent.TaskHandler.collectTasks(TaskHandler.java:133)
 at 
org.netbeans.modules.editor.indent.IndentImpl.indentLock(IndentImpl.java:136) 
at org.netbeans.modules.editor.indent.api.Indent.lock(Indent.java:91) at 
org.netbeans.editor.BaseKit$InsertTabAction.actionPerformed(BaseKit.java:1728) 
at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:322) at 
javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1663) at 
javax.swing.JComponent.processKeyBinding(JComponent.java:2882) at 
javax.swing.JComponent.processKeyBindings(JComponent.java:2929) at 
javax.swing.JComponent.processKeyEvent(JComponent.java:2845) at 
java.awt.Component.processEvent(Component.java:6310) at 
java.awt.Container.processEvent(Container.java:2236) at 
java.awt.Component.dispatchEventImpl(Component.java:4889) at 
java.awt.Container.dispatchEventImpl(Container.java:2294) at 
java.awt.Component.dispatchEvent(Component.java:4711) at 
java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954) 
at 
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:806)
 at 
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1074)
 at 
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:945)
 at 
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:771)
 at java.awt.Component.dispatchEventImpl(Component.java:4760) at 
java.awt.Container.dispatchEventImpl(Container.java:2294) at 
java.awt.Window.dispatchEventImpl(Window.java:2746) at 
java.awt.Component.dispatchEvent(Component.java:4711) at 
java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) at 
java.awt.EventQueue.access$500(EventQueue.java:97) at 
java.awt.EventQueue$3.run(EventQueue.java:709) at 
java.awt.EventQueue$3.run(EventQueue.java:703) at 
java.security.AccessController.doPrivileged(Native Method) at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
 at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
 at java.awt.EventQueue$4.run(EventQueue.java:731) at 
java.awt.EventQueue$4.run(EventQueue.java:729) at 
java.security.AccessController.doPrivileged(Native Method) at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) at 
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)[catch]
 at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
 at 
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) 
at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at 
java.awt.EventD

[jira] [Updated] (NETBEANS-4834) Bug in editor

2020-09-22 Thread Gianluca Demarinis (Jira)


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

Gianluca Demarinis updated NETBEANS-4834:
-
Description: 
Write only this code

http://www.site.com?q*{color:#ff}={color}*"; . 
$x; ?>">

now try to auto-indent or indent using TAB. ---> Null Pointer Exception

The problem seems to be the *{color:#ff}={color}* 
{color:#172b4d}symbol{color}

 

This code seems to be usefull but is used here:

 

https://api.whatsapp.com/send?text=See%20this%20link|https://api.whatsapp.com/send?text=See]%0A%0Ahttp://www.site.com/element.php?id=">
 Whatsapp
 

 

 

 

java.lang.NullPointerExceptionjava.lang.NullPointerException at 
org.netbeans.lib.html.lexer.HtmlLexer.equals(HtmlLexer.java:1557) at 
org.netbeans.lib.html.lexer.HtmlLexer.nextToken(HtmlLexer.java:1051) at 
org.netbeans.lib.lexer.LexerInputOperation.nextToken(LexerInputOperation.java:191)
 at 
org.netbeans.lib.lexer.BatchTokenList.tokenOrEmbeddingImpl(BatchTokenList.java:171)
 at org.netbeans.lib.lexer.BatchTokenList.tokenCount(BatchTokenList.java:122) 
at org.netbeans.api.lexer.TokenSequence.moveEnd(TokenSequence.java:607) at 
org.netbeans.modules.html.editor.lib.ElementsParser.forTokenIndex(ElementsParser.java:106)
 at 
org.netbeans.modules.html.editor.lib.api.elements.ElementsIterator.(ElementsIterator.java:63)
 at 
org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.(SyntaxAnalyzer.java:57)
 at 
org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.create(SyntaxAnalyzer.java:53)
 at 
org.netbeans.modules.html.editor.indent.HtmlIndenter.(HtmlIndenter.java:63)
 at 
org.netbeans.modules.html.editor.indent.HtmlIndentTask.(HtmlIndentTask.java:40)
 at 
org.netbeans.modules.html.editor.indent.HtmlIndentTaskFactory.createTask(HtmlIndentTaskFactory.java:32)
 at 
org.netbeans.modules.editor.indent.TaskHandler$MimeItem.createTask(TaskHandler.java:531)
 at 
org.netbeans.modules.editor.indent.TaskHandler.addItem(TaskHandler.java:315) at 
org.netbeans.modules.editor.indent.TaskHandler.collectTasks(TaskHandler.java:133)
 at 
org.netbeans.modules.editor.indent.IndentImpl.indentLock(IndentImpl.java:136) 
at org.netbeans.modules.editor.indent.api.Indent.lock(Indent.java:91) at 
org.netbeans.editor.BaseKit$InsertTabAction.actionPerformed(BaseKit.java:1728) 
at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:322) at 
javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1663) at 
javax.swing.JComponent.processKeyBinding(JComponent.java:2882) at 
javax.swing.JComponent.processKeyBindings(JComponent.java:2929) at 
javax.swing.JComponent.processKeyEvent(JComponent.java:2845) at 
java.awt.Component.processEvent(Component.java:6310) at 
java.awt.Container.processEvent(Container.java:2236) at 
java.awt.Component.dispatchEventImpl(Component.java:4889) at 
java.awt.Container.dispatchEventImpl(Container.java:2294) at 
java.awt.Component.dispatchEvent(Component.java:4711) at 
java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954) 
at 
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:806)
 at 
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1074)
 at 
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:945)
 at 
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:771)
 at java.awt.Component.dispatchEventImpl(Component.java:4760) at 
java.awt.Container.dispatchEventImpl(Container.java:2294) at 
java.awt.Window.dispatchEventImpl(Window.java:2746) at 
java.awt.Component.dispatchEvent(Component.java:4711) at 
java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) at 
java.awt.EventQueue.access$500(EventQueue.java:97) at 
java.awt.EventQueue$3.run(EventQueue.java:709) at 
java.awt.EventQueue$3.run(EventQueue.java:703) at 
java.security.AccessController.doPrivileged(Native Method) at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
 at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
 at java.awt.EventQueue$4.run(EventQueue.java:731) at 
java.awt.EventQueue$4.run(EventQueue.java:729) at 
java.security.AccessController.doPrivileged(Native Method) at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) at 
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)[catch]
 at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
 at 
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) 
at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at 
java.awt.EventDispatchThre

[jira] [Updated] (NETBEANS-4834) Bug in editor

2020-09-22 Thread Gianluca Demarinis (Jira)


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

Gianluca Demarinis updated NETBEANS-4834:
-
Description: 
Write only this code

http://www.site.com?q{color:#ff}={color}"; . 
$x; ?>">

now try to auto-indent or indent using TAB. ---> Null Pointer Exception

The problem seems to be the *{color:#ff}={color}* 
{color:#172b4d}symbol{color}

 

This code seems to be usefull but is used here:

 

https://api.whatsapp.com/send?text=See%20this%20link|https://api.whatsapp.com/send?text=See]%0A%0Ahttp://www.site.com/element.php?id=">
 Whatsapp
 

 

 

 

java.lang.NullPointerExceptionjava.lang.NullPointerException at 
org.netbeans.lib.html.lexer.HtmlLexer.equals(HtmlLexer.java:1557) at 
org.netbeans.lib.html.lexer.HtmlLexer.nextToken(HtmlLexer.java:1051) at 
org.netbeans.lib.lexer.LexerInputOperation.nextToken(LexerInputOperation.java:191)
 at 
org.netbeans.lib.lexer.BatchTokenList.tokenOrEmbeddingImpl(BatchTokenList.java:171)
 at org.netbeans.lib.lexer.BatchTokenList.tokenCount(BatchTokenList.java:122) 
at org.netbeans.api.lexer.TokenSequence.moveEnd(TokenSequence.java:607) at 
org.netbeans.modules.html.editor.lib.ElementsParser.forTokenIndex(ElementsParser.java:106)
 at 
org.netbeans.modules.html.editor.lib.api.elements.ElementsIterator.(ElementsIterator.java:63)
 at 
org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.(SyntaxAnalyzer.java:57)
 at 
org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.create(SyntaxAnalyzer.java:53)
 at 
org.netbeans.modules.html.editor.indent.HtmlIndenter.(HtmlIndenter.java:63)
 at 
org.netbeans.modules.html.editor.indent.HtmlIndentTask.(HtmlIndentTask.java:40)
 at 
org.netbeans.modules.html.editor.indent.HtmlIndentTaskFactory.createTask(HtmlIndentTaskFactory.java:32)
 at 
org.netbeans.modules.editor.indent.TaskHandler$MimeItem.createTask(TaskHandler.java:531)
 at 
org.netbeans.modules.editor.indent.TaskHandler.addItem(TaskHandler.java:315) at 
org.netbeans.modules.editor.indent.TaskHandler.collectTasks(TaskHandler.java:133)
 at 
org.netbeans.modules.editor.indent.IndentImpl.indentLock(IndentImpl.java:136) 
at org.netbeans.modules.editor.indent.api.Indent.lock(Indent.java:91) at 
org.netbeans.editor.BaseKit$InsertTabAction.actionPerformed(BaseKit.java:1728) 
at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:322) at 
javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1663) at 
javax.swing.JComponent.processKeyBinding(JComponent.java:2882) at 
javax.swing.JComponent.processKeyBindings(JComponent.java:2929) at 
javax.swing.JComponent.processKeyEvent(JComponent.java:2845) at 
java.awt.Component.processEvent(Component.java:6310) at 
java.awt.Container.processEvent(Container.java:2236) at 
java.awt.Component.dispatchEventImpl(Component.java:4889) at 
java.awt.Container.dispatchEventImpl(Container.java:2294) at 
java.awt.Component.dispatchEvent(Component.java:4711) at 
java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954) 
at 
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:806)
 at 
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1074)
 at 
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:945)
 at 
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:771)
 at java.awt.Component.dispatchEventImpl(Component.java:4760) at 
java.awt.Container.dispatchEventImpl(Container.java:2294) at 
java.awt.Window.dispatchEventImpl(Window.java:2746) at 
java.awt.Component.dispatchEvent(Component.java:4711) at 
java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) at 
java.awt.EventQueue.access$500(EventQueue.java:97) at 
java.awt.EventQueue$3.run(EventQueue.java:709) at 
java.awt.EventQueue$3.run(EventQueue.java:703) at 
java.security.AccessController.doPrivileged(Native Method) at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
 at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
 at java.awt.EventQueue$4.run(EventQueue.java:731) at 
java.awt.EventQueue$4.run(EventQueue.java:729) at 
java.security.AccessController.doPrivileged(Native Method) at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) at 
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)[catch]
 at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
 at 
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) 
at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at 
java.awt.EventDispatchThread

[jira] [Updated] (NETBEANS-4834) Bug in editor

2020-09-22 Thread Gianluca Demarinis (Jira)


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

Gianluca Demarinis updated NETBEANS-4834:
-
Priority: Minor  (was: Major)

> Bug in editor
> -
>
> Key: NETBEANS-4834
> URL: https://issues.apache.org/jira/browse/NETBEANS-4834
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.2
> Environment: Windows 10
>Reporter: Gianluca Demarinis
>Priority: Minor
>
> Write only this code
> http://www.site.com?q*{color:#FF}={color}*"; 
> . $x; ?>">a>
> now try to auto-indent or indent using TAB. ---> Null Pointer Exception
> The problem seems to be the *{color:#FF}={color}* 
> {color:#172b4d}symbol{color}
>  
> This code seems to be usefull but is used here:
>  
>  href="[https://api.whatsapp.com/send?text=See%20this%20link|https://api.whatsapp.com/send?text=See]%0A%0Ahttp://www.site.com/element.php?id=  echo $id; ?>">
>  Whatsapp
>  
>  
>  
>  
> java.lang.NullPointerExceptionjava.lang.NullPointerException at 
> org.netbeans.lib.html.lexer.HtmlLexer.equals(HtmlLexer.java:1557) at 
> org.netbeans.lib.html.lexer.HtmlLexer.nextToken(HtmlLexer.java:1051) at 
> org.netbeans.lib.lexer.LexerInputOperation.nextToken(LexerInputOperation.java:191)
>  at 
> org.netbeans.lib.lexer.BatchTokenList.tokenOrEmbeddingImpl(BatchTokenList.java:171)
>  at org.netbeans.lib.lexer.BatchTokenList.tokenCount(BatchTokenList.java:122) 
> at org.netbeans.api.lexer.TokenSequence.moveEnd(TokenSequence.java:607) at 
> org.netbeans.modules.html.editor.lib.ElementsParser.forTokenIndex(ElementsParser.java:106)
>  at 
> org.netbeans.modules.html.editor.lib.api.elements.ElementsIterator.(ElementsIterator.java:63)
>  at 
> org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.(SyntaxAnalyzer.java:57)
>  at 
> org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.create(SyntaxAnalyzer.java:53)
>  at 
> org.netbeans.modules.html.editor.indent.HtmlIndenter.(HtmlIndenter.java:63)
>  at 
> org.netbeans.modules.html.editor.indent.HtmlIndentTask.(HtmlIndentTask.java:40)
>  at 
> org.netbeans.modules.html.editor.indent.HtmlIndentTaskFactory.createTask(HtmlIndentTaskFactory.java:32)
>  at 
> org.netbeans.modules.editor.indent.TaskHandler$MimeItem.createTask(TaskHandler.java:531)
>  at 
> org.netbeans.modules.editor.indent.TaskHandler.addItem(TaskHandler.java:315) 
> at 
> org.netbeans.modules.editor.indent.TaskHandler.collectTasks(TaskHandler.java:133)
>  at 
> org.netbeans.modules.editor.indent.IndentImpl.indentLock(IndentImpl.java:136) 
> at org.netbeans.modules.editor.indent.api.Indent.lock(Indent.java:91) at 
> org.netbeans.editor.BaseKit$InsertTabAction.actionPerformed(BaseKit.java:1728)
>  at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:322) at 
> javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1663) at 
> javax.swing.JComponent.processKeyBinding(JComponent.java:2882) at 
> javax.swing.JComponent.processKeyBindings(JComponent.java:2929) at 
> javax.swing.JComponent.processKeyEvent(JComponent.java:2845) at 
> java.awt.Component.processEvent(Component.java:6310) at 
> java.awt.Container.processEvent(Container.java:2236) at 
> java.awt.Component.dispatchEventImpl(Component.java:4889) at 
> java.awt.Container.dispatchEventImpl(Container.java:2294) at 
> java.awt.Component.dispatchEvent(Component.java:4711) at 
> java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954) 
> at 
> java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:806)
>  at 
> java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1074)
>  at 
> java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:945)
>  at 
> java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:771)
>  at java.awt.Component.dispatchEventImpl(Component.java:4760) at 
> java.awt.Container.dispatchEventImpl(Container.java:2294) at 
> java.awt.Window.dispatchEventImpl(Window.java:2746) at 
> java.awt.Component.dispatchEvent(Component.java:4711) at 
> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) at 
> java.awt.EventQueue.access$500(EventQueue.java:97) at 
> java.awt.EventQueue$3.run(EventQueue.java:709) at 
> java.awt.EventQueue$3.run(EventQueue.java:703) at 
> java.security.AccessController.doPrivileged(Native Method) at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
>  at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
>  at java.awt.EventQueue$4.run(EventQueue.java:731) at 
> java.awt.EventQueue$4.run(EventQueue.java:729) at 
> java.security.AccessController.doPrivileged(Native Method) at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Pro

[jira] [Created] (NETBEANS-4834) Bug in editor

2020-09-22 Thread Gianluca Demarinis (Jira)
Gianluca Demarinis created NETBEANS-4834:


 Summary: Bug in editor
 Key: NETBEANS-4834
 URL: https://issues.apache.org/jira/browse/NETBEANS-4834
 Project: NetBeans
  Issue Type: Bug
Affects Versions: 11.2
 Environment: Windows 10
Reporter: Gianluca Demarinis


Write only this code

http://www.site.com?q*{color:#FF}={color}*"; . 
$x; ?>">a>

now try to auto-indent or indent using TAB. ---> Null Pointer Exception

The problem seems to be the *{color:#FF}={color}* 
{color:#172b4d}symbol{color}

 

This code seems to be usefull but is used here:

 

https://api.whatsapp.com/send?text=See%20this%20link|https://api.whatsapp.com/send?text=See]%0A%0Ahttp://www.site.com/element.php?id=">
 Whatsapp
 

 

 

 

java.lang.NullPointerExceptionjava.lang.NullPointerException at 
org.netbeans.lib.html.lexer.HtmlLexer.equals(HtmlLexer.java:1557) at 
org.netbeans.lib.html.lexer.HtmlLexer.nextToken(HtmlLexer.java:1051) at 
org.netbeans.lib.lexer.LexerInputOperation.nextToken(LexerInputOperation.java:191)
 at 
org.netbeans.lib.lexer.BatchTokenList.tokenOrEmbeddingImpl(BatchTokenList.java:171)
 at org.netbeans.lib.lexer.BatchTokenList.tokenCount(BatchTokenList.java:122) 
at org.netbeans.api.lexer.TokenSequence.moveEnd(TokenSequence.java:607) at 
org.netbeans.modules.html.editor.lib.ElementsParser.forTokenIndex(ElementsParser.java:106)
 at 
org.netbeans.modules.html.editor.lib.api.elements.ElementsIterator.(ElementsIterator.java:63)
 at 
org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.(SyntaxAnalyzer.java:57)
 at 
org.netbeans.modules.html.editor.lib.api.SyntaxAnalyzer.create(SyntaxAnalyzer.java:53)
 at 
org.netbeans.modules.html.editor.indent.HtmlIndenter.(HtmlIndenter.java:63)
 at 
org.netbeans.modules.html.editor.indent.HtmlIndentTask.(HtmlIndentTask.java:40)
 at 
org.netbeans.modules.html.editor.indent.HtmlIndentTaskFactory.createTask(HtmlIndentTaskFactory.java:32)
 at 
org.netbeans.modules.editor.indent.TaskHandler$MimeItem.createTask(TaskHandler.java:531)
 at 
org.netbeans.modules.editor.indent.TaskHandler.addItem(TaskHandler.java:315) at 
org.netbeans.modules.editor.indent.TaskHandler.collectTasks(TaskHandler.java:133)
 at 
org.netbeans.modules.editor.indent.IndentImpl.indentLock(IndentImpl.java:136) 
at org.netbeans.modules.editor.indent.api.Indent.lock(Indent.java:91) at 
org.netbeans.editor.BaseKit$InsertTabAction.actionPerformed(BaseKit.java:1728) 
at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:322) at 
javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1663) at 
javax.swing.JComponent.processKeyBinding(JComponent.java:2882) at 
javax.swing.JComponent.processKeyBindings(JComponent.java:2929) at 
javax.swing.JComponent.processKeyEvent(JComponent.java:2845) at 
java.awt.Component.processEvent(Component.java:6310) at 
java.awt.Container.processEvent(Container.java:2236) at 
java.awt.Component.dispatchEventImpl(Component.java:4889) at 
java.awt.Container.dispatchEventImpl(Container.java:2294) at 
java.awt.Component.dispatchEvent(Component.java:4711) at 
java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954) 
at 
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:806)
 at 
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1074)
 at 
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:945)
 at 
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:771)
 at java.awt.Component.dispatchEventImpl(Component.java:4760) at 
java.awt.Container.dispatchEventImpl(Container.java:2294) at 
java.awt.Window.dispatchEventImpl(Window.java:2746) at 
java.awt.Component.dispatchEvent(Component.java:4711) at 
java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) at 
java.awt.EventQueue.access$500(EventQueue.java:97) at 
java.awt.EventQueue$3.run(EventQueue.java:709) at 
java.awt.EventQueue$3.run(EventQueue.java:703) at 
java.security.AccessController.doPrivileged(Native Method) at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
 at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
 at java.awt.EventQueue$4.run(EventQueue.java:731) at 
java.awt.EventQueue$4.run(EventQueue.java:729) at 
java.security.AccessController.doPrivileged(Native Method) at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) at 
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)[catch]
 at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
 at 
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) 
at 
java.awt.EventDispatchTh

[jira] [Updated] (NETBEANS-4833) Gradle project not triggering Lombok annotation processor anymore in 12.1

2020-09-22 Thread Nicolas Vanhoren (Jira)


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

Nicolas Vanhoren updated NETBEANS-4833:
---
Description: 
h3. Description:

A Gradle project using the Lombok plugin doesn't seem to trigger the annotation 
processor anymore in 12.1. It worked with previous version.
h3. How to reproduce:
 * In 12.1, create a new "Java Application" project using Gradle.
 * Alter the gradle file, \{{build.gradle, }}to add a reference to the lombok 
gradle plugin:

 
{code:java}
plugins {
id "io.freefair.lombok" version "5.2.1"
}
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'application'mainClassName = 'gradleproject1.Main'

repositories {
jcenter()
}
dependencies {
testImplementation 'junit:junit:4.13'
}
{code}
 

 
 * Alter the \{{Main.java }}file to make some use of a Lombok annotation:

 
{code:java}
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package gradleproject1;

import lombok.Getter;
/**
 *
 * @author nico
 */
public class Main {

public static class TestClass {
@Getter String testString = "hello";
}
/**
 * @param args the command line arguments
 */
public static void main(String[] args) {
TestClass x = new TestClass();
System.out.println(x.getTestString());
}

}

{code}
 

Result: The project compiles and executes correctly. Unfortunately Netbeans 
identifies this line as an error:
{code:java}
 System.out.println(x.getTestString());
{code}
This is due to the Lombok annotation processor not being run before checking 
for errors.

By looking at the properties of the project we can see that the lombok jar file 
was correctly detected by Netbeans as it can be found in the "Sources > Main > 
Annotation Processors" tab. But somehow it doesn't seem to be used by Netbeans 
before checking errors.

The same procedure in 12.0 doesn't yield the same problem. That line is not 
identified as a compilation error.

I do not know any kind of workaround for this problem. For normal Netbeans 
projects it is possible to manually enable the annotation processor in the 
properties of the project but it is not possible for Gradle projects. This 
basically makes Netbeans 12.1 unsuitable to work on projects using both Gradle 
and Lombok as far a I know. (If someone find a workaround I would be very glad.)
h3. Expected Behavior:

That Netbeans properly triggers the annotation processor with Gradle projects, 
like it does in versions prior to 12.1.

 

  was:
h3. Description:

A Gradle project using the Lombok plugin doesn't seem to trigger the annotation 
processor anymore in 12.1. It worked with previous version.
h3. How to reproduce:
 * In 12.1, create a new "Java Application" project using Gradle.
 * Alter the gradle file, {{build.gradle, }}to add a reference to the lombok 
gradle plugin:

 
{code:java}
plugins {
id "io.freefair.lombok" version "5.2.1"
}
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'application'mainClassName = 'gradleproject1.Main'

repositories {
jcenter()
}
dependencies {
testImplementation 'junit:junit:4.13'
}
{code}
 

 
 * Alter the {{Main.java }}file to make some use of a Lombok annotation:

 
{code:java}
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package gradleproject1;

import lombok.Getter;
/**
 *
 * @author nico
 */
public class Main {

public static class TestClass {
@Getter String testString = "hello";
}
/**
 * @param args the command line arguments
 */
public static void main(String[] args) {
TestClass x = new TestClass();
System.out.println(x.getTestString());
}

}

{code}
 

Result: The project compiles and executes correctly. Unfortunately Netbeans 
identifies this line as an error:
{code:java}
 System.out.println(x.getTestString());
{code}
This is due to the Lombok annotation processor not being run before checking 
for errors.

By looking at the properties of the project we can see that the lombok jar file 
was correctly detected by Netbeans as it can be found in the "Sources > Main > 
Annotation Processors" tab. But somehow it doesn't seem to be used by Netbeans 
before checking errors.

I do not know any kind of workaround for this problem. For normal Netbeans 
projects it is possible to manually enable the annotation processor in the 
properties of the project but it is not possible for Gradle projects. This 
basically makes Netbeans 12.1 unsuitable to work on projects using both Gradle 
and Lombok as far a I know. (If someone find a workaround I would be very glad.)
h3. Expected Behavior:

That Netbeans properly triggers the a

[jira] [Comment Edited] (NETBEANS-4762) Gradle support broken recognizing of Lombok generation

2020-09-22 Thread Nicolas Vanhoren (Jira)


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

Nicolas Vanhoren edited comment on NETBEANS-4762 at 9/22/20, 8:59 AM:
--

This bug report shows a way to reproduce a similar problem with an empty 
project (and Gradle):

https://issues.apache.org/jira/browse/NETBEANS-4833


was (Author: nicolas-van):
This bug report shows a way to reproduce a similar problem with an empty 
project:

https://issues.apache.org/jira/browse/NETBEANS-4833

> Gradle support broken recognizing of Lombok generation
> --
>
> Key: NETBEANS-4762
> URL: https://issues.apache.org/jira/browse/NETBEANS-4762
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Hints & Annotations, editor - Navigation, 
> java - Compiler, java - Editor, java - Hints, java - Navigation, platform - 
> Action Items, projects - Gradle
>Affects Versions: 12.1
> Environment: OpenJDK 11.0.2
> Gradle 6.4.1, 6.6.1
> Lombok 1.18.12
>Reporter: Netbeans User 2019
>Assignee: Laszlo Kishalmi
>Priority: Critical
>  Labels: Lombok, annotation-processor, gradle
>
> After upgrade to Apache Netbeans 12.1 it seems that every class uses Lombok 
> annotation or even class that depends on such class leads to red look (action 
> items, items in tree of "Projects", particular file in editor). It is tried 
> every prior ways to remove it, but without success.
> So tried like
> - close project and open
> - reload project
> - clean and build
> - scan for external changes
> - modification of file
> - creation new file in same folder and remove
> - removal of Apache Netbeans cache (under option --cachedir)
> - removal of caches/6.4.1 under gradle home
> - removal caches .gradle under project
> - switching new option about trusted to always
> - using new version of Gradle 6.6.1
> - using lombok plugin for gradle instead of manually steps via dependencies
> So it is still red even clean and build works well.
> So it is really not possible use that version of Apache Netbeans with 
> hundreds of false 
> errors.
> So I have to revert back to 12.0 where I can get that back to non-red after 
> clean and build of root project and reopening of projects or by creation of 
> files under particular folder and remove it.
> In context:
> Tested on multi project (root with subprojects).



--
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-4833) Gradle project not triggering Lombok annotation processor anymore in 12.1

2020-09-22 Thread Nicolas Vanhoren (Jira)


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

Nicolas Vanhoren commented on NETBEANS-4833:


I modified the description a little after testing in 12.0 and confirming it 
doesn't have the bug.

> Gradle project not triggering Lombok annotation processor anymore in 12.1
> -
>
> Key: NETBEANS-4833
> URL: https://issues.apache.org/jira/browse/NETBEANS-4833
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 12.1
> Environment: Ubuntu 18.04, openjdk 13, Netbeans 12.1, gradle 6.6.1 
> (installed by Netbeans)
>Reporter: Nicolas Vanhoren
>Priority: Major
>
> h3. Description:
> A Gradle project using the Lombok plugin doesn't seem to trigger the 
> annotation processor anymore in 12.1. It worked with previous version.
> h3. How to reproduce:
>  * In 12.1, create a new "Java Application" project using Gradle.
>  * Alter the gradle file, \{{build.gradle, }}to add a reference to the lombok 
> gradle plugin:
>  
> {code:java}
> plugins {
> id "io.freefair.lombok" version "5.2.1"
> }
> apply plugin: 'java'
> apply plugin: 'jacoco'
> apply plugin: 'application'mainClassName = 'gradleproject1.Main'
> repositories {
> jcenter()
> }
> dependencies {
> testImplementation 'junit:junit:4.13'
> }
> {code}
>  
>  
>  * Alter the \{{Main.java}} file to make some use of a Lombok annotation:
>  
> {code:java}
> /*
>  * To change this license header, choose License Headers in Project 
> Properties.
>  * To change this template file, choose Tools | Templates
>  * and open the template in the editor.
>  */
> package gradleproject1;
> import lombok.Getter;
> /**
>  *
>  * @author nico
>  */
> public class Main {
> 
> public static class TestClass {
> @Getter String testString = "hello";
> }
> /**
>  * @param args the command line arguments
>  */
> public static void main(String[] args) {
> TestClass x = new TestClass();
> System.out.println(x.getTestString());
> }
> 
> }
> {code}
>  
> Result: The project compiles and executes correctly. Unfortunately Netbeans 
> identifies this line as an error:
> {code:java}
>  System.out.println(x.getTestString());
> {code}
> This is due to the Lombok annotation processor not being run before checking 
> for errors.
> By looking at the properties of the project we can see that the lombok jar 
> file was correctly detected by Netbeans as it can be found in the "Sources > 
> Main > Annotation Processors" tab. But somehow it doesn't seem to be used by 
> Netbeans before checking errors.
> I tested the same procedure in 12.0 and it doesn't yield the same problem. 
> That line is not identified as a compilation error.
> I do not know any kind of workaround for this problem. For normal Netbeans 
> projects it is possible to manually enable the annotation processor in the 
> properties of the project but it is not possible for Gradle projects. This 
> basically makes Netbeans 12.1 unsuitable to work on projects using both 
> Gradle and Lombok as far a I know. (If someone find a workaround I would be 
> very glad.)
> h3. Expected Behavior:
> That Netbeans properly triggers the annotation processor with Gradle 
> projects, like it does in versions prior to 12.1.
>  



--
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-4833) Gradle project not triggering Lombok annotation processor anymore in 12.1

2020-09-22 Thread Nicolas Vanhoren (Jira)


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

Nicolas Vanhoren updated NETBEANS-4833:
---
Description: 
h3. Description:

A Gradle project using the Lombok plugin doesn't seem to trigger the annotation 
processor anymore in 12.1. It worked with previous version.
h3. How to reproduce:
 * In 12.1, create a new "Java Application" project using Gradle.
 * Alter the gradle file, \{{build.gradle, }}to add a reference to the lombok 
gradle plugin:

 
{code:java}
plugins {
id "io.freefair.lombok" version "5.2.1"
}
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'application'mainClassName = 'gradleproject1.Main'

repositories {
jcenter()
}
dependencies {
testImplementation 'junit:junit:4.13'
}
{code}
 

 
 * Alter the \{{Main.java}} file to make some use of a Lombok annotation:

 
{code:java}
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package gradleproject1;

import lombok.Getter;
/**
 *
 * @author nico
 */
public class Main {

public static class TestClass {
@Getter String testString = "hello";
}
/**
 * @param args the command line arguments
 */
public static void main(String[] args) {
TestClass x = new TestClass();
System.out.println(x.getTestString());
}

}

{code}
 

Result: The project compiles and executes correctly. Unfortunately Netbeans 
identifies this line as an error:
{code:java}
 System.out.println(x.getTestString());
{code}
This is due to the Lombok annotation processor not being run before checking 
for errors.

By looking at the properties of the project we can see that the lombok jar file 
was correctly detected by Netbeans as it can be found in the "Sources > Main > 
Annotation Processors" tab. But somehow it doesn't seem to be used by Netbeans 
before checking errors.

I tested the same procedure in 12.0 and it doesn't yield the same problem. That 
line is not identified as a compilation error.

I do not know any kind of workaround for this problem. For normal Netbeans 
projects it is possible to manually enable the annotation processor in the 
properties of the project but it is not possible for Gradle projects. This 
basically makes Netbeans 12.1 unsuitable to work on projects using both Gradle 
and Lombok as far a I know. (If someone find a workaround I would be very glad.)
h3. Expected Behavior:

That Netbeans properly triggers the annotation processor with Gradle projects, 
like it does in versions prior to 12.1.

 

  was:
h3. Description:

A Gradle project using the Lombok plugin doesn't seem to trigger the annotation 
processor anymore in 12.1. It worked with previous version.
h3. How to reproduce:
 * In 12.1, create a new "Java Application" project using Gradle.
 * Alter the gradle file, \{{build.gradle, }}to add a reference to the lombok 
gradle plugin:

 
{code:java}
plugins {
id "io.freefair.lombok" version "5.2.1"
}
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'application'mainClassName = 'gradleproject1.Main'

repositories {
jcenter()
}
dependencies {
testImplementation 'junit:junit:4.13'
}
{code}
 

 
 * Alter the \{{Main.java }}file to make some use of a Lombok annotation:

 
{code:java}
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package gradleproject1;

import lombok.Getter;
/**
 *
 * @author nico
 */
public class Main {

public static class TestClass {
@Getter String testString = "hello";
}
/**
 * @param args the command line arguments
 */
public static void main(String[] args) {
TestClass x = new TestClass();
System.out.println(x.getTestString());
}

}

{code}
 

Result: The project compiles and executes correctly. Unfortunately Netbeans 
identifies this line as an error:
{code:java}
 System.out.println(x.getTestString());
{code}
This is due to the Lombok annotation processor not being run before checking 
for errors.

By looking at the properties of the project we can see that the lombok jar file 
was correctly detected by Netbeans as it can be found in the "Sources > Main > 
Annotation Processors" tab. But somehow it doesn't seem to be used by Netbeans 
before checking errors.

The same procedure in 12.0 doesn't yield the same problem. That line is not 
identified as a compilation error.

I do not know any kind of workaround for this problem. For normal Netbeans 
projects it is possible to manually enable the annotation processor in the 
properties of the project but it is not possible for Gradle projects. This 
basically makes Netbeans 12.1 unsuitable to work on projects using both Gradle 
and Lombok 

[jira] [Commented] (NETBEANS-4762) Gradle support broken recognizing of Lombok generation

2020-09-22 Thread Nicolas Vanhoren (Jira)


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

Nicolas Vanhoren commented on NETBEANS-4762:


This bug report shows a way to reproduce a similar problem with an empty 
project:

https://issues.apache.org/jira/browse/NETBEANS-4833

> Gradle support broken recognizing of Lombok generation
> --
>
> Key: NETBEANS-4762
> URL: https://issues.apache.org/jira/browse/NETBEANS-4762
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Hints & Annotations, editor - Navigation, 
> java - Compiler, java - Editor, java - Hints, java - Navigation, platform - 
> Action Items, projects - Gradle
>Affects Versions: 12.1
> Environment: OpenJDK 11.0.2
> Gradle 6.4.1, 6.6.1
> Lombok 1.18.12
>Reporter: Netbeans User 2019
>Assignee: Laszlo Kishalmi
>Priority: Critical
>  Labels: Lombok, annotation-processor, gradle
>
> After upgrade to Apache Netbeans 12.1 it seems that every class uses Lombok 
> annotation or even class that depends on such class leads to red look (action 
> items, items in tree of "Projects", particular file in editor). It is tried 
> every prior ways to remove it, but without success.
> So tried like
> - close project and open
> - reload project
> - clean and build
> - scan for external changes
> - modification of file
> - creation new file in same folder and remove
> - removal of Apache Netbeans cache (under option --cachedir)
> - removal of caches/6.4.1 under gradle home
> - removal caches .gradle under project
> - switching new option about trusted to always
> - using new version of Gradle 6.6.1
> - using lombok plugin for gradle instead of manually steps via dependencies
> So it is still red even clean and build works well.
> So it is really not possible use that version of Apache Netbeans with 
> hundreds of false 
> errors.
> So I have to revert back to 12.0 where I can get that back to non-red after 
> clean and build of root project and reopening of projects or by creation of 
> files under particular folder and remove it.
> In context:
> Tested on multi project (root with subprojects).



--
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-4833) Gradle project not triggering Lombok annotation processor anymore in 12.1

2020-09-22 Thread Nicolas Vanhoren (Jira)
Nicolas Vanhoren created NETBEANS-4833:
--

 Summary: Gradle project not triggering Lombok annotation processor 
anymore in 12.1
 Key: NETBEANS-4833
 URL: https://issues.apache.org/jira/browse/NETBEANS-4833
 Project: NetBeans
  Issue Type: Bug
Affects Versions: 12.1
 Environment: Ubuntu 18.04, openjdk 13, Netbeans 12.1, gradle 6.6.1 
(installed by Netbeans)
Reporter: Nicolas Vanhoren


h3. Description:

A Gradle project using the Lombok plugin doesn't seem to trigger the annotation 
processor anymore in 12.1. It worked with previous version.
h3. How to reproduce:
 * In 12.1, create a new "Java Application" project using Gradle.
 * Alter the gradle file, {{build.gradle, }}to add a reference to the lombok 
gradle plugin:

 
{code:java}
plugins {
id "io.freefair.lombok" version "5.2.1"
}
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'application'mainClassName = 'gradleproject1.Main'

repositories {
jcenter()
}
dependencies {
testImplementation 'junit:junit:4.13'
}
{code}
 

 
 * Alter the {{Main.java }}file to make some use of a Lombok annotation:

 
{code:java}
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package gradleproject1;

import lombok.Getter;
/**
 *
 * @author nico
 */
public class Main {

public static class TestClass {
@Getter String testString = "hello";
}
/**
 * @param args the command line arguments
 */
public static void main(String[] args) {
TestClass x = new TestClass();
System.out.println(x.getTestString());
}

}

{code}
 

Result: The project compiles and executes correctly. Unfortunately Netbeans 
identifies this line as an error:
{code:java}
 System.out.println(x.getTestString());
{code}
This is due to the Lombok annotation processor not being run before checking 
for errors.

By looking at the properties of the project we can see that the lombok jar file 
was correctly detected by Netbeans as it can be found in the "Sources > Main > 
Annotation Processors" tab. But somehow it doesn't seem to be used by Netbeans 
before checking errors.

I do not know any kind of workaround for this problem. For normal Netbeans 
projects it is possible to manually enable the annotation processor in the 
properties of the project but it is not possible for Gradle projects. This 
basically makes Netbeans 12.1 unsuitable to work on projects using both Gradle 
and Lombok as far a I know. (If someone find a workaround I would be very glad.)
h3. Expected Behavior:

That Netbeans properly triggers the annotation processor with Gradle projects, 
like it seems to do it in versions prior to 12.1.

 



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