scala.reflect.internal.Positions$ValidateException: Enclosing tree [6840] does not include tree [6839]


Solutions on the web

Solution icon of googlegroups
via Google Groups by Unknown author, 1 year ago
Enclosing tree [6840] does not include tree [6839]

Solution icon of googlegroups
via Google Groups by Georgi Jojgov, 1 year ago
Enclosing tree [82] does not include tree [81]

Solution icon of github
Enclosing tree [2507] does not include tree [2506]

Solution icon of github
Synthetic tree [1364] contains nonsynthetic tree [1363]

Solution icon of github
Unpositioned tree #14694

Solution icon of github
Unpositioned tree #931

Stack trace

scala.reflect.internal.Positions$ValidateException: Enclosing tree 
 [6840] does not include tree [6839]
	at scala.reflect.internal.Positions$class.positionError$1(Positions.scala:102)
	at scala.reflect.internal.Positions$class.validate$1(Positions.scala:124)
	at scala.reflect.internal.Positions$class.validate$1(Positions.scala:142)
	at scala.reflect.internal.Positions$class.validate$1(Positions.scala:142)
	at scala.reflect.internal.Positions$class.validate$1(Positions.scala:142)
	at scala.reflect.internal.Positions$class.validate$1(Positions.scala:142)
	at scala.reflect.internal.Positions$class.validate$1(Positions.scala:142)
	at scala.reflect.internal.Positions$class.validate$1(Positions.scala:142)
	at scala.reflect.internal.Positions$class.validate$1(Positions.scala:142)
	at scala.reflect.internal.Positions$class.validate$1(Positions.scala:142)
	at scala.reflect.internal.Positions$class.validate$1(Positions.scala:142)
	at scala.reflect.internal.Positions$class.validate$1(Positions.scala:142)
	at scala.reflect.internal.Positions$class.validatePositions(Positions.scala:147)

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 are the first who have seen this exception. Write a tip to help other users and build your expert profile.