Opening a project for command line tool

My plugin is an ApplicationStarter (command line tool); the main() method is properly called but when I try to open a project as following:


IDEA is opening a window (?) and I got the following exception:

2005-07-30 19:44:27,359 INFO - om.intellij.util.ProfilingUtil -
java.lang.Exception: To profile application, you should run it with the profiler agent
at com.yourkit.api.Controller.a(a:24)
at com.yourkit.api.Controller.(a:78) at com.intellij.util.ProfilingUtil.initController( at com.intellij.util.ProfilingUtil.( at com.intellij.util.CaptureMemorySnapshotAction.update( at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup( at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.updateActions( at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.( at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.createActionToolbar( at com.intellij.openapi.wm.impl.IdeRootPane.a( at com.intellij.openapi.wm.impl.IdeRootPane.updateToolbar( at com.intellij.openapi.wm.impl.IdeRootPane.( at com.intellij.openapi.wm.impl.IdeFrame.]]>(
at com.intellij.openapi.wm.impl.WindowManagerImpl.allocateFrame(
at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.projectOpened(
at com.intellij.openapi.project.impl.ProjectImpl.c(

Am I doing something wrong? Is that normal that IDEA is opening a window? What is this error about profiling?


1 comment

I've figured out the issue with the "profiling agent" error; I was trying to run the "ApplicationStarter" from a "sandbox" target; it seems it does not work properly.

I still have one question: is that possible to have NO window/GUI opened at all when running a "plugin" from the command line (typically during a night job)?



Please sign in to leave a comment.