Could Illuminated Cloud be removing elements from Project.xml?

Issue #2172 resolved
Trieste LaPorte created an issue

See issue here I opened with Jetbrains: https://youtrack.jetbrains.com/issue/DBE-16162

TL;DR: A few times per day my Project.xml will lose the whole MSSQLCodeStyleSettings section. After I was prompted by Jetbrains support to start testing plugins, the issue seems to have gone away after disabling Illuminated Cloud. Is there any way IC2 is doing this?

Comments (5)

  1. Scott Wells repo owner

    Trieste, I'm not aware of any such behavior. IC2 does store its own code style settings, but it does so via the standard way for a plugin to add code style settings:

            <codeStyleSettingsProvider
                implementation="com.illuminatedcloud.intellij.formatter.ApexCodeStyleSettingsProvider"/>
    

    And the implementation of that class is brain-dead simple.

    IC2 stores all of its other project-level configuration in its own file under the .idea directory, illuminatedCloud.xml.

    This is also the first I've ever heard of this, and I also personally have code styles configured for numerous other implementation languages--Java, JavaScript, HTML, CSS, various SQL dialects, etc.--while having IC2 enabled. I even worked on a project for a number of years (albeit several years ago) where we also included code style settings for the MS SQL Server dialect of SQL without issues.

    I can certainly understand the concern given that this issue seems to disappear when IC2 isn't enabled...I'm just not sure how IC2 could be creating such conflicting behavior given that it's using the standard plugin extension points for all places where it would end up interacting (indirectly) with Project.xml.

    I'm happy to chat with Serge and others in JetBrains support to see if they have any thoughts. I'll leave a note on the linked issue as well.

  2. Trieste LaPorte reporter

    Yeah, I would not be shocked if I just haven’t triggered the event today and it’s coincidence that I disabled IC2 this morning. But I wanted to get the convo going in case you saw this and responded with, ‘Aha!!’

    I’ll report back if I am able to reproduce the issue with IC2 disabled.

  3. Scott Wells repo owner

    Yeah, keep me posted, and as I'm sure you've already seen, I also replied on the JetBrains issue as well.

  4. Trieste LaPorte reporter

    I don’t think it’s IC2. I enabled it because I had to do some SF work, and I still am not seeing the issue. I am sorry if I’ve caused a waste of time. Still will be interesting to see what the Jetbrains people have to say.

  5. Scott Wells repo owner

    I'm going to resolve this until/unless you do find concrete evidence that it's IC2 causing the issue. Feel free to reopen with details if that happens.

  6. Log in to comment