Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Issues using Ensime and Clippy #57

Open
jqno opened this issue May 5, 2017 · 7 comments
Open

Issues using Ensime and Clippy #57

jqno opened this issue May 5, 2017 · 7 comments

Comments

@jqno
Copy link

jqno commented May 5, 2017

I'm trying to use both Ensime and Clippy on the same machine, but they don't seem to enjoy each other's company 馃槄. I'm not sure whether to raise the issue here or with Ensime, but since I'm seeing a stacktrace with Clippy-related things, I'm starting here. Please let me know if I should bring this to Ensime.

Anyway, Clippy is running quite well on my machine, but when I'm trying to open my project in Vim with Ensime, Ensime suddenly stops working. After some frustrations, I finally found this in the Ensime logs:

java.lang.ClassCastException: com.softwaremill.clippy.InjectReporter$$anon$1 cannot be cast to scala.tools.nsc.Global$GlobalPhase
	at scala.tools.nsc.Global$Run$$anonfun$compileLate$2$$anonfun$apply$1.apply(Global.scala:1607)
	at scala.tools.nsc.Global$Run$$anonfun$compileLate$2$$anonfun$apply$1.apply(Global.scala:1607)
	at scala.reflect.internal.SymbolTable.enteringPhase(SymbolTable.scala:235)
	at scala.tools.nsc.Global$Run$$anonfun$compileLate$2.apply(Global.scala:1607)
	at scala.tools.nsc.Global$Run$$anonfun$compileLate$2.apply(Global.scala:1606)
	at scala.collection.Iterator$class.foreach(Iterator.scala:750)
	at scala.collection.AbstractIterator.foreach(Iterator.scala:1202)
	at scala.tools.nsc.Global$Run.compileLate(Global.scala:1606)
	at scala.tools.nsc.interactive.Global.scala$tools$nsc$interactive$Global$$parseAndEnter(Global.scala:656)
	at scala.tools.nsc.interactive.Global.backgroundCompile(Global.scala:562)
at scala.tools.nsc.interactive.PresentationCompilerThread.run(PresentationCompilerThread.scala:25)

Here's the complete log, in case it's relevant.

When I remove Clippy from my global build settings, Ensime works fine again.

@gigiigig
Copy link

gigiigig commented May 8, 2017

I'm having the same issue.

@smungee
Copy link

smungee commented Jul 24, 2017

I've seen this problem too

@jan0sch
Copy link

jan0sch commented Nov 23, 2017

I can confirm this but I wonder if this is more an issue on the Ensime side...

@dragos
Copy link

dragos commented May 9, 2018

Clippy should play nice and extend GlobalPhase, as everyone else ;-)

@michelemauro
Copy link

This happens on Eclipse Scala IDE too: if you add the clippy plugin to an sbt-eclipse controlled project, Scala IDE loses the worksheet functionality and in general starts to have (more than usual) problems with highlighting and compiling.

@adamw
Copy link
Member

adamw commented May 11, 2018

@dragos do you have any specific way to fix this problem? Hints appreciated (not to mention PRs of course ;) )

@quasi-coherent
Copy link

Having this problem too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants