-
Notifications
You must be signed in to change notification settings - Fork 0
How to work with prototype
Alexey Grishin edited this page Jan 8, 2014
·
2 revisions
- Download the prototype from here
- Unpack
pal-server-0.5.zip
and runserver.bat
(you need java to be installed and added to PATH) - Try to open http://localhost:4567/languages in browser - you shall see response like this
{"ok":true,"value":["ruby","java"]}
- Run Idea or RubyMine and add pal plugin (
idea-plugin.zip
from release)
- Create any file or class to insert code to
- Open 'Edit' menu - you'll find new item 'Lookup for Pal function...'
- Click on it and type something - for example 'cap' (there are 3 functions only in this prototype :( )
- Select function to use and hit 'Enter'. You'll find that Pal class (module for ruby) was added to the source tree and call to the function added into the current file.
- Write 'Pal.' and hit 'Ctrl + Space' to get code completion dialog. You'll see both already added functions and available functions from server. If you select function which is not present in the code it will be downloaded from server.
- Take a look at the Pal class (or module, if you ran RubyMine) - it contains only functions you need and their dependencies
As this is just prototype then there are a lot of issues:
- direct changes to Pal class are not processed until IDE is restarted. So if you'd like to delete Pal class then please restart IDE, otherwise plugin will think that Pal class is still on its place