[jira] [Updated] (NETBEANS-6493) Support for external Snippets in Netbeans IDC

2022-03-28 Thread Sandeep Mishra (Jira)


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

Sandeep Mishra updated NETBEANS-6493:
-
Description: The IDE documentation should show the External Snippet in 
Javadoc Snippet Code that has been added as a preview feature in JDK 18.  
https://openjdk.java.net/jeps/413

> Support for external Snippets in Netbeans IDC
> -
>
> Key: NETBEANS-6493
> URL: https://issues.apache.org/jira/browse/NETBEANS-6493
> Project: NetBeans
>  Issue Type: New Feature
>  Components: java - Editor, java - Source
>Reporter: Sandeep Mishra
>Assignee: Sandeep Mishra
>Priority: Major
>
> The IDE documentation should show the External Snippet in Javadoc Snippet 
> Code that has been added as a preview feature in JDK 18.  
> https://openjdk.java.net/jeps/413



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Created] (NETBEANS-6493) Support for external Snippets in Netbeans IDC

2022-03-28 Thread Sandeep Mishra (Jira)
Sandeep Mishra created NETBEANS-6493:


 Summary: Support for external Snippets in Netbeans IDC
 Key: NETBEANS-6493
 URL: https://issues.apache.org/jira/browse/NETBEANS-6493
 Project: NetBeans
  Issue Type: New Feature
  Components: java - Editor, java - Source
Reporter: Sandeep Mishra
Assignee: Sandeep Mishra






--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[netbeans-mavenutils-nb-repository-plugin] branch dependabot/maven/master/org.apache.ant-ant-1.10.12 created (now 6e9c139)

2022-03-28 Thread github-bot
This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a change to branch 
dependabot/maven/master/org.apache.ant-ant-1.10.12
in repository 
https://gitbox.apache.org/repos/asf/netbeans-mavenutils-nb-repository-plugin.git.


  at 6e9c139  Bump ant from 1.8.2 to 1.10.12

No new revisions were added by this update.

-
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: Upgrade Commons-Net from 3.6 to 3.8.0 (#3775)

2022-03-28 Thread pepness
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new d2f6617  Upgrade Commons-Net from 3.6 to 3.8.0 (#3775)
d2f6617 is described below

commit d2f661743f157b32c172994dce694e1a42319490
Author: José Contreras 
AuthorDate: Mon Mar 28 22:12:31 2022 +

Upgrade Commons-Net from 3.6 to 3.8.0 (#3775)


- Remove usage of commons.net.util.Base64 in favor of JDK java.util.Base64 
in module ide/hudson.ui
---
 ide/hudson.ui/nbproject/project.properties   | 2 +-
 ide/hudson.ui/nbproject/project.xml  | 9 -
 .../modules/hudson/ui/APITokenConnectionAuthenticator.java   | 4 ++--
 .../org/netbeans/modules/hudson/ui/actions/CreateJobTest.java| 1 +
 ide/libs.commons_net/external/binaries-list  | 2 +-
 ...commons-net-3.6-license.txt => commons-net-3.8.0-license.txt} | 4 ++--
 .../{commons-net-3.6-notice.txt => commons-net-3.8.0-notice.txt} | 0
 ide/libs.commons_net/nbproject/project.properties| 4 +---
 ide/libs.commons_net/nbproject/project.xml   | 4 ++--
 .../src/org/netbeans/libs/commons_net/Bundle.properties  | 2 +-
 .../src/org/netbeans/libs/commons_net/mf-layer.xml   | 2 +-
 11 files changed, 12 insertions(+), 22 deletions(-)

diff --git a/ide/hudson.ui/nbproject/project.properties 
b/ide/hudson.ui/nbproject/project.properties
index c0af75f..0f4ec98 100644
--- a/ide/hudson.ui/nbproject/project.properties
+++ b/ide/hudson.ui/nbproject/project.properties
@@ -14,5 +14,5 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
-javac.source=1.6
+javac.source=1.8
 javac.compilerargs=-Xlint -Xlint:-serial
diff --git a/ide/hudson.ui/nbproject/project.xml 
b/ide/hudson.ui/nbproject/project.xml
index d606d4b..7c2c259 100644
--- a/ide/hudson.ui/nbproject/project.xml
+++ b/ide/hudson.ui/nbproject/project.xml
@@ -70,15 +70,6 @@
 
 
 
-
org.netbeans.libs.commons_net
-
-
-
-2
-2.11
-
-
-
 org.netbeans.modules.diff
 
 
diff --git 
a/ide/hudson.ui/src/org/netbeans/modules/hudson/ui/APITokenConnectionAuthenticator.java
 
b/ide/hudson.ui/src/org/netbeans/modules/hudson/ui/APITokenConnectionAuthenticator.java
index 71cf127..2eed744 100644
--- 
a/ide/hudson.ui/src/org/netbeans/modules/hudson/ui/APITokenConnectionAuthenticator.java
+++ 
b/ide/hudson.ui/src/org/netbeans/modules/hudson/ui/APITokenConnectionAuthenticator.java
@@ -23,12 +23,12 @@ import java.io.IOException;
 import java.net.MalformedURLException;
 import java.net.URL;
 import java.net.URLConnection;
+import java.util.Base64;
 import java.util.HashMap;
 import java.util.Map;
 import java.util.logging.Level;
 import java.util.logging.Logger;
 import javax.swing.JPanel;
-import org.apache.commons.net.util.Base64;
 import org.netbeans.api.keyring.Keyring;
 import org.netbeans.modules.hudson.api.HudsonManager;
 import org.netbeans.modules.hudson.api.HudsonVersion;
@@ -108,7 +108,7 @@ public class APITokenConnectionAuthenticator extends JPanel 
{
 String token = new String(panel.tokField.getPassword());
 panel.tokField.setText("");
 Keyring.save(key, token.toCharArray(), 
Bundle.APITokenConnectionAuthenticator_password_description(home, username));
-BASIC_AUTH.put(home.toString(), new 
Base64(0).encodeToString((username + ':' + token).getBytes()).trim());
+BASIC_AUTH.put(home.toString(), 
Base64.getEncoder().encodeToString((username + ':' + token).getBytes()).trim());
 try {
 return conn.getURL().openConnection();
 } catch (IOException x) {
diff --git 
a/ide/hudson.ui/test/unit/src/org/netbeans/modules/hudson/ui/actions/CreateJobTest.java
 
b/ide/hudson.ui/test/unit/src/org/netbeans/modules/hudson/ui/actions/CreateJobTest.java
index 4f1a8d1..379fe98 100644
--- 
a/ide/hudson.ui/test/unit/src/org/netbeans/modules/hudson/ui/actions/CreateJobTest.java
+++ 
b/ide/hudson.ui/test/unit/src/org/netbeans/modules/hudson/ui/actions/CreateJobTest.java
@@ -53,4 +53,5 @@ public class CreateJobTest {
 assertTrue(withCustomAction.runCustomActionIfAvailable(null));
 HudsonManager.removeInstance(hi);
 }
+
 }
diff --git a/ide/libs.commons_net/external/binaries-list 
b/ide/libs.commons_net/external/binaries-list
index b044a5b..ee1a9c1 100644
--- a/ide/libs.commons_net/external/binaries-list
+++ b/ide/libs.commons_net/external/binaries-list
@@ -14,4 +14,4 @@
 

[netbeans-mavenutils-archetype-netbeans-platform-app-archetype] branch master updated (2be5da3 -> ad04ac3)

2022-03-28 Thread skygo
This is an automated email from the ASF dual-hosted git repository.

skygo pushed a change to branch master
in repository 
https://gitbox.apache.org/repos/asf/netbeans-mavenutils-archetype-netbeans-platform-app-archetype.git.


from 2be5da3  Merge pull request #5 from 
apache/dependabot/maven/master/org.apache.maven.archetype-archetype-packaging-3.2.1
 add 0e6fbbf  Bump maven-archetype-plugin from 3.1.1 to 3.2.1
 new ad04ac3  Merge pull request #4 from 
apache/dependabot/maven/master/org.apache.maven.plugins-maven-archetype-plugin-3.2.1

The 1 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:
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-
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-mavenutils-archetype-netbeans-platform-app-archetype] 01/01: Merge pull request #5 from apache/dependabot/maven/master/org.apache.maven.archetype-archetype-packaging-3.2.1

2022-03-28 Thread skygo
This is an automated email from the ASF dual-hosted git repository.

skygo pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/netbeans-mavenutils-archetype-netbeans-platform-app-archetype.git

commit 2be5da3dc0635009cbb903aae0d4f9eefa6308cd
Merge: c215c9c ad7944f
Author: Eric Barboni 
AuthorDate: Mon Mar 28 15:12:42 2022 +0200

Merge pull request #5 from 
apache/dependabot/maven/master/org.apache.maven.archetype-archetype-packaging-3.2.1

Bump archetype-packaging from 3.1.1 to 3.2.1

 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-
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-mavenutils-archetype-netbeans-platform-app-archetype] branch master updated (c215c9c -> 2be5da3)

2022-03-28 Thread skygo
This is an automated email from the ASF dual-hosted git repository.

skygo pushed a change to branch master
in repository 
https://gitbox.apache.org/repos/asf/netbeans-mavenutils-archetype-netbeans-platform-app-archetype.git.


from c215c9c  detect for archetype pom
 add ad7944f  Bump archetype-packaging from 3.1.1 to 3.2.1
 new 2be5da3  Merge pull request #5 from 
apache/dependabot/maven/master/org.apache.maven.archetype-archetype-packaging-3.2.1

The 1 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:
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-
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-mavenutils-archetype-netbeans-platform-app-archetype] 01/01: Merge pull request #4 from apache/dependabot/maven/master/org.apache.maven.plugins-maven-archetype-plugin-3.2.1

2022-03-28 Thread skygo
This is an automated email from the ASF dual-hosted git repository.

skygo pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/netbeans-mavenutils-archetype-netbeans-platform-app-archetype.git

commit ad04ac3522c6edf2aedef96b177139b9d5a2a4f8
Merge: 2be5da3 0e6fbbf
Author: Eric Barboni 
AuthorDate: Mon Mar 28 15:12:50 2022 +0200

Merge pull request #4 from 
apache/dependabot/maven/master/org.apache.maven.plugins-maven-archetype-plugin-3.2.1

Bump maven-archetype-plugin from 3.1.1 to 3.2.1

 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Comment Edited] (NETBEANS-5829) Incorrect "Text blocks aren't supported"

2022-03-28 Thread Jaroslav Tulach (Jira)


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

Jaroslav Tulach edited comment on NETBEANS-5829 at 3/28/22, 8:17 AM:
-

With [PR-3715|https://github.com/apache/netbeans/pull/3715] the behavior is 
sufficiently acceptable.


was (Author: jtulach):
With [PR-3715](https://github.com/apache/netbeans/pull/3715) the behavior is 
sufficiently acceptable.

> Incorrect "Text blocks aren't supported"
> 
>
> Key: NETBEANS-5829
> URL: https://issues.apache.org/jira/browse/NETBEANS-5829
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
>Reporter: Jaroslav Tulach
>Assignee: Jaroslav Tulach
>Priority: Major
>  Labels: pull-request-available
> Fix For: 14
>
> Attachments: image-2021-07-02-08-47-25-560.png
>
>  Time Spent: 3h
>  Remaining Estimate: 0h
>
> Get 
> [https://github.com/apache/netbeans-html4j/blob/release-1.7.2/json-tck/src/main/java/net/java/html/js/tests/AsyncJavaScriptAction.java#L36],
>  open it in most recent NetBeans IDE running on JDK8 (with nbjavac@16.0.0.0 
> installed) and try to convince the editor to not show errors about text 
> blocks:
> !image-2021-07-02-08-47-25-560.png!
> Is there some way to do so? It is very annoying to have the source tree full 
> of useless errors related to text blocks, when everything compiles and runs 
> fine. The project's source level is set to 15 and Maven support shall report 
> that to {{java.source}}. Any help welcomed.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Resolved] (NETBEANS-5829) Incorrect "Text blocks aren't supported"

2022-03-28 Thread Jaroslav Tulach (Jira)


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

Jaroslav Tulach resolved NETBEANS-5829.
---
Fix Version/s: 14
   Resolution: Fixed

With [PR-3715](https://github.com/apache/netbeans/pull/3715) the behavior is 
sufficiently acceptable.

> Incorrect "Text blocks aren't supported"
> 
>
> Key: NETBEANS-5829
> URL: https://issues.apache.org/jira/browse/NETBEANS-5829
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
>Reporter: Jaroslav Tulach
>Assignee: Jaroslav Tulach
>Priority: Major
>  Labels: pull-request-available
> Fix For: 14
>
> Attachments: image-2021-07-02-08-47-25-560.png
>
>  Time Spent: 3h
>  Remaining Estimate: 0h
>
> Get 
> [https://github.com/apache/netbeans-html4j/blob/release-1.7.2/json-tck/src/main/java/net/java/html/js/tests/AsyncJavaScriptAction.java#L36],
>  open it in most recent NetBeans IDE running on JDK8 (with nbjavac@16.0.0.0 
> installed) and try to convince the editor to not show errors about text 
> blocks:
> !image-2021-07-02-08-47-25-560.png!
> Is there some way to do so? It is very annoying to have the source tree full 
> of useless errors related to text blocks, when everything compiles and runs 
> fine. The project's source level is set to 15 and Maven support shall report 
> that to {{java.source}}. Any help welcomed.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Assigned] (NETBEANS-5829) Incorrect "Text blocks aren't supported"

2022-03-28 Thread Jaroslav Tulach (Jira)


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

Jaroslav Tulach reassigned NETBEANS-5829:
-

Assignee: Jaroslav Tulach  (was: Jan Lahoda)

> Incorrect "Text blocks aren't supported"
> 
>
> Key: NETBEANS-5829
> URL: https://issues.apache.org/jira/browse/NETBEANS-5829
> Project: NetBeans
>  Issue Type: Bug
>  Components: java - Source
>Reporter: Jaroslav Tulach
>Assignee: Jaroslav Tulach
>Priority: Major
>  Labels: pull-request-available
> Attachments: image-2021-07-02-08-47-25-560.png
>
>  Time Spent: 3h
>  Remaining Estimate: 0h
>
> Get 
> [https://github.com/apache/netbeans-html4j/blob/release-1.7.2/json-tck/src/main/java/net/java/html/js/tests/AsyncJavaScriptAction.java#L36],
>  open it in most recent NetBeans IDE running on JDK8 (with nbjavac@16.0.0.0 
> installed) and try to convince the editor to not show errors about text 
> blocks:
> !image-2021-07-02-08-47-25-560.png!
> Is there some way to do so? It is very annoying to have the source tree full 
> of useless errors related to text blocks, when everything compiles and runs 
> fine. The project's source level is set to 15 and Maven support shall report 
> that to {{java.source}}. Any help welcomed.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[netbeans] branch master updated (93db1c4 -> 097bb23)

2022-03-28 Thread jtulach
This is an automated email from the ASF dual-hosted git repository.

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


from 93db1c4  GroovyVirtualSourceProvider should run GroovyParser in 
'indexing' mode. (#3859)
 new ff6fb43  Source level 15 and text blocks shall be supported regardless 
of the JDK NetBeans run on
 new 2a988bb  Enable testing of java.source module
 new fc1e300  Use --release instead of downgrading the source level
 new 0cb94f1  Minimum support release is 7
 new 814d02d  Use com.sun.tools.javac.code.Source to compare source levels
 new b5c21d0  Bringing the fix and the test together
 new a4fdca2  Keep the warning about missing classes, but remove the change 
level notice
 new fdea3e5  Being more conservative when computing useRelease
 new 2a26dc1  Merging with nb-javac@18
 new 097bb23  Merge pull request #3715 from 
jtulach/jtulach/UseReleaseInsteadOfDowngrading

The 6830 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:
 .travis.yml|  3 +-
 .../modules/java/source/parsing/JavacParser.java   | 48 ++
 .../api/java/source/MockSourceLevelQuery.java  | 69 
 .../api/java/source/TextBlocksOnAnyJavaTest.java   | 76 ++
 4 files changed, 181 insertions(+), 15 deletions(-)
 create mode 100644 
java/java.source/test/unit/src/org/netbeans/api/java/source/MockSourceLevelQuery.java
 create mode 100644 
java/java.source/test/unit/src/org/netbeans/api/java/source/TextBlocksOnAnyJavaTest.java

-
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: GroovyVirtualSourceProvider should run GroovyParser in 'indexing' mode. (#3859)

2022-03-28 Thread dbalek
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new 93db1c4  GroovyVirtualSourceProvider should run GroovyParser in 
'indexing' mode. (#3859)
93db1c4 is described below

commit 93db1c4fb105a9ab8c3e08f1495bc28b4b5dcbf3
Author: Dusan Balek 
AuthorDate: Mon Mar 28 08:37:07 2022 +0200

GroovyVirtualSourceProvider should run GroovyParser in 'indexing' mode. 
(#3859)
---
 .../groovy/editor/api/parser/GroovyParser.java |  7 ++--
 .../api/parser/GroovyVirtualSourceProvider.java| 46 +-
 .../groovy/editor/compiler/GroovyIndexingTask.java | 22 +++
 .../compiler/SimpleTransformationCustomizer.java   |  8 ++--
 .../modules/groovy/editor/utils/GroovyUtils.java   |  7 +++-
 5 files changed, 62 insertions(+), 28 deletions(-)

diff --git 
a/groovy/groovy.editor/src/org/netbeans/modules/groovy/editor/api/parser/GroovyParser.java
 
b/groovy/groovy.editor/src/org/netbeans/modules/groovy/editor/api/parser/GroovyParser.java
index bf5d691..24191cd 100644
--- 
a/groovy/groovy.editor/src/org/netbeans/modules/groovy/editor/api/parser/GroovyParser.java
+++ 
b/groovy/groovy.editor/src/org/netbeans/modules/groovy/editor/api/parser/GroovyParser.java
@@ -82,7 +82,6 @@ import org.netbeans.modules.parsing.api.Task;
 import org.netbeans.modules.parsing.spi.ParseException;
 import org.netbeans.modules.parsing.spi.Parser;
 import org.netbeans.modules.parsing.spi.SourceModificationEvent;
-import org.netbeans.modules.parsing.spi.indexing.support.IndexingSupport;
 import org.netbeans.spi.java.classpath.support.ClassPathSupport;
 import org.openide.filesystems.FileObject;
 import org.openide.filesystems.FileUtil;
@@ -152,7 +151,7 @@ public class GroovyParser extends Parser {
 cancelled.set(false);
 
 if (!GroovyUtils.isIndexingEnabled()) {
-if (IndexingSupport.isIndexingTask(task)) { // NOI18N
+if (GroovyUtils.isIndexingTask(task)) {
 lastResult = createParseResult(snapshot, null, null);
 return;
 }
@@ -640,7 +639,7 @@ public class GroovyParser extends Parser {
 );
 }
 
-boolean indexing = IndexingSupport.isIndexingTask(context.parserTask);
+boolean indexing = GroovyUtils.isIndexingTask(context.parserTask);
 configuration = makeConfiguration(configuration, context, indexing);
 CU compilationUnit = new CU(indexing, this, configuration,
 null, classLoader, transformationLoader, cpInfo, 
classNodeCache,
@@ -803,7 +802,7 @@ public class GroovyParser extends Parser {
 return sanitize(context, sanitizing);
 }
 }
-
+
 private static void logParsingTime(Context context, long start, boolean 
cancelled) {
 long diff = System.currentTimeMillis() - start;
 long full = PARSING_TIME.addAndGet(diff);
diff --git 
a/groovy/groovy.editor/src/org/netbeans/modules/groovy/editor/api/parser/GroovyVirtualSourceProvider.java
 
b/groovy/groovy.editor/src/org/netbeans/modules/groovy/editor/api/parser/GroovyVirtualSourceProvider.java
index b69bd3f..9d303de 100644
--- 
a/groovy/groovy.editor/src/org/netbeans/modules/groovy/editor/api/parser/GroovyVirtualSourceProvider.java
+++ 
b/groovy/groovy.editor/src/org/netbeans/modules/groovy/editor/api/parser/GroovyVirtualSourceProvider.java
@@ -54,6 +54,7 @@ import org.codehaus.groovy.ast.stmt.Statement;
 import org.codehaus.groovy.control.ResolveVisitor;
 import org.netbeans.modules.groovy.editor.api.ASTUtils;
 import org.netbeans.modules.groovy.editor.api.elements.ast.ASTRoot;
+import org.netbeans.modules.groovy.editor.compiler.GroovyIndexingTask;
 import org.netbeans.modules.java.preprocessorbridge.spi.VirtualSourceProvider;
 import org.netbeans.modules.parsing.api.ParserManager;
 import org.netbeans.modules.parsing.api.ResultIterator;
@@ -124,7 +125,7 @@ public class GroovyVirtualSourceProvider implements 
VirtualSourceProvider {
 
 @SuppressWarnings("unchecked")
 static List getClassNodes(File file) {
-final List resultList = new ArrayList();
+final List resultList = new ArrayList<>();
 FileObject fo = FileUtil.toFileObject(file);
 if (fo != null) {
 Source source = Source.create(fo);
@@ -132,23 +133,7 @@ public class GroovyVirtualSourceProvider implements 
VirtualSourceProvider {
 if (GroovyLanguage.GROOVY_MIME_TYPE.equals(source.getMimeType())) {
 try {
 // FIXME can we move this out of task (?)
-ParserManager.parse(Collections.singleton(source), new 
UserTask() {
-@Override
-public void run(ResultIterator resultIterator) throws 
Exception {
-Parser.Result parseResult =