-
-
Notifications
You must be signed in to change notification settings - Fork 75
Getting started
#Installation
- Install IntelliJ IDEA from JetBrains site (you may also use other JB IDE).
- Go to
Settings -> Plugins -> Browse repository
and install Camelcade plugin - Restart IDEA
- Before starting, please, check out the list of implemented features and known issues.
Choose File -> New -> Project
:
Open project structure:
Goto Platform Settings -> SDK
and choose add Perl Interpreter:
In opened directory choosing dialog you should select a bin directory where perl executable is located. Usually, this directory is already selected in opened dialog. Click Ok.
If everything went right, you'll see Perl interpreter string and classpaths will be filled with Perl's @INC
paths:
If paths were not added automatically, you may add them manually. Don't forget to report the problem into our issue tracker (specify IDE name, version and your OS).
After that, go to Project
tab and choose added Perl Interpreter there:
#Creating and configuring a module
Go to Modules tab and choose Add: New Module
:
In opened dialog choose Perl5 module
:
Type module name, choose content root and module file (iml) location:
Choose added Perl Interpreter:
If you've done everything right, you'll see something like this:
Here you may mark directories of your module as Sources and Tests. Also you may Exclude some directories to avoid searching sources in there:
To let Camelcade search for package files, you should add your lib directory (what you are doing with -I parameter of Perl interpreter). On the Dependencies
tab, choose Add -> JARs or directories...
and select your lib directory:
Remember, all packages being resolved relatively to one of the lib dirs: module or SDK-specific.
In opened directory type dialog choose Classes
:
Move your module lib directory above the SDK's one. Otherwise, Camelcade may find package in Perl's lib path if module is already installed:
#How should it look like
If everything was done right, you'll see a similar picture:
- You module
- Colorized directories of your module (depending on type)
- Your lib directory will have annotation
library home
Enjoy!
- Home
- Getting started
- Features
- Languages & Frameworks
- Integration
- Version Managers
- Misc