Scope/Inspection UI is difficult to understand

Hi all,

I just moved from Demetra to Maia, and I'm having trouble understanding the Scope/Inspection UI. Previously in my company we had several scopes, several inspection configs, and assigned each scope a corresponding inspection config. This doesn't seem to be possible any more. It now seems like we would have a single inspection config and enable or disable particular inspections for each scope. Is that correct? Maybe I'm just not used to it, but this seems a little awkward. I also can't find anywhere where to set the default inspection profile for the project - am I blind?

Thanks for any help,
Colin

9 comments
Comment actions Permalink

Hello.

> It now seems like we would have a single inspection config and enable or disable particular inspections for each scope.
Yes, we would. Just notice that old inspection profiles are converted to new format on opening the project in new version. Does it work for you?
There is an issue about possible inconvenience: http://youtrack.jetbrains.net/issue/IDEADEV-36962

> I also can't find anywhere where to set the default inspection profile for the project - am I blind?
Main menu / File / Other settings / Template settings?

Alexander.

0
Comment actions Permalink

Yes, we would. Just notice that old inspection profiles are converted to new format on opening the project in new version. Does it work for you?


No, it didn't - in our project we still have the old scopes, and it doesn't seem to have converted anything. Another thing I found was that it had left the scopes but deleted their expressions - the format seems to have changed. I copied the expressions from the old IPR file but I had to manually edit them to get them to work. Is there any way I can manually merge these inspection profiles?

Main menu / File / Other settings / Template settings?


Ah, no sorry - I actually meant how do I choose the active inspection profile for a particular project? My whole project currently uses Project Default and I can't see where to change that.

0
Comment actions Permalink

What Maia build are you using?

> I actually meant how do I choose the active inspection profile for a particular project?
Settings / Inspections, the combo box on top. Select a profile and press Ok/Apply.

0
Comment actions Permalink

What Maia build are you using?


I'm using IU-90.94. I thought maybe it was a problem with going from 7 to 9 but I just went back to 8.1.3, had to set up the scope->error mapping again and it still didn't work switching to Maia. This is pretty much preventing me from using Maia now.

Settings / Inspections, the combo box on top. Select a profile and press Ok/Apply.


Ah, ok, thanks. It's far from obvious that that is actually setting the active profile. Again, maybe I'm just used to the idea of having multiple profiles open.

0
Comment actions Permalink

I have tried the last 90.102 with the following test case.
1. In 8.1.3 created a project with 2 shared scopes S1, S2 and 2 project profiles P1, P2.
2. Made P2 different to P1 in some settings. (This is essential, since Maia creates scope sub-settings only when necessary, i.e. when some difference exists.)
3. Set default project profile = P1.
4. Added mappings S1 - P1, S2 - P2.
5. Opened the project in Maia.

Result:
1. Both P1 and P2 have been preserved.
2. P2 has not been changed.
3. P1 has gotten new scope-specific sub-settings for inspections which had different settings in P1 and P2.
4. P1 has been set current for the project.
Does it work different to you? Or does your project have some different specific?

You can attach your .ipr/.idea files to the thread, if you'd like us to reproduce the problem.

Regards,
Alexander.

0
Comment actions Permalink

My main problem now is that due to this: http://www.jetbrains.net/devnet/message/5247489 I can't switch to Maia. Reading your list there, one possibility is that we don't actually use the project default configuration - it exists but it's never used, it's always overridden with scope-specific ones. Once I can try Maia again I'll test again. I've attached my IPR in case it helps.

Thanks,
Colin



Attachment(s):
platform.ipr.zip
0
Comment actions Permalink

Thanks. I have erased all references to modules except one (since I have no them) and opened this .ipr in Maia.
All profiles ("User interface", "Infrastructure") have been preserved. "Project default" profile (really the project default) got scope sub-settings. E.g. Abstraction issues / Magic number: there are 4 scope sub-nodes with different settings.
So, for me it works...

0
Comment actions Permalink

Ok, thanks - the other issue has been resolved so I'll try this again when I get a moment. I think what confused me was that we don't actually use the Project Default for anything. I'll set it up to have a single config in v9 and hopefully the migration will work.

Thanks for all the help, I appreciate it.

Cheers,
Colin

0
Comment actions Permalink

Hi all,

Slightly related to this problem, I've found that my scopes now don't work under IDEA 8. Here's a screenshot of the scopes view:

Picture 11.png

You can see in the scope pattern that all production code from model.common.* should be included in this scope. But the tree generates a corrupted display when I try to open it, and when I'm editing these files it uses the project default configuration. Any idea why this might be?

Thanks,
Colin

0

Please sign in to leave a comment.