sdedic opened a new pull request #3907:
URL: https://github.com/apache/netbeans/pull/3907


   The idea in #3375 to check the global Artifact store was good in general, 
BUT ...
   
   it turned out that when the project is loading in FULL_ONLINE mode (implies 
no --offline switch), the NBTooling plugin [will **not** report 
back](https://github.com/apache/netbeans/blob/master/extide/gradle/netbeans-gradle-tooling/src/main/java/org/netbeans/modules/gradle/tooling/NbProjectInfoBuilder.java#L514)
 any javadocs or sources even though they may exist in the local `~/.gradle` 
jar cache. OK, after that the project is saved without any such artifacts, and 
the artifact store is updated with this imprecise info.
   
   In some future run of the IDE, the project is fetched from the cache 
(without any source / javadoc), but `GradleModuleFileCache21` can find them 
from their binary .jar - and the cached project is deemed invalid as info in 
IDE's artifact store differs from the gradle's caches. So, the project **is not 
loaded from the cache**, but again through Gradle daemon. This time, the `FULL` 
level is sufficient - and that one will load even source + javadoc info - 
that's stored in the project cache AND in the artifact store.
   
   TBC
   
   ---
   **^Add meaningful description above**
   
   By opening a pull request you confirm that, unless explicitly stated 
otherwise, the changes -
   
    - are all your own work, and you have the right to contribute them.
    - are contributed solely under the terms and conditions of the Apache 
License 2.0 (see section 5 of the license for more information).
   
   Please make sure (eg. `git log`) that all commits have a valid name and 
email address for you in the Author field.
   
   If you're a first time contributor, see the Contributing guidelines for more 
information.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



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