Skip to content

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

@cavapoo2

Description

@cavapoo2

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions