[ANN] TabSwitch Plugin : HistoryLimit always get back to 1
I change hitstoryLimit Option in other.xml but at every startup the value switch back to 1 and as a consequence this option does not work.
I use Intellij build 705 on xp sp1.
Richard
Please sign in to leave a comment.
Can't reproduce it, works for me. Any exceptions in the log? Can you try changing option values for the Camel and Reformat plugin?
Timur
OK, first I've tried to remove all other plugins, same things (just in case there is some configuration overwriting).
Next I install Reformat and set options to :
]]>
These do not change, BUT the blankLineAtTheEndOfTheClass is not working : when i do ctrl-alt-r i have no blank line at the end.
Nothing particular in the log file (no exceptions).
Hope this helps.
Richard
PS : the file I edit is C:\Documents and Settings\Richard\.IntelliJIdea\config\other.xml (seems to be the good file).
Do you edit other.xml with IDEA running? Do you follow the instructions ( http://www.intellij.org/twiki/bin/view/Main/HowToSetAnOption )?
Timur
No, I close idea, change option and restart as in the instructions. At start
time it sets the option value in the file (other.xml) to 1.I've re-done the
whole thing desinstall-reinstall, and historylimit is set back to 1, no
matter the value I enter.
Richard
( http://www.intellij.org/twiki/bin/view/Main/HowToSetAnOption )?
>
>
>
I attached a plugin jar file with added log statements.
Please, try it, change the value, start IDEA, quite IDEA and post the log.
Timur
Attachment(s):
TabSwitch-0.6.4.jar
The end of the log looks interesting : it seems the trick is hapenning at idea shutdown...
Richard
Attachment(s):
log.txt
All I see is (with removal of irrelevant lines)
which means other.xml had "1", in "read, name: 'historyLimit', value: '1'" comes from the other.xml file.
Can you do the following, please:
1. Quit IDEA.
2. Modify other.xml (say, set historyLimit to 5), post the file along with its modification time.
3. Start IDEA, quit IDEA.
4. Post other.xml and its modification time. Post idea.log
directory and other.xml after I change the option in the file. The next post will be after start/quit Idea.
Attachment(s):
other.xml
dir after modif.GIF
after restart/quit...
after restart quit
Attachment(s):
log.txt
dir after restart idea.GIF
other.xml
Richard,
Thank you for your help.
I still don't know why it's reset back to one. "One" comes from some xml file (other.xml), on the other hand you obviously change the value in the file.
Possible workaround. Find this class: TabSwitchApplicationComponent. Change the value of historyLimit field and make it final. Recompile (probably you'll need Aurora for this plus maybe some changes depending on the build you use; if you need the latest src zip let me know or check out from CVS).
Maybe some day I'll write the settings to my own xml file. In this case I'll have more control.
Timur
other
Just a guess: A while ago I had a similar problem when manually I edited an IDEA configuration file.
My editor crated a .bak file which was read by IDEA after the original file. The effect was that it
seemed
to be correct in the 'right' file and after starting/quitting IDEA, the setting was turned back to
the value from
the backup file. Maybe that's also the case here.
If there is any non-xml file your config/options directory, remove it and try again.
Sascha
That was it. Thanks! Now I was able to repro it.
I also found the SCR for this: http://www.intellij.net/tracker/idea/viewSCR?publicId=12791
Timur
That was vicious...remove .bak file and it is ok. Anyway, thank you for this very useful plugin.
Richard