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

Shevek commented on NETBEANS-2334:
----------------------------------

I suspect the fundamental issue I reported: Changing a lot of files on disk 
breaks NetBeans, is specifically related to generated files, and NOT 
specifically to Gradle. All the behaviour seems to suggest that checking out a 
Maven project and doing a heavy git branch-switch will also break NetBeans.

> Code generating tasks or switching git branches break NetBeans
> --------------------------------------------------------------
>
>                 Key: NETBEANS-2334
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2334
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 10.0, 11.0
>         Environment: OpenJDK Runtime Environment (build 
> 1.8.0_191-8u191-b12-2ubuntu0.18.10.1-b12)
>            Reporter: Shevek
>            Priority: Major
>
> If I have a gradle task which generates code, e.g. grpc, protobuf, thrift, 
> xjc, antlr, custom template-driven tasks, they remove and recreate a large 
> number of files under NB. NB then breaks: It goes into the 'background 
> scanning of projects' / 'scanning for external changes' of death and needs a 
> restart.
> Alternatively, switching git branches will do the same.
> A peculiar, possibly related effect is that NB can't see new classes I create 
> even when it's not apparently scanning, e.g. I create a class in a package, 
> but fix imports in another package can't import it until I restart netbeans.
> I've disabled auto-scanning of sources, will see if that helps.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to