Need help to get Scala Compiler Plugin to work in Scala IDE

52 views
Skip to first unread message

monster

unread,
Oct 15, 2011, 10:11:04 AM10/15/11
to Scala IDE User
I'm writing a Scala Compiler Plugin. It's currently called
scalawrapper (but I might find a better name later). I have the
Typesafe Stack installed, and I put my plugin in it under:

C:\Program Files\typesafe-stack\misc\scala-devel\plugins

Now I can call scalac like this:

scalac -classpath ... -Xplugin-require:scalawrapper test\...

and it finds and uses my plugin automatically.

Unfortunately, I just can't get the Scala-IDE to use it. I always get
"Missing required plugin: scalawrapper". In the "Project Properties
\Scala Compiler (Use Project Settings)\Advanced" tab, I have entered
scalawrapper in the Xplugin-require field, and that works, since I get
the error. But nothing I can type in Xpluginsdir seem to have any
effect.

I have tried the absolute path given above, have tried with forward
and backward slashes, have tried a temporary directory without spaces
in it, have tried relative to project directory, have tried relative
to workspace. It just will not use anything. I should also note that
is is not specific to my own plugin, as I tried to use the ScalaCL
plugin before in a previous version of the Scala-IDE, and failed for
the exact same reason.

I have just updated today (15.10.2011) and so should have the latest
version (it seems I can finally explicitly set the indentation to 4,
but maybe I just overlooked the setting in the past).

Can someone tell me what it actually expects, and what is uses as
default when I don't put anything in Xpluginsdir?

iulian dragos

unread,
Oct 25, 2011, 3:45:28 PM10/25/11
to scala-i...@googlegroups.com

This should work. What version of the plugin are you using (also, for
what compiler version)?

iulian

--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais

Matthew Farwell

unread,
Oct 27, 2011, 7:08:26 AM10/27/11
to scala-i...@googlegroups.com
Iulian, the OP asked the same question on Stack Overflow, where I answered it:


Matthew.
Reply all
Reply to author
Forward
0 new messages