Is there any way to manually invoke facet detection?
已回答
I saw a post on this from 2007:
but has there been any progress on it? It would be great to be able to trigger the automatic facet detection somehow, or at least know what triggers it (make project? restart?).
请先登录再写评论。
Hello, Tom,
why do you need this? Detection should be automatically triggered if files in the project are changed.
Actually there is FrameworkDetectionManager.getInstance().queueDetection() method, though it's private and not part of Open API.
In my experience auto-detection only happens intermittently. Sometimes it happens after a project rebuilds, but sometimes it only seems to happen on a restart of IDEA. I have not seen it happen every time project files are changed.
If detection isn't triggered when a file satisfying a pattern returned by FrameworkDetector#createSuitableFilePattern is created or changed, then this is just a bug. Could you please provide more details? For which facet do you try to perform autodetection?