Persistence "updating occurrence annotations" error

703 views
Skip to first unread message

biswanath chinta

unread,
Feb 4, 2015, 10:38:04 AM2/4/15
to scala-i...@googlegroups.com
I am getting this persistence error 

An internal error occurred during: "Updating occurrence annotations".
assertion failed: bad position: [268:189]

each time scala IDE restarts or come to focus. This started only today. 

I am using OS Yosemite. I cann't think of any change which I did to trigger the error except only one if it is relevant , previously was using java 1.6 but added this to 
.bash_profile for sbt to use java 1.7 but yosemite comes with java 1.8 

export JAVA_HOME="/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home" 

Having since removed this line from bash_profile and restarted the machine. Also let me know the location of log files, if any are generated. I will provide those too. 

Also let me if there is any other information you need.

Thanks in advance for the help.

Simon Schäfer

unread,
Feb 4, 2015, 11:02:37 AM2/4/15
to scala-i...@googlegroups.com

On 02/04/2015 04:38 PM, biswanath chinta wrote:
I am getting this persistence error 

An internal error occurred during: "Updating occurrence annotations".
assertion failed: bad position: [268:189]

each time scala IDE restarts or come to focus. This started only today. 

I am using OS Yosemite. I cann't think of any change which I did to trigger the error except only one if it is relevant , previously was using java 1.6 but added this to 
.bash_profile for sbt to use java 1.7 but yosemite comes with java 1.8 

export JAVA_HOME="/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home" 

Having since removed this line from bash_profile and restarted the machine. Also let me know the location of log files, if any are generated. I will provide those too.

The log file can be opened with "Scala > Open the log". You can also see the errors in the error log view. Please report the stack traces. If you can it would be even more useful if you provide the content of the file that produced the error.

Also let me if there is any other information you need.

Thanks in advance for the help.

--
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/f7ff543a-8e06-49da-8163-83f60308f97d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

biswanath chinta

unread,
Feb 4, 2015, 11:56:06 AM2/4/15
to scala-i...@googlegroups.com
Thanks for the quick reply and following the stack trace and logs.

This is the stack trace from error log view 

eclipse.buildId=4.0.0-rc2-20141030-1206-Typesafe
java.version=1.6.0_65
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -keyring /Users/biswanaths/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -keyring /Users/biswanaths/.eclipse_keyring -showlocation

This is a continuation of log file /Users/biswanaths/workspace/.metadata/.bak_0.log
Created Time: 2015-02-04 22:20:59.606

Error
Wed Feb 04 22:20:59 GMT+05:30 2015
An internal error occurred during: "Updating occurrence annotations".

