RenameProcessor works on tests but not on project.

Answered

I want to rename a parameter's name. This is my code:

PyNamedParameter firstParameter = parameters[0].getAsNamed();
RenameProcessor renameProcessor = new RenameProcessor(getVPG().getProject(), firstParameter,
currentMethodType.parameterName, false,
true);
renameProcessor.run();

This works on tests perfectly ( tests are created by extending `UsefulTestCase`).

 

But when I run this in a project, no rename is happening. Rather I'm getting this warning:

2021-09-13 01:23:32,629 [   7843]   WARN - nSystem.impl.ActionManagerImpl - keymap "Visual Studio" not found [Plugin: com.intellij] 
2021-09-13 01:23:32,632 [ 7846] WARN - nSystem.impl.ActionManagerImpl - keymap "Eclipse" not found [Plugin: com.intellij]
2021-09-13 01:23:32,632 [ 7846] WARN - nSystem.impl.ActionManagerImpl - keymap "NetBeans 6.5" not found [Plugin: com.intellij]
2021-09-13 01:23:32,632 [ 7846] WARN - nSystem.impl.ActionManagerImpl - keymap "Visual Studio" not found [Plugin: com.intellij]
2021-09-13 01:23:32,663 [ 7877] WARN - nSystem.impl.ActionManagerImpl - keymap "Eclipse" not found [Plugin: org.jetbrains.plugins.github]
2021-09-13 01:23:32,665 [ 7879] WARN - nSystem.impl.ActionManagerImpl - keymap "Eclipse" not found [Plugin: PythonCore]
2021-09-13 01:23:32,665 [ 7879] WARN - nSystem.impl.ActionManagerImpl - keymap "NetBeans 6.5" not found [Plugin: PythonCore]

 

What could be the reason behind this?

3 comments
Comment actions Permalink

The warnings seem unrelated to this problem. Most probably, there's a different set of plugins (or versinos) and/or different project structure/setup in production vs. tests, that might influence the behavior.

0
Comment actions Permalink

Thanks for the reply.

How could I debug this?
What is the way to find the different structures/versions between production and testing?

0
Comment actions Permalink

For a start, compare log output in idea.log on startup of IDE, it contains all major information about environment, installed plugins and versions, and custom options.

1

Please sign in to leave a comment.