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

Can't import class file into REPL if lazy logging enabled #78

Open
cavapoo2 opened this issue Mar 5, 2017 · 0 comments
Open

Can't import class file into REPL if lazy logging enabled #78

cavapoo2 opened this issue Mar 5, 2017 · 0 comments
Labels

Comments

@cavapoo2
Copy link

cavapoo2 commented Mar 5, 2017

Im not sure if this is my fault.
So far lazy logging is working perfectly (i can see log traces in my console and the output file contains correct log traces also).
If i go to where my class files are located in target directory (say the source is called Reference.scala and class file is called Reference.class), then in REPL if i do:

import Reference._

i get

java.lang.IllegalArgumentException: requirement failed: package scalalogging
at scala.reflect.internal.Types$ModuleTypeRef.(Types.scala:1879)
at scala.reflect.internal.Types$PackageTypeRef.(Types.scala:1897)
at scala.reflect.internal.Types$TypeRef$.apply(Types.scala:2401)
at scala.reflect.internal.Types.typeRef(Types.scala:3553)
at scala.reflect.internal.Types.typeRef$(Types.scala:3536)
at scala.reflect.internal.SymbolTable.typeRef(SymbolTable.scala:16)
at scala.reflect.internal.Symbols$TypeSymbol.newTypeRef(Symbols.scala:3026)
at scala.reflect.internal.Symbols$TypeSymbol.updateTypeCache(Symbols.scala:3079)
at scala.reflect.internal.Symbols$TypeSymbol.maybeUpdateTypeCache(Symbols.scala:3065)
at scala.reflect.internal.Symbols$TypeSymbol.tpe_$times(Symbols.scala:3043)
at scala.reflect.internal.Symbols$Symbol.typeOfThis(Symbols.scala:2020)
at scala.reflect.internal.Types$ThisType.underlying(Types.scala:1184)
at scala.reflect.internal.Types$SimpleTypeProxy.baseClasses(Types.scala:162)
at scala.reflect.internal.Types$SimpleTypeProxy.baseClasses$(Types.scala:162)
at scala.reflect.internal.Types$SingletonType.baseClasses(Types.scala:1088)
at scala.reflect.internal.tpe.FindMembers$FindMemberBase.(FindMembers.scala:17)
at scala.reflect.internal.tpe.FindMembers$FindMember.(FindMembers.scala:219)

is there a way around this issue ?

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

No branches or pull requests

2 participants