java.lang.AssertionError: assertion failed: bad position: [268:189]
at scala.reflect.internal.util.Position$.validate(Position.scala:34)
at scala.reflect.internal.util.Position$.range(Position.scala:51)
at scala.reflect.internal.util.InternalPositionImpl$class.copyRange(Position.scala:205)
at scala.reflect.internal.util.InternalPositionImpl$class.withStart(Position.scala:124)
at scala.reflect.internal.util.Position.withStart(Position.scala:12)
at scala.tools.refactoring.common.PimpedTrees$BlockExtractor$$anonfun$1.applyOrElse(PimpedTrees.scala:1094)
at scala.tools.refactoring.common.PimpedTrees$BlockExtractor$$anonfun$1.applyOrElse(PimpedTrees.scala:1083)
at scala.collection.immutable.List.collect(List.scala:303)
at scala.tools.refactoring.common.PimpedTrees$BlockExtractor$.fixNamedArgumentCall$1(PimpedTrees.scala:1083)
at scala.tools.refactoring.common.PimpedTrees$BlockExtractor$.unapply(PimpedTrees.scala:1121)
at scala.tools.refactoring.common.PimpedTrees$TemplateMethods$$anonfun$superConstructorParameters$1.applyOrElse(PimpedTrees.scala:489)
at scala.tools.refactoring.common.PimpedTrees$TemplateMethods$$anonfun$superConstructorParameters$1.applyOrElse(PimpedTrees.scala:488)
at scala.collection.immutable.List.collect(List.scala:303)
at scala.tools.refactoring.common.PimpedTrees$TemplateMethods.superConstructorParameters(PimpedTrees.scala:488)
at scala.tools.refactoring.common.TreeTraverser$TreeWithSymbolTraverser.traverse(TreeTraverser.scala:271)
at scala.tools.refactoring.common.TreeTraverser$TreeWithSymbolTraverser.traverse(TreeTraverser.scala:184)
at scala.reflect.api.Trees$Traverser$$anonfun$traverseStats$1$$anonfun$apply$1.apply$mcV$sp(Trees.scala:2498)
at scala.reflect.api.Trees$Traverser.atOwner(Trees.scala:2507)
at scala.reflect.api.Trees$Traverser.traverseStats(Trees.scala:2497)
at scala.reflect.internal.Trees$class.itraverse(Trees.scala:1319)
at scala.reflect.internal.SymbolTable.itraverse(SymbolTable.scala:16)
at scala.reflect.internal.SymbolTable.itraverse(SymbolTable.scala:16)
at scala.reflect.api.Trees$Traverser.traverse(Trees.scala:2475)
at scala.tools.refactoring.common.TreeTraverser$TreeWithSymbolTraverser.scala$tools$refactoring$common$TreeTraverser$Traverser$$super$traverse(TreeTraverser.scala:184)
at scala.tools.refactoring.common.TreeTraverser$Traverser$class.traverse(TreeTraverser.scala:26)
at scala.tools.refactoring.common.TreeTraverser$TreeWithSymbolTraverser.traverse(TreeTraverser.scala:356)
at scala.tools.refactoring.analysis.CompilationUnitIndexes$CompilationUnitIndex$.apply(CompilationUnitIndexes.scala:95)
at scala.tools.refactoring.analysis.GlobalIndexes$GlobalIndex$.apply(GlobalIndexes.scala:38)
at org.scalaide.core.internal.decorators.markoccurrences.ScalaOccurrencesFinder$$anonfun$findOccurrences$1$$anonfun$1$$anon$1$$anonfun$2$$anonfun$3.apply(ScalaOccurrencesFinder.scala:65)
at org.scalaide.core.internal.decorators.markoccurrences.ScalaOccurrencesFinder$$anonfun$findOccurrences$1$$anonfun$1$$anon$1$$anonfun$2$$anonfun$3.apply(ScalaOccurrencesFinder.scala:65)
at scala.tools.nsc.util.InterruptReq.execute(InterruptReq.scala:26)
at scala.tools.nsc.interactive.Global$$anonfun$pollForWork$1.apply$mcV$sp(Global.scala:444)
at scala.util.control.Breaks.breakable(Breaks.scala:38)
at scala.tools.nsc.interactive.Global.pollForWork(Global.scala:418)
at scala.tools.nsc.interactive.PresentationCompilerThread.run(PresentationCompilerThread.scala:22)

And this is the error log from last three days

2015-01-30 18:38:49,938  WARN [org.scalaide.ui.internal.reconciliation.ScalaReconciler] - ImplicitHighlightingPresenter - Timeout while waiting for `askLoadedTyped` during semantic highlighting.

2015-01-30 18:39:02,794  WARN [org.scalaide.ui.internal.reconciliation.ScalaReconciler] - ImplicitHighlightingPresenter - Timeout while waiting for `askLoadedTyped` during semantic highlighting.

2015-01-30 18:42:27,549  WARN [org.scalaide.ui.internal.reconciliation.ScalaReconciler] - ImplicitHighlightingPresenter - Timeout while waiting for `askLoadedTyped` during semantic highlighting.

2015-01-30 18:44:39,075  WARN [org.scalaide.ui.internal.reconciliation.ScalaReconciler] - ImplicitHighlightingPresenter - Timeout while waiting for `askLoadedTyped` during semantic highlighting.

2015-01-30 18:44:43,908  WARN [org.scalaide.ui.internal.reconciliation.ScalaReconciler] - ImplicitHighlightingPresenter - Timeout while waiting for `askLoadedTyped` during semantic highlighting.

2015-01-30 18:44:47,301  WARN [org.scalaide.ui.internal.reconciliation.ScalaReconciler] - ImplicitHighlightingPresenter - Timeout while waiting for `askLoadedTyped` during semantic highlighting.

2015-01-30 19:55:13,795  WARN [org.scalaide.ui.internal.reconciliation.ScalaReconciler] - ImplicitHighlightingPresenter - Timeout while waiting for `askLoadedTyped` during semantic highlighting.

2015-01-31 02:53:01,379  WARN [org.scalaide.ui.internal.reconciliation.ScalaReconciler] - ImplicitHighlightingPresenter - Timeout while waiting for `askLoadedTyped` during semantic highlighting.

2015-01-31 02:53:03,111  WARN [org.scalaide.ui.internal.reconciliation.ScalaReconciler] - ImplicitHighlightingPresenter - Timeout while waiting for `askLoadedTyped` during semantic highlighting.

2015-01-31 02:53:09,165  WARN [org.scalaide.ui.internal.reconciliation.ScalaReconciler] - ImplicitHighlightingPresenter - Timeout while waiting for `askLoadedTyped` during semantic highlighting.

2015-01-31 02:53:13,744  WARN [org.scalaide.ui.internal.reconciliation.ScalaReconciler] - ImplicitHighlightingPresenter - Timeout while waiting for `askLoadedTyped` during semantic highlighting.

2015-01-31 16:04:10,492  WARN [org.scalaide.ui.internal.reconciliation.ScalaReconciler] - ImplicitHighlightingPresenter - Timeout while waiting for `askLoadedTyped` during semantic highlighting.

2015-02-03 20:17:37,868  WARN [main] - org.scala-ide.sdt.core - org.scala-ide.sdt.core - org.scala-ide.sdt.core - 0 - Preference scala.compiler.sourceLevel was uninitialized for api, setting default to 2.11.

2015-02-03 20:17:37,870  WARN [main] - org.scala-ide.sdt.core - org.scala-ide.sdt.core - org.scala-ide.sdt.core - 0 - Preference scala.compiler.installation was uninitialized for api, setting default to 2.11.

2015-02-03 20:22:12,128  WARN [org.scalaide.ui.internal.reconciliation.ScalaReconciler] - ImplicitHighlightingPresenter - Timeout while waiting for `askLoadedTyped` during semantic highlighting.

2015-02-03 20:22:12,225  WARN [org.scalaide.ui.internal.reconciliation.ScalaReconciler] - ImplicitHighlightingPresenter - Timeout while waiting for `askLoadedTyped` during semantic highlighting.

2015-02-03 23:16:13,553  WARN [org.scalaide.ui.internal.reconciliation.ScalaReconciler] - ImplicitHighlightingPresenter - Timeout while waiting for `askLoadedTyped` during semantic highlighting.

2015-02-03 23:35:22,462 ERROR [Text Viewer Hover Presenter] - IScalaPresentationCompiler$ - Ignoring InterruptException

2015-02-04 15:18:13,566  WARN [main] - org.scala-ide.sdt.core - org.scala-ide.sdt.core - org.scala-ide.sdt.core - 0 - Preference scala.compiler.sourceLevel was uninitialized for api, setting default to 2.11.

2015-02-04 15:18:13,567  WARN [main] - org.scala-ide.sdt.core - org.scala-ide.sdt.core - org.scala-ide.sdt.core - 0 - Preference scala.compiler.installation was uninitialized for api, setting default to 2.11.

2015-02-04 17:29:02,217  WARN [main] - org.scala-ide.sdt.core - org.scala-ide.sdt.core - org.scala-ide.sdt.core - 0 - Preference scala.compiler.sourceLevel was uninitialized for api, setting default to 2.11.

2015-02-04 17:29:02,218  WARN [main] - org.scala-ide.sdt.core - org.scala-ide.sdt.core - org.scala-ide.sdt.core - 0 - Preference scala.compiler.installation was uninitialized for api, setting default to 2.11.

2015-02-04 20:31:25,370  WARN [main] - org.scala-ide.sdt.core - org.scala-ide.sdt.core - org.scala-ide.sdt.core - 0 - Preference scala.compiler.sourceLevel was uninitialized for api, setting default to 2.11.

2015-02-04 20:31:25,372  WARN [main] - org.scala-ide.sdt.core - org.scala-ide.sdt.core - org.scala-ide.sdt.core - 0 - Preference scala.compiler.installation was uninitialized for api, setting default to 2.11.

2015-02-04 20:43:29,151  WARN [main] - org.scala-ide.sdt.core - org.scala-ide.sdt.core - org.scala-ide.sdt.core - 0 - Preference scala.compiler.sourceLevel was uninitialized for api, setting default to 2.11.

2015-02-04 20:43:29,152  WARN [main] - org.scala-ide.sdt.core - org.scala-ide.sdt.core - org.scala-ide.sdt.core - 0 - Preference scala.compiler.installation was uninitialized for api, setting default to 2.11.

2015-02-04 21:01:05,185  WARN [main] - org.scala-ide.sdt.core - org.scala-ide.sdt.core - org.scala-ide.sdt.core - 0 - Preference scala.compiler.sourceLevel was uninitialized for api, setting default to 2.11.

2015-02-04 21:01:05,193  WARN [main] - org.scala-ide.sdt.core - org.scala-ide.sdt.core - org.scala-ide.sdt.core - 0 - Preference scala.compiler.installation was uninitialized for api, setting default to 2.11.



biswanath chinta

unread,
Feb 4, 2015, 12:24:30 PM2/4/15
to scala-i...@googlegroups.com
@file opened, Was already updating all the scala-ide. After the update(still ) the error is not manifested. If there error popsup again will post the content of the file.
Reply all
Reply to author
Forward
0 new messages