Problems setting up plugin-dev environment

Hi,

I'm a newbie to using IDEA and am exploring plugin development.  However I'm having problems setting up the dev environment with IDEA 9.0 and the CE source, as documented here:

   http://www.jetbrains.org/display/IJOS/Writing+Plug-ins  

The steps I'm using are:

* Checkout the CE Git tree as documented here: http://www.jetbrains.org/pages/viewpage.action?pageId=983225
* Build this with Ant
* Unpack the resulting artifact to ~/idea-community
* Open IDEA Ultimate
* Go to Project Structure -> Project -> New SDK
* Add ~/idea-community

However I consistently get the error message "The selected directory is not a valid home for JSDK".

I have also seen this problem following the instructions for IDEA 8 and the dev kit, so I suspect this is a misunderstanding on my part.  Any hints on what I'm doing wrong would be appreciated.

Thanks,
Steve

4 comments
Comment actions Permalink

Hi!


However I consistently get the error message "The selected directory is not a valid home for JSDK".


You have to use the ant build.xml to create a dist bundle and then unzip
this bundle somewhere. This will be the directory you can use for defining
the Intellij JSDK from.
You then can add the checked out source tree as source-folder to the JDSK.

Ciao,
Mario

0
Comment actions Permalink

Hi Mario,

Thanks for the answer.  However, I had already taken the steps you suggested.  Oddly, your quoted area doesn't show them, I'll try formatting the original steps differently:

The steps I'm using are:

  Checkout the CE Git tree as documented  here: http://www.jetbrains.org/pages/viewpage.action?pageId=983225

  Build this with Ant

  Unpack the resulting artifact to  ~/idea-community

  Open IDEA Ultimate

  Go to Project  Structure -> Project -> New SDK

  Add ~/idea-community

As you can see this seems to match what you were suggesting, however I get the error messages.

Thanks,
Steve

0
Comment actions Permalink

Hello Steve,

When creating an SDK, you need to select correct SDK type (IntelliJ IDEA
SDK rather than JSDK).

I'm a newbie to using IDEA and am exploring plugin development.
However I'm having problems setting up the dev environment with IDEA
9.0 and the CE source, as documented here:

http://www.jetbrains.org/display/IJOS/Writing+Plug-ins

The steps I'm using are:

  • Checkout the CE Git tree as documented here:

http://www.jetbrains.org/pages/viewpage.action?pageId=983225

  • Build this with Ant

  • Unpack the resulting artifact to ~/idea-community

  • Open IDEA Ultimate

  • Go to Project Structure -> Project -> New SDK

  • Add ~/idea-community


However I consistently get the error message "The selected directory
is not a valid home for JSDK".

I have also seen this problem following the instructions for IDEA 8
and the dev kit, so I suspect this is a misunderstanding on my part.
Any hints on what I'm doing wrong would be appreciated.

Thanks,
Steve
---
Original message URL:
http://www.jetbrains.net/devnet/message/5250023#5250023

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


0
Comment actions Permalink

In addition to that, make sure your IDEA-SDK points to your Intellij9 installation directory, and NOT the communitiy edition. Look at the screenie, it's the configuration for the IDEA_SDK as I have defined it.

/usr/local/IntelliJ-9 is the installationfolder for my IDEA Ultimate. See also thread here: http://www.jetbrains.net/devnet/thread/285573?tstart=0

notes4.png
Edit: this thread is over a month old... Sorry

Message was edited: this thread is over a month old... Sorry

0

Please sign in to leave a comment.