Facet Autodetection
.... is a great thing, but I recently turned it off for a whole project. Now I've got add a module to
that project which contains (or rather should contain) a bunch of web-facets. So the question is:
Can I turn the autodetection back on (if so, where?) or even better, can I run the autodetection
just for this newly added module?
Thanks,
Sascha
请先登录再写评论。
Hello Sascha,
The option to disable autodetection in whole project is already removed so
your problem won't appear for new projects. To fix the problem in an existent
project you can remove FacetAutodetectingManager component from ipr-file
and delete <idea.system.path>/facets directory.
Hello Nikolay,
Thanks, that worked, sort of. I already had some facets configured manually which I've got twice
now. Is that how the autodetection is supposed to work?
Also, can the auto-generated names "Web\d+" be made a bit more intelligent, like trying to find a
proper (unique) name from the containing directory or the display-name from the web.xml?
Sascha
This seems pretty much related to what i witness with maven projects.
It seems the maven importer adds new facets everytime it's run if the module file is persistent, thus leading to multiple ones for Java EE applications or web application
Hello Sascha,
>> The option to disable autodetection in whole project is already
>> removed so your problem won't appear for new projects. To fix the
>> problem in an existent project you can remove
>> FacetAutodetectingManager component from ipr-file and delete
>> <idea.system.path>/facets directory.
>>
Looks like a bug. Please provide more details. Which facets are duplicated?
Please add a Jira issue.
Hello Sascha,
I also see duplicate facet (web) creation, if corresponding web.xml is not
added as descriptor to existent facet (check facet settings). If web.xml
is added as descriptor, then duplicate is not created.
>> The option to disable autodetection in whole project is already
>> removed so your problem won't appear for new projects. To fix the
>> problem in an existent project you can remove
>> FacetAutodetectingManager component from ipr-file and delete
>> <idea.system.path>/facets directory.
>>
Alexander.
Hello Nikolay,
Some web facets. But I'm not really sure any more though because I now found out that some
web facets (probably the duplicated ones) were actually not configured correctly, i.e.
they didn't point to the correct web.xml. The problem is gone now, but I'll pay more
attention next time.
>> Also, can the auto-generated names "Web\d+" be made a bit more
>> intelligent, like trying to find a proper (unique) name from the
>> containing directory or the display-name from the web.xml?
>
Done: http://www.jetbrains.net/jira/browse/IDEA-13989
Sascha