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

6 comments
Avatar
Nikolay Chashnikov
Comment actions Permalink

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.

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



0
Comment actions Permalink

Hello Nikolay,

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.


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

0
Comment actions Permalink

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

0
Avatar
Nikolay Chashnikov
Comment actions Permalink

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

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?


Looks like a bug. Please provide more details. Which facets are duplicated?

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?


Please add a Jira issue.

Sascha



0
Comment actions Permalink

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.

Hello Nikolay,

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

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

Alexander.


0
Comment actions Permalink

Hello Nikolay,

Looks like a bug. Please provide more details. Which facets are duplicated?


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


Please add a Jira issue.


Done: http://www.jetbrains.net/jira/browse/IDEA-13989

Sascha

0

Please sign in to leave a comment.