Talk:SetUp jEdit

From Lift

Jump to: navigation, search

Contents

Missing classworlds.jar

The instructions don't work. I get the following error when launching jEdit after unzipping the files into the .jedit/jar directory.--Czerwonka 16:56, 10 February 2008 (PST)

Image:error_loading_plugins.png

fix in ScalaMiniIDEPlugin-0.2 Thanks for reporting the bug.

I still see the bug in that version. Same problem. I'm not sure it's a spaces problem since I look inot that directory and the jar is missing. It very well could be for the second problem. It'd be *nice* to get this working with the new 2.7.0 release candidate too. Will it just be a matter of replacing the scala-libary.jar? --Czerwonka 05:40, 11 February 2008 (PST)

It's Working

You need to grab the MvnPlugin archive separately, as it contains the missing classworlds.jar.

Compilation isn't working

I followed the installation instructions. I'm running JRE 1.5 and Scala 2.7.1 on Windows Vista (I know, LOL). Both of these are in my C:\Program Files\ directory. When I created the example Hello.scala program in JEdit, and saved it, syntax highlighting immediately started working, but the ScalaMiniIDE does not seem to compile the file.

I even tried moving Scala to C:\, and I changed the Scala Home pointer for ScalaMiniIDE using Plugins -> Plugin Options -> ScalaMiniIDE. But this didn't seem to work either. I then downloaded Scala 2.6.1. I placed it in C:\ and again reset the ScalaMiniIDE to point to it. But it still isn't compiling the Hello.scala file when I edit and save it.

I then saw on the Plugins menu that ScalaMiniIDE show up. Mousing over it shows a list of commands, one is "compile". This produced an error, all right, but not what I was expecting. A BeanShell Error popup appeared with the following:

java.lang.NullPointerException
	at scala.runtime.BoxedObjectArray.filter(BoxedObjectArray.scala:49)
	at net.sf.alchim.jedit.scala.ScalaMiniIDE$.net$sf$alchim$jedit$scala$ScalaMiniIDE$$findJars(ScalaMiniIDE.scala:123)
	at net.sf.alchim.jedit.scala.ScalaMiniIDE$$anonfun$net$sf$alchim$jedit$scala$ScalaMiniIDE$$findJars$2.apply(ScalaMiniIDE.scala:123)
	at net.sf.alchim.jedit.scala.ScalaMiniIDE$$anonfun$net$sf$alchim$jedit$scala$ScalaMiniIDE$$findJars$2.apply(ScalaMiniIDE.scala:123)
	at scala.List.flatMap(List.scala:1036)
	at net.sf.alchim.jedit.scala.ScalaMiniIDE$.net$sf$alchim$jedit$scala$ScalaMiniIDE$$findJars(ScalaMiniIDE.scala:123)
	at net.sf.alchim.jedit.scala.ScalaMiniIDE$$anonfun$net$sf$alchim$jedit$scala$ScalaMiniIDE$$findJars$2.apply(ScalaMiniIDE.scala:123)
	at net.sf.alchim.jedit.scala.ScalaMiniIDE$$anonfun$net$sf$alchim$jedit$scala$ScalaMiniIDE$$findJars$2.apply(ScalaMiniIDE.scala:123)
	at scala.List.flatMap(List.scala:1036)
	at net.sf.alchim.jedit.scala.ScalaMiniIDE$.net$sf$alchim$jedit$scala$ScalaMiniIDE$$findJars(ScalaMiniIDE.scala:123)
	at net.sf.alchim.jedit.scala.ScalaMiniIDE$$anonfun$net$sf$alchim$jedit$scala$ScalaMiniIDE$$findJars$2.apply(ScalaMiniIDE.scala:123)
	at net.sf.alchim.jedit.scala.ScalaMiniIDE$$anonfun$net$sf$alchim$jedit$scala$ScalaMiniIDE$$findJars$2.apply(ScalaMiniIDE.scala:123)
	at scala.List.flatMap(List.scala:1036)
	at net.sf.alchim.jedit.scala.ScalaMiniIDE$.net$sf$alchim$jedit$scala$ScalaMiniIDE$$findJars(ScalaMiniIDE.scala:123)
	at net.sf.alchim.jedit.scala.ScalaMiniIDE$.findClasspathAsList(ScalaMiniIDE.scala:118)
	at net.sf.alchim.jedit.scala.ScalaMiniIDE$.findClasspath(ScalaMiniIDE.scala:113)
	at net.sf.alchim.jedit.scala.ScalaMiniIDE$.compile(ScalaMiniIDE.scala:46)
	at net.sf.alchim.jedit.scala.ScalaMiniIDE.compile(ScalaMiniIDE.scala)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)

Anyone else seen this? It's probably a configuration error on my part. I'm new to JEdit, but I went through the install/configuration twice. One thing I'd like to point out in the configuration instructions. When adding the Scala Error Patterns you have to click the Test/Commit button before clicking on the OK button. Otherwise all edits are lost.

Response

Strange :(, could you give me more information : version of jEdit, version of the ScalaMiniIDEPlugin ? I'll take a look this week. /davidB


David, Here are the versions:

Environment:
  Windows Vista, with service pack 1
  Java 1.6.0_05 (i was wrong in the early post thinking it was 1.5)
  Scala 2.6.1 (I also tried 2.7.1)
  JEdit 4.3pre14
JEdit Plugins:
  Console		4.3.7	Loaded
  ErrorList		1.7	Loaded
  Latest Version Check	1.5	Loaded
  Maven2 Plugin		1.3	Loaded
  QuickNotepad		4.3	Loaded
  ScalaMiniIDE		0.3	Loaded
  ScalaPlugin		2.6.1	Loaded

Culprit Must be Vista

I just repeated these steps on Windows XP and everything worked fine. In the above "Compilation isn't working", there must be a problem when running on Windows Vista. This is odd, because most development tools that I've installed work fine on Vista. Has anyone got this to work in Windows Vista?

Not only Vista, Ubuntu Hardy too

I followed the guide with Hardy Heron and got the same error.

Ubuntu Hardy Heron, SUN Java 6, Scala 2.7.1, JEdit 4.3pre13 Plugins:

  • Console 4.3.7 Loaded <unknown>
  • ErrorList 1.7 Loaded <unknown>
  • Maven2 Plugin 1.3 Loaded <unknown>
  • ScalaMiniIDE 0.3 Loaded <unknown>
  • ScalaPlugin 2.6.1 Loaded <unknown>

In a Maven project it seems to work fine though.

Keep up the good work!

--Silvestre Zabala 15:08, 4 July 2008 (PDT)

Personal tools