You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Matthias Bläsing (Jira)" <ji...@apache.org> on 2021/07/29 19:27:00 UTC

[jira] [Commented] (NETBEANS-5755) give user better control of the compiler caches

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

Matthias Bläsing commented on NETBEANS-5755:
--------------------------------------------

I think you are not talking about a compiler cache, but about the indexing infrastructure of netbeans. If I remember correctly there is an API to force reindexing a complete tree (see org.netbeans.modules.parsing.api.indexing.IndexingManager), maybe you can come up with a simple plugin to add an option to refresh a broken index.

> give user better control of the compiler caches
> -----------------------------------------------
>
>                 Key: NETBEANS-5755
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5755
>             Project: NetBeans
>          Issue Type: Improvement
>          Components: ide - Code
>    Affects Versions: 12.4
>         Environment: all, but in this case ubuntu 20.04, net 12.3 and 12.4 , java 11, OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.10+9, mixed mode)
>            Reporter: Pieter van den Hombergh
>            Priority: Major
>
> Caching is a hard problem. This rears it's ugly head in the way the IDE tries
> to speed up things by caching 'previous'  compilation. It gets it wrong when invalidating or clearing the cache.
> The current approach is to keep the cache in a well known place (e.g .~/cache/netbeans/12.4/... under *NIX systems), for all project ever built with that IDE and version.
> The cache is a binary format, presumably for performance reasons.
> I would promote another approach:
> * Make the cache part of the project directory, e.g. below nbproject or something similar.
> The advantages would be that the user does not have to invalidate the whole cache (doing rm -fr of said well-known-place, but can instead just do rm -fr nbproject/cache/*. This could also be attached to a button label 'real clean'.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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