Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scala compilation issue #557

Open
ppllaxxa opened this issue May 7, 2024 · 1 comment
Open

Scala compilation issue #557

ppllaxxa opened this issue May 7, 2024 · 1 comment

Comments

@ppllaxxa
Copy link

ppllaxxa commented May 7, 2024

Hello, maybe somebody had the same issue, or maybe there is som scala experts.

Once we updated library from "com.jcraft" % "jsch" % "0.1.55" to "com.github.mwiede" % "jsch" % "0.2.16"
We are seeing strang compilation error:

scala.reflect.internal.FatalError:
bad constant pool index: 0 at 50924
while compiling: <some_our_class>
during phase: globalPhase=jvm, enteringPhase=namer
library version: version 2.12.6
compiler version: version 2.12.6
last tree to typer: Ident (_root_)
tree position: line 8 of <some_our_class>
tree tpe: <root>
symbol: final package _root_
symbol definition: final package _root_ (a RootPackage)
symbol package: <none>
symbol owners: package _root_
call site: package sftp in package file in package file

== Source file context for tree position ==

5 import com.jcraft.jsch.Session;
6 import com.jcraft.jsch.SftpATTRS;
7 import com.jcraft.jsch.SftpException;
8 import com.jcraft.jsch.ChannelSftp;

SBT version 0.13.17
scala version 2.12.6
Java 8

Maybe somebody could advise what is the problem?

@norrisjeremy
Copy link
Contributor

Hi @ppllaxxa,

I'm not very familiar with Scala, but some simple Google searches suggest this could be some sort of bug with the Scala compiler that is fixed if you upgrade to a newer version of SBT and/or Scala.

Thanks,
Jeremy

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

No branches or pull requests

2 participants