The error configurations ui drives me crazy!!!

This ********** error configuration ui is indescribably.
It is nealy impossible to make changes that are respected. Today I tried
about half an hour to create a new highlighting type (for serialization
issues with a special background color) and apply it to some inspections.
And - after several tries and having restarted Idea several times, it
did work as expected.

But some minutes ago I restarted Idea and, bang, all those settings have
been lost. No track left... Every single setting has been reverted.

Can you, please, please overwork this little part of the gui? I don't
know how often it happened that I changed a value within a text field,
pressed ok and the changes have been lost. I always have to select
another textfield first and then press OK.


Johannes Schneider

22 comments
Comment actions Permalink

I am having a related problem with the error settings. IDEA keeps loosing my settings when I shut the application down. Example:
Errors->HTML Inspections->Required Attributes->Additional Not Required Html Attributes
These changes (i.e. adding the "alt" attribute) will be lost upon next start of the application. Really annoyoing.

Thanks,
Peter

0
Comment actions Permalink

Hello Johannes,

This ********** error configuration ui is indescribably.
It is nealy impossible to make changes that are respected. Today I
tried
about half an hour to create a new highlighting type (for
serialization
issues with a special background color) and apply it to some
inspections.
And - after several tries and having restarted Idea several times, it
did work as expected.
But some minutes ago I restarted Idea and, bang, all those settings
have been lost. No track left... Every single setting has been
reverted.


Could you please provide some details on the problem? What was the cause
of the problems? Why restart IDEA?

Can you, please, please overwork this little part of the gui? I don't
know how often it happened that I changed a value within a text field,
pressed ok and the changes have been lost. I always have to select
another textfield first and then press OK.


What exactly was lost?

Your local severities can be overriden by project profiles which come from
.ipr file. And it is proper behaviour. Do you agree?

Thank you

-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"




0
Comment actions Permalink

Hello Peter,

Is it still in build 5622? Unfortunately I can't reproduce the problem ...

Thank you

-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

I am having a related problem with the error settings. IDEA keeps
loosing my settings when I shut the application down. Example:

Errors->HTML Inspections->Required Attributes->Additional Not Required
Html Attributes

These changes (i.e. adding the "alt" attribute) will be lost upon next
start of the application. Really annoyoing.

Thanks,
Peter



0
Comment actions Permalink

Anna Kozlova wrote:

Hello Johannes,
Could you please provide some details on the problem? What was the cause
of the problems? Why restart IDEA?


I don't know what the cause is. I restarted Idea several times to check
if the settings have been stored. It sometimes happens that the changes
are respected only during the actual session. When I restart Idea the
settings are reverted.

>> Can you, please, please overwork this little part of the gui? I don't
>> know how often it happened that I changed a value within a text field,
>> pressed ok and the changes have been lost. I always have to select
>> another textfield first and then press OK.


What exactly was lost?
Your local severities can be overriden by project profiles which come
from .ipr file. And it is proper behaviour. Do you agree?


I will try to explain in detail what I did:

  • Idea + project open:

  • I get the warning "Non-serializable field 'journalPropertyListener' in

a Serializable class" (for two fields)

Those warnings are highlighted as every warning. But I want the warnings
related to serialization issues to be different than the "normal" warnings.

I press "Alt-Enter" on the Issue, "Right Cursor", "Enter"
Opened my actual IDE profile
I choose the "..." to edit the possible severities
create a new severity called "Serialization Issues"
change the background color to a new color from HSB tab
remove error stripe mark
"Ok"

--> Minor bug 1: As severity now "As info" is selected and not my
newly created and selected one

I choose "As serialization issue", press "OK"
And, I can't believe it, I was lucky. The warning has another background
color now (did not work the last time).
Ok, now I change the severity of some other inspections, too. Hmm, works
fine...

Now, it is time to restart Idea.

Hmm, everything works good. I have an idea: Maybe I had two projects
open when I was changing the severity yesterday. They both use the same
IDE error profile....

Aaargh, I opened another project (had two projects open now) and shut
them down in random order, restarted Idea and now there is no trace left
of any special severity related to "serialization". But all inspections,
I changed the severity for, have now been reverted to the default
"warning" severity....

Ok, I think I pointed the problem out now. Please fix this asap. It is
so frustrating when the settings are lost, I can't describe it.



The other point is really easy to point out. Just create a field with a
name that creates a warning ("Instance variable doesn't match regex").
Okay, I now want to change this regex to fit my needs. Alt-Enter, right,
Enter shows the dialog.
Now I change the pattern (e.g. add 0-9) and just press "ctrl-enter"
without "tabbing" to another textfield

The changes have not been saved --> very annoying....




Johannes Schneider



Thank you

---------------------
Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"


0
Comment actions Permalink

Hello Anna,

yes (regarding build 5622), and on my Ubuntu Linux (JDK 1.5.0_08) it is permanent. As described in my previous post, I add the attribute "alt" (Errors Dialog->HTML Inspections->Required Attributes->Additional Not Required Html Attributes), shutdown IDEA, start it again and the added attribute is gone. No project is open while changing the preferences. What else can I do/test?

Thanks,
Peter

0
Comment actions Permalink

This bug is at least in 5581, 5594 and 5622 eap builds.

http://www.jetbrains.net/jira/browse/IDEA-7861

0
Comment actions Permalink

Any progress here?


Johannes Schneider


Johannes Schneider wrote:

This ********** error configuration ui is indescribably.
It is nealy impossible to make changes that are respected. Today I tried
about half an hour to create a new highlighting type (for serialization
issues with a special background color) and apply it to some inspections.
And - after several tries and having restarted Idea several times, it
did work as expected.

But some minutes ago I restarted Idea and, bang, all those settings have
been lost. No track left... Every single setting has been reverted.

Can you, please, please overwork this little part of the gui? I don't
know how often it happened that I changed a value within a text field,
pressed ok and the changes have been lost. I always have to select
another textfield first and then press OK.


Johannes Schneider

0
Comment actions Permalink

Any progress here?


Hopefully there is some progress. I stopped counting how many times I had to restore my whole settings after they have been reset magically. And it's unbelievable that such a terrible bug hasn't been fixed long ago.

I don't care that much about having to move focus to another control after editing a text field in order to have the apply button activated. It's annoying and I don't understand it. But the loss of all my customizations over and over again is really a PITA.

0
Comment actions Permalink

Fixed.

For those who might wonder what's that been: beware of JFormattedTextField

-


Maxim Shafirov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

For those who might wonder what's that been: beware
of JFormattedTextField


Can you give us some insight how JFormattedTextField was able to destroy our settings?

0
Comment actions Permalink

Hello Martin,

JFormatterTextField's getValue() doesn't return updated value until focus
goes out of the field or commitEdit() have been explicitly called.
In InspectionGadgets codebase it was common pattern to sign-up for text field's
document change events and update stored settings from UI at that point by
calling getValue(). Obviously, the value haven't been updated yet.

-


Maxim Shafirov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>> For those who might wonder what's that been: beware of
>> JFormattedTextField
>>

Can you give us some insight how JFormattedTextField was able to
destroy our settings?



0
Comment actions Permalink

I see. So that means you fixed the (minor) bug about the edited value not being stored.

But the major bug about losing all settings is still unresolved then, isn't it?

0
Comment actions Permalink

Hello Martin,

That is claimed as fixed by Ann. Will be available with next EAP.

-


Maxim Shafirov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I see. So that means you fixed the (minor) bug about the edited value
not being stored.

But the major bug about losing all settings is still unresolved then,
isn't it?



0
Comment actions Permalink

Great news, thanks!

0
Comment actions Permalink

What has Ann fixed exactly? I just lost all my settings once again this morning... :(((

0
Comment actions Permalink

I have been playing around with Editor Settings quite a bit, and haven't run into any problem like this.

But one thing I haven't played around with is creating project profiles. I am only using IDE profiles. Maybe the problem is related to that? One other thing I haven't done is edit the settings of an individual inspection. I have created several different IDE profiles and have been turning on/off different inspections.

I have created several different severity styles and applied them to several different profiles. For example, I created an "unused" severity which colors the foreground grey and error stripe grey.

0
Comment actions Permalink

I haven't been playing around at all. I have just one single IDE profile which I use everywhere. And every now and then (I didn't find a reproducible pattern yet) all my customizations are lost. The enabled/disabled state of the inspections is preserved, but all customizations like e.g. the instance variable naming convention pattern are reset to their default values.

0
Comment actions Permalink

Hello Martin,

I've fixed http://www.jetbrains.net/jira/browse/IDEADEV-8555. Could you please
provide some more details on your problem. We have a number of customizations
of project profiles and they are persisted.

Sorry for inconvenience.

Thank you
-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

What has Ann fixed exactly? I just lost all my settings once again
this morning... :(((



0
Comment actions Permalink

Hm.. I checked and my unused severity I created is still set on the inspections I set it on. See attached.

I was going to create some more severities, so I will keep an eye out for this problme.

Could be one bad inspection that doesn't restore itself properly, and causing other inspections not to get their settings loaded either. But wouldn't this show up as an exception?

-Alex



Attachment(s):
5646_project_settings_errors_unused_severity.png
0
Comment actions Permalink

Hello,

There were problems with separate inspection settings but now I can't understand
how it can be (

Martin, Do you open multiple projects or do not open projects at all? I am
just guessing ...

Thank you

-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

Hm.. I checked and my unused severity I created is still set on the
inspections I set it on. See attached.

I was going to create some more severities, so I will keep an eye out
for this problme.

Could be one bad inspection that doesn't restore itself properly, and
causing other inspections not to get their settings loaded either.
But wouldn't this show up as an exception?

-Alex



0
Comment actions Permalink

Anna,

It doesn't happen when editing the settings. After editing settings I can work for several days without any problem. But suddenly when I reopen a project I get warnings all over, and after opening the settings panel I find all customizations reset to their default value. The inspections itself are correctly enabled/disabled, but all settings like e.g. the return point limit are lost.

0

Please sign in to leave a comment.