[jira] [Comment Edited] (NETBEANS-6218) There is endles loop of parsing in groovy sources

2021-11-18 Thread Petr Pisl (Jira)


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

Petr Pisl edited comment on NETBEANS-6218 at 11/18/21, 3:56 PM:


Reproduce the problem:

The first file:
{code:java}
package my.pkg.impl

import my.pkg.app.ClassA
 
class ClassB {
    static void execute() {}
} {code}
The second file:
{code:java}
package my.pkg.app

import my.pkg.impl.ClassB

class ClassA {
   static void execute() {}
}{code}
And the last file:
{code:java}
package my.pkg 

import my.pkg.app.ClassA 

class ClassMain { 
static void main(String[] arg) {
ClassA.execute()
}
}{code}
Have a project with these files. The scanning never finished. Although this is 
artificial example how to reproduce problem, there is reall project that 
suffers with this. 


was (Author: petricius):
Reproduce the problem:

The first file:
{code:java}
package my.pkg.impl

import my.pkg.app.ClassA
 
class ClassB {
} {code}
The second file:
{code:java}
package my.pkg.app

import my.pkg.impl.ClassB

class ClassA {
}{code}
And the last file:
{code:java}
package my.pkg 

import my.pkg.app.ClassA 

class ClassMain { 
static void main(String[] arg) {
ClassA.execute()
}
}{code}
Have a project with these files. The scanning never finished. Although this is 
artificial example how to reproduce problem, there is reall project that 
suffers with this. 

> There is endles loop of parsing in groovy sources
> -
>
> Key: NETBEANS-6218
> URL: https://issues.apache.org/jira/browse/NETBEANS-6218
> Project: NetBeans
>  Issue Type: Bug
>  Components: groovy - Editor
>Affects Versions: 12.5
>Reporter: Petr Pisl
>Assignee: Petr Pisl
>Priority: Major
>
> Groovy editor uses for parsing the Groovy parser from runtime and use 
> compilation units from Groovy API to compile the sources to obtain the result 
> AST. There can be reference loop beetween sources and such case creates 
> endless loop of parsing due a bug in the CompilationUnit implamentation in 
> Groovy NetBeans editor. This means that background scanning of such source 
> root never ends. 



--
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] [Comment Edited] (NETBEANS-6218) There is endles loop of parsing in groovy sources

2021-11-18 Thread Petr Pisl (Jira)


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

Petr Pisl edited comment on NETBEANS-6218 at 11/18/21, 3:43 PM:


Reproduce the problem:

The first file:
{code:java}
package my.pkg.impl

import my.pkg.app.ClassA
 
class ClassB {
} {code}
The second file:
{code:java}
package my.pkg.app

import my.pkg.impl.ClassB

class ClassA {
}{code}
And the last file:
{code:java}
package my.pkg 

import my.pkg.app.ClassA 

class ClassMain { 
static void main(String[] arg) {
ClassA.execute()
}
}{code}
Have a project with these files. The scanning never finished. Although this is 
artificial example how to reproduce problem, there is reall project that 
suffers with this. 


was (Author: petricius):
Reproduce the problem:

The first file:
{code:java}
package my.pkg.impl

import my.pkg.app.ClassA
 
class ClassB {
} {code}
The second file:
{code:java}
package my.pkg.app

import my.pkg.impl.ClassB

class ClassA {
}{code}
Have a project with these two files. The scanning never finished. 

> There is endles loop of parsing in groovy sources
> -
>
> Key: NETBEANS-6218
> URL: https://issues.apache.org/jira/browse/NETBEANS-6218
> Project: NetBeans
>  Issue Type: Bug
>  Components: groovy - Editor
>Affects Versions: 12.5
>Reporter: Petr Pisl
>Assignee: Petr Pisl
>Priority: Major
>
> Groovy editor uses for parsing the Groovy parser from runtime and use 
> compilation units from Groovy API to compile the sources to obtain the result 
> AST. There can be reference loop beetween sources and such case creates 
> endless loop of parsing due a bug in the CompilationUnit implamentation in 
> Groovy NetBeans editor. This means that background scanning of such source 
> root never ends. 



--
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] [Comment Edited] (NETBEANS-6218) There is endles loop of parsing in groovy sources

2021-11-18 Thread Petr Pisl (Jira)


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

Petr Pisl edited comment on NETBEANS-6218 at 11/18/21, 3:31 PM:


Reproduce the problem:

The first file:
{code:java}
package my.pkg.impl

import my.pkg.app.ClassA
 
class ClassB {
} {code}
The second file:
{code:java}
package my.pkg.app

import my.pkg.impl.ClassB

class ClassA {
}{code}
Have a project with these two files. The scanning never finished. 


was (Author: petricius):
Reproduce the problem:

The first file:
{code:java}
package my.pkg.impl

import my.pkg.app.ClassA
 
class ClassB {
} {code}
The second file:
{code:java}
package my.pkg.app

import my.pkg.impl.ClassB

class ClassA {
}{code}

> There is endles loop of parsing in groovy sources
> -
>
> Key: NETBEANS-6218
> URL: https://issues.apache.org/jira/browse/NETBEANS-6218
> Project: NetBeans
>  Issue Type: Bug
>  Components: groovy - Editor
>Affects Versions: 12.5
>Reporter: Petr Pisl
>Assignee: Petr Pisl
>Priority: Major
>
> Groovy editor uses for parsing the Groovy parser from runtime and use 
> compilation units from Groovy API to compile the sources to obtain the result 
> AST. There can be reference loop beetween sources and such case creates 
> endless loop of parsing due a bug in the CompilationUnit implamentation in 
> Groovy NetBeans editor. This means that background scanning of such source 
> root never ends. 



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