Re: IntelliScala plugin released
Bill Venners <bv-jackrabbit <at> artima.com>
2007-03-01 21:02:46 GMT
Hi Eugene,
Well I spent a couple hours working on Scala code in the plug-in. The
syntax problem red underliner worked for a while, then stopped,
though it will probably work again when I restart. The syntax
highlighting seemed perfect. Refactor-->Rename didn't work, though it
did show up on the menu. When I selected it I just got nothing, and
it may work when I restart. At some point I think it got a bit
confused. But it's not bad for version 0.1.
One question I have is will we be able to have different code style
settings for Java and Scala. I've always used 4 space indentation for
Java, but have gotten used to 2 space indentation in my small amount
of Scala programming experience. The plug-in wants to indent the
Scala code 4 spaces.
Thanks.
Bill
----
Bill Venners
President
Artima, Inc.
http://www.artima.com
On Mar 1, 2007, at 9:02 AM, Eugene Vigdorchik wrote:
>
> Hello Bill,
>
> The reason that comes to my mind is that you have IntelliJ 6.0, and
> the plugin requires 7.0 EAP available on IntelliJ site
> http://www.intellij.net We had to request some modifications to
> IDEA core to support e.g. debugging scala:(
>
> Eugene.
>
>> -----Original Message-----
>> From: Bill Venners [mailto:bv-svp <at> artima.com]
>> Sent: Thursday, March 01, 2007 7:48 PM
>> To: Eugene Vigdorchik
>> Cc: scala <at> listes.epfl.ch
>> Subject: Re: IntelliScala plugin released
>>
>> Hi Eugene,
>>
>> I was unable to see a Scala plug-in listed in Available plug-ins.
>> (And it's was not installed at that point either.) I was able to see
>> it on the website at:
>>
>> http://plugins.intellij.net/plugin/?id=1347
>>
>> I don't see a way to actually install a plug-in that isn't on the
>> list. It seems like the problem is likely that either it didn't get
>> added to the list of plugins, which I can see IntelliJ trying to
>> download each time, or I'm not able to download the latest list of
>> plugins.
>>
>> Any suggestions, including how to install a plug-in by hand?
>> I tried just moving the Jar files into Scala/lib in the plugins
>> directory, and upon restarting IntelliJ, "Scala"
>> showed up magically in my list of installed plug-ins, but I got the
>> stack trace pasted below my signature.
>>
>> Thanks.
>>
>> Bill
>> ----
>> Bill Venners
>> President
>> Artima, Inc.
>> http://www.artima.com
>>
>> Here's the stack trace:
>>
>> com.intellij.openapi.project.Project.getMessageBus()Lcom/intellij/
>> util/messages/MessageBus;
>> java.lang.NoSuchMethodError:
>> com.intellij.openapi.project.Project.getMessageBus()Lcom/intellij/
>> util/messages/MessageBus;
>> at
>> org.jetbrains.plugins.scala.cache.module.ScalaModuleCachesManager
>> $3.run(Unknown Source)
>> at com.intellij.ide.startup.impl.StartupManagerImpl.a
>> (StartupManagerImpl.java:15)
>> at
>> com.intellij.ide.startup.impl.StartupManagerImpl.runPostStartu
>> pActivitie
>> s(StartupManagerImpl.java:35)
>> at
>> com.intellij.openapi.project.impl.ProjectManagerImpl.openProject
>> (ProjectManagerImpl.java:193)
>> at
>> com.intellij.openapi.project.impl.ProjectManagerImpl.loadAndOp
>> enProject(
>> ProjectManagerImpl.java:19)
>> at
>> com.intellij.ide.impl.ProjectUtil.openProject(ProjectUtil.java:38)
>> at com.intellij.idea.IdeaApplication.c(IdeaApplication.java:27)
>> at
>> com.intellij.idea.IdeaApplication.access$400(IdeaApplication.java:
>> 10)
>> at com.intellij.idea.IdeaApplication$IdeStarter$2.run
>> (IdeaApplication.java:1)
>> at com.intellij.openapi.application.impl.LaterInvocator
>> $FlushQueue.run(LaterInvocator.java:16)
>> at
>> java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
>> at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
>> at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:8)
>> at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:36)
>> at
>> com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:184)
>> at java.awt.EventDispatchThread.pumpOneEventForHierarchy
>> (EventDispatchThread.java:269)
>> at java.awt.EventDispatchThread.pumpEventsForHierarchy
>> (EventDispatchThread.java:190)
>> at
>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
>> 184)
>> at
>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
>> 176)
>> at
>> java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
>>
>>
>>
>> java.lang.AbstractMethodError
>> at com.intellij.lexer.FlexAdapter.start(FlexAdapter.java:57)
>> at com.intellij.lexer.FlexAdapter.start(FlexAdapter.java:49)
>> at com.intellij.lexer.MergingLexerAdapter.start
>> (MergingLexerAdapter.java:39)
>> at
>> com.intellij.lang.impl.PsiBuilderImpl.<init>(PsiBuilderImpl.java:
>> 124)
>> at com.intellij.peer.impl.PeerFactoryImpl.createBuilder
>> (PeerFactoryImpl.java:4)
>> at com.intellij.psi.tree.IChameleonElementType.parseContents
>> (IChameleonElementType.java:57)
>> at com.intellij.psi.impl.source.tree.ChameleonElement.transform
>> (ChameleonElement.java:6)
>> at
>> com.intellij.psi.impl.source.parsing.ChameleonTransforming.transform
>> (ChameleonTransforming.java:15)
>> at
>> com.intellij.psi.impl.source.tree.ChameleonElement.getTransfor
>> medFirstOr
>> Self(ChameleonElement.java:27)
>> at
>> com.intellij.psi.impl.source.tree.SharedImplUtil.getFirstChild
>> (SharedImplUtil.java:19)
>> at
>> com.intellij.psi.impl.source.TreeWrapperPsiElement.getFirstChild
>> (TreeWrapperPsiElement.java:92)
>> at
>> org.jetbrains.plugins.scala.lang.psi.ScalaPsiElement$$anon$0$$anon
>> $1.<init>(ScalaPsiElement.scala:50)
>> at org.jetbrains.plugins.scala.lang.psi.ScalaPsiElement$$anon
>> $0.elements(ScalaPsiElement.scala:44)
>> at org.jetbrains.plugins.scala.lang.psi.ScalaPsiElement$$anon
>> $0.elements(ScalaPsiElement.scala:43)
>> at scala.Iterable$class.foldRight(Iterable.scala:283)
>> at org.jetbrains.plugins.scala.lang.psi.ScalaPsiElement$$anon
>> $0.foldRight(ScalaPsiElement.scala:43)
>> at scala.Iterable$class.$colon$bslash(Iterable.scala:294)
>> at
>> org.jetbrains.plugins.scala.lang.psi.ScalaPsiElement$$anon$0.
>> $colon$bslash(ScalaPsiElement.scala:43)
>> at org.jetbrains.plugins.scala.lang.psi.ScalaFile.getTmplDefs
>> (ScalaFile.scala:35)
>> at
>> org.jetbrains.plugins.scala.lang.psi.javaView.ScJavaFile.getClasses
>> (ScJavaFile.scala:44)
>> at
>> org.jetbrains.plugins.scala.cache.info.ScalaInfoFactory.create
>> ScalaFileI
>> nfo(Unknown Source)
>> at
>> org.jetbrains.plugins.scala.cache.ScalaFilesCacheImpl.createSc
>> alaFileInf
>> o(Unknown Source)
>> at
>> org.jetbrains.plugins.scala.cache.ScalaFilesCacheImpl.regenera
>> teFileInfo
>> (Unknown Source)
>> at
>> org.jetbrains.plugins.scala.cache.ScalaFilesCacheImpl.getUp2Da
>> teFileInfo
>> (Unknown Source)
>> at
>> org.jetbrains.plugins.scala.cache.ScalaFilesCacheImpl.addScala
>> FileInfos(
>> Unknown Source)
>> at
>> org.jetbrains.plugins.scala.cache.ScalaFilesCacheImpl.access$400
>> (Unknown Source)
>> at org.jetbrains.plugins.scala.cache.ScalaFilesCacheImpl$1.run
>> (Unknown Source)
>> at
>> com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess
>> (ProgressManagerImpl.java:38)
>> at com.intellij.openapi.application.impl.ApplicationImpl
>> $1MyThread.run(ApplicationImpl.java:12)
>>
>>
>>
>>
>>
>> On Mar 1, 2007, at 7:43 AM, Eugene Vigdorchik wrote:
>>
>>> Hello All,
>>>
>>> We've released the plugin for Scala version 0.1. You can
>> find it in
>>> the plugin repository available directly in IntelliJ.
>>> The feature highlights are as follows: syntax highlighting,
>>> formatting, parsing errors highlighting, folding, surround
>> with, file
>>> structure outline, keyword completion, goto class, compilation (with
>>> no dependent files calculation yet), debugging, cross-language
>>> resolve of types/find usages/rename of classes and traits.
>>> Hope you find this plugin useful.
>>>
>>> Enjoy,
>>> Scala plugin development team
>>>
>>>
>>
>>
>>
>>
>>
>>
>
>