org.scalameta.invariants.InvariantFailedException

invariant failed: when verifying ScalametaTokenizer.this.input.chars.apply(curr.endOffset.+(1)).==('\"') found that ScalametaTokenizer.this.input.chars.apply(curr.endOffset.+(1)) is not equal to '\"' where ScalametaTokenizer = scala.meta.internal.tokenizers.ScalametaTokenizer@334ebcaa

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2

  • invariant failed: when verifying ScalametaTokenizer.this.input.chars.apply(curr.endOffset.+(1)).==('\"') found that ScalametaTokenizer.this.input.chars.apply(curr.endOffset.+(1)) is not equal to '\"' where ScalametaTokenizer = scala.meta.internal.tokenizers.ScalametaTokenizer@334ebcaa
  • via GitHub by DavidDudson
    , 8 months ago
    invariant failed: when verifying pats.forall(((x$14: scala.meta.Pat) => scala.meta.classifiers.`package`.XtensionClassifiable[scala.meta.Pat](x$14)(scala.meta.Tree.classifiable[scala.meta.Pat]).is[Term.Name](Term.this.Name.ClassifierClass
  • Stack trace

    • org.scalameta.invariants.InvariantFailedException: invariant failed: when verifying ScalametaTokenizer.this.input.chars.apply(curr.endOffset.+(1)).==('\"') found that ScalametaTokenizer.this.input.chars.apply(curr.endOffset.+(1)) is not equal to '\"' where ScalametaTokenizer = scala.meta.internal.tokenizers.ScalametaTokenizer@334ebcaa at org.scalameta.invariants.InvariantFailedException$.raise(Exceptions.scala:15) at scala.meta.internal.tokenizers.ScalametaTokenizer.emitContents$1(ScalametaTokenizer.scala:222) at scala.meta.internal.tokenizers.ScalametaTokenizer.loop$1(ScalametaTokenizer.scala:231) at scala.meta.internal.tokenizers.ScalametaTokenizer.uncachedTokenize(ScalametaTokenizer.scala:246) at scala.meta.internal.tokenizers.ScalametaTokenizer.tokenize(ScalametaTokenizer.scala:34) at scala.meta.internal.tokenizers.ScalametaTokenizer$$anon$2.apply(ScalametaTokenizer.scala:262) at scala.meta.tokenizers.Api$XtensionTokenizeDialectInput.tokenize(Api.scala:23) at scala.meta.tokenizers.Api$XtensionTokenizeInputLike.tokenize(Api.scala:12) at scala.meta.internal.parsers.ScalametaParser.scannerTokens$lzycompute(ScalametaParser.scala:204) at scala.meta.internal.parsers.ScalametaParser.scannerTokens(ScalametaParser.scala:204) at scala.meta.internal.parsers.ScalametaParser.<init>(ScalametaParser.scala:165) at scala.meta.internal.parsers.ScalametaParser$$anon$190.apply(ScalametaParser.scala:3596) at scala.meta.parsers.Api$XtensionParseDialectInput.parse(Api.scala:21) at scala.meta.parsers.Api$XtensionParseInputLike.parse(Api.scala:10)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.