PathManager - build 2178

com.intellij.openapi.application.PathManager

PathManager.getPluginsPath()

returns the path to the user_home instead of IDEA_HOME\plugins.

user_home = C:\Documents and Settings\cib002\.IntelliJIdea\config\plugins


Is this deliberate? Or is it documented clearly in the opanapi documentation?

8 comments
Comment actions Permalink

Claus Ibsen wrote:

com.intellij.openapi.application.PathManager

PathManager.getPluginsPath()

returns the path to the user_home instead of IDEA_HOME\plugins.

user_home = C:\Documents and Settings\cib002\.IntelliJIdea\config\plugins


Is this deliberate? Or is it documented clearly in the opanapi documentation?


There's two plugins directories now. One for preinstalled plugins under IDEA_HOME\plugins as before. Downloaded plugins
go to %CONFIG%\plugins by default (configurable by idea.plugins.path property). This greatly eases an upgrade process
when switching between IDEA builds.

--
Maxim Shafirov
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Then this is probably responsible for the error dialogs that I get on restart (under Windows) after I have downloaded and installed new plugins.

Nick

0
Comment actions Permalink

PS. Please allow this to be set - I personally prefer everything to be in a single directory, and have the installer be smarter so that it can convert older settings. It makes things a lot easier for the EAP.

Nick

0
Comment actions Permalink

Yeps I hate the user_home folder. Especially since it it stored in the odd windows folder 'documents and settings'.

I prefer to have all my IDEA files/plugins in the plugins folder of IDEA.


/Claus

PS: Is there an API to get IDEA_HOME?

0
Comment actions Permalink

You guys have got to be kidding me. You would rather lose all your
plugins when you install a new build?

Claus Ibsen wrote:

>Yeps I hate the user_home folder. Especially since it it stored in the odd windows folder 'documents and settings'.
>
>I prefer to have all my IDEA files/plugins in the plugins folder of IDEA.
>
>
>/Claus
>
>PS: Is there an API to get IDEA_HOME?

>

0
Comment actions Permalink

>Yeps I hate the user_home folder. Especially since it it stored in the odd windows folder 'documents and settings'.
>
>I prefer to have all my IDEA files/plugins in the plugins folder of IDEA.
>

I think the user_home folder is the best thing since chocolate.

0
Comment actions Permalink

Why do you lose the settings when you install a new build? The installer doesnt delete settings, as far as I was aware.

Nick

0
Comment actions Permalink

Nick Pratt wrote:

Why do you lose the settings when you install a new build? The installer doesnt delete settings, as far as I was aware.

Nick


You don't loose settings, you loose the jar files because the installer
deletes the entire directory structure starting at the IDEA install
directory including the plugins directory.

I have been installing to a new location every time and copying my
plugins to the new plugins directory. This will save me that step.

Tim

0

Please sign in to leave a comment.