Debugging plugin which runs in Sandbox but hangs IDEA if deployed

I'm updating our IDEA 7.0 plugin. I now have it running nicely as a project. But when I create a deployable version and put unzip directory in IDEA 8s plugins dir, it physically hangs IDEA on startup.

Any suggestions on what I am doing wrong or best way to debug?

Regards,

MArkee

3 comments
Comment actions Permalink

Hello mark,

I'm updating our IDEA 7.0 plugin. I now have it running nicely as a
project. But when I create a deployable version and put unzip
directory in IDEA 8s plugins dir, it physically hangs IDEA on startup.

Any suggestions on what I am doing wrong or best way to debug?


Take a thread dump of IDEA as described in http://jetbrains.net/devnet/docs/DOC-260

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Stacktrace is telling me itcan't connect to process. Is there any logging option in IDEA I can enable?

Regards,

MArkee

0
Comment actions Permalink

I finally had a day free to take it apart. IDEA was hanging with my plugin because I was attempting to read a Boolean, when the value was actually a String.

Regards,

MArk

try {
                fileCount = entry.getAttribute("count").getIntValue();

                Attribute value=entry.getAttribute("checkForUpdates");

                /** if(value!=null) //hangs IDEA as it was actually a string string
                settings.checkForUpdates=value.getBooleanValue();
                  /**/
                if(value!=null){ //crashed code as string

                    if(value.equals("true"))
                        settings.checkForUpdates=true;
                    else
                        settings.checkForUpdates=false;
                }

                value=entry.getAttribute("versionTested");
                if(value!=null)
                settings.versionTested=value.getValue();

            } catch (Exception e) {
                e.printStackTrace();
            }


0

Please sign in to leave a comment.