Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing unboundid ldap in scala ... strange compile error
    primarykey
    data
    text
    <p>I am trying to use LDAP via unboundid in scala but the compiler keeps crashing.</p> <p>I just created an object that looks like this: </p> <pre><code>package utils import com.unboundid.ldap.sdk._ object LdapHelper { val ldap = LDAPConnection("ldap.example.com", 389) } </code></pre> <p>I added this: "com.unboundid" % "unboundid-ldapsdk" % "2.3.1" to my appDependencies in Build.scala. I use Play 2.1 and Scala Version 2.10.1.</p> <p>I get a very strange error message (see below): </p> <p>The error message is so strange that i really dont know where to begin to look for hints. Not sure if the problem is in unboundid, play, scala, sbt?</p> <p>How can i successfully integrate unboundid in my scala project?</p> <p>Thanks</p> <hr> <p>Error in Scala compiler: assertion failed: while compiling: C:\play\todolist\app\utils\LdapHelper.scala during phase: global=typer, atPhase=parser library version: version 2.10.2 compiler version: version 2.10.2 reconstructed args: -classpath C:\play\todolist.target;C:\eclipse\scala-SDK-3.0.1-vfinal-2.10-win32.win32.x86_64\configuration\org.eclipse. </p> <p>...</p> <p>last tree to typer: Ident(LDAPConnection) symbol: (flags: ) symbol definition: symbol owners: context owners: value ldap -> object LdapHelper -> package utils</p> <p>== Enclosing template or block ==</p> <p>Template( // val : in object LdapHelper "java.lang.Object" // parents ValDef( private "_" ) // 3 statements DefDef( // def : in object LdapHelper "" [] List(Nil) Block( Apply( super."" Nil ) () ) ) DefDef( // def x: in object LdapHelper "x" [] Nil () ) ValDef( // private[this] val ldap: in object LdapHelper private "ldap" Apply( "LDAPConnection" // 2 arguments "ldap.example.com" 389 ) ) )</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload