Compute launch button tooltip bug

1,523 views
Skip to first unread message

Saad Khawaja

unread,
Apr 13, 2011, 12:08:20 PM4/13/11
to Scala IDE User
Hi

Eclipse version: 3.6.2.M20101201
Scala Ide version: 1.0.0.201102131804-milestones-M01
I had to pull this information from ${eclipse.home}/artifacts.xml,
since oddly Eclipse->About Eclipse was not working. I installed latest
eclipse & scala ide on 04/11.

I found an old eclipse bug related to this here
https://bugs.eclipse.org/bugs/show_bug.cgi?id=187617.

General description: I open a scala file in scala editor, select some
code cut it, save file causes compilation error, then hover mouse over
Run icon and get a eclipse pop up about 'Compute launch button
tooltip'.

Description of defect behavior:
1. Open .scala file in scala editor and scala perspective.
2. Select code block and do ctrl-x. The code block selected when cut
should cause compilation error.
3. Save file.
4. Hover mouse over Run icons, maybe even other icons.
Note: You may have to try this a couple of times, in different
combinations.
Effect :
See eclipse pop-up with text like 'Compute launch button tooltip' has
encountered a problem.
Here is text from detailed section of pop up
An internal error occurred during: "Compute launch button tooltip".
java.lang.IllegalArgumentException

Here is eclipse log output. I pasted the last two blocks of
exceptions.
___________________________________________________________________________________________

!ENTRY org.eclipse.jdt.core 4 4 2011-04-13 10:55:38.267
!MESSAGE Exception occurred during compilation unit conversion:
----------------------------------- SOURCE BEGIN
-------------------------------------
package org.fenwaygrp.singleton

import org.junit.Test
import scala.actors.Actor._
import scala.actors.Actor

class ActorUnitTest {

@Test
def test = {


val b = actor {
loop {
receive {
case s: String => println("b=" + s)
case _ => println("b...")
}
}
}

a ! "hi there"
b ! "hi there"
b ! "hi there"
a ! "hi there"
}

}

class Redford extends Actor {
def act() {
println("A lot of what acting is, is paying attention.")
}
}


----------------------------------- SOURCE END
-------------------------------------
!STACK 0
java.lang.IllegalArgumentException
at org.eclipse.jdt.core.dom.ASTNode.setSourceRange(ASTNode.java:2614)
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:
431)
at
org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:
180)
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:
2709)
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:
1266)
at scala.tools.eclipse.contribution.weaving.jdt.core.DOMAspect.ajc
$around$scala_tools_eclipse_contribution_weaving_jdt_core_DOMAspect
$1$3b9eae81(DOMAspect.aj:142)
at
org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:
1054)
at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:801)
at
org.eclipse.jdt.internal.junit.launcher.JUnit4TestFinder.internalIsTest(JUnit4TestFinder.java:
229)
at
org.eclipse.jdt.internal.junit.launcher.JUnit4TestFinder.isTest(JUnit4TestFinder.java:
197)
at
org.eclipse.jdt.internal.junit.util.CoreTestSearchEngine.isTestOrTestSuite(CoreTestSearchEngine.java:
54)
at
org.eclipse.jdt.internal.junit.JUnitPropertyTester.isJUnitTest(JUnitPropertyTester.java:
113)
at
org.eclipse.jdt.internal.junit.JUnitPropertyTester.canLaunchAsJUnitTest(JUnitPropertyTester.java:
88)
at
org.eclipse.jdt.internal.junit.JUnitPropertyTester.test(JUnitPropertyTester.java:
71)
at org.eclipse.core.internal.expressions.Property.test(Property.java:
58)
at
org.eclipse.core.internal.expressions.TestExpression.evaluate(TestExpression.java:
99)
at
org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:
53)
at
org.eclipse.core.internal.expressions.AdaptExpression.evaluate(AdaptExpression.java:
91)
at
org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:
53)
at
org.eclipse.core.internal.expressions.IterateExpression.evaluate(IterateExpression.java:
150)
at
org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:
53)
at
org.eclipse.core.internal.expressions.WithExpression.evaluate(WithExpression.java:
72)
at
org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:
53)
at
org.eclipse.core.internal.expressions.EnablementExpression.evaluate(EnablementExpression.java:
53)
at
org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension.evalEnablementExpression(LaunchShortcutExtension.java:
287)
at
org.eclipse.debug.internal.ui.contextlaunching.LaunchingResourceManager.getShortcutsForSelection(LaunchingResourceManager.java:
452)
at
org.eclipse.debug.internal.ui.contextlaunching.LaunchingResourceManager.computeLabels(LaunchingResourceManager.java:
237)
at
org.eclipse.debug.internal.ui.contextlaunching.LaunchingResourceManager
$2.run(LaunchingResourceManager.java:138)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.eclipse.core.jobs 4 2 2011-04-13 10:55:38.283
!MESSAGE An internal error occurred during: "Compute launch button
tooltip".
!STACK 0
java.lang.IllegalArgumentException
at org.eclipse.jdt.core.dom.ASTNode.setSourceRange(ASTNode.java:2614)
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:
431)
at
org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:
180)
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:
2709)
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:
1266)
at scala.tools.eclipse.contribution.weaving.jdt.core.DOMAspect.ajc
$around$scala_tools_eclipse_contribution_weaving_jdt_core_DOMAspect
$1$3b9eae81(DOMAspect.aj:142)
at
org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:
1054)
at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:801)
at
org.eclipse.jdt.internal.junit.launcher.JUnit4TestFinder.internalIsTest(JUnit4TestFinder.java:
229)
at
org.eclipse.jdt.internal.junit.launcher.JUnit4TestFinder.isTest(JUnit4TestFinder.java:
197)
at
org.eclipse.jdt.internal.junit.util.CoreTestSearchEngine.isTestOrTestSuite(CoreTestSearchEngine.java:
54)
at
org.eclipse.jdt.internal.junit.JUnitPropertyTester.isJUnitTest(JUnitPropertyTester.java:
113)
at
org.eclipse.jdt.internal.junit.JUnitPropertyTester.canLaunchAsJUnitTest(JUnitPropertyTester.java:
88)
at
org.eclipse.jdt.internal.junit.JUnitPropertyTester.test(JUnitPropertyTester.java:
71)
at org.eclipse.core.internal.expressions.Property.test(Property.java:
58)
at
org.eclipse.core.internal.expressions.TestExpression.evaluate(TestExpression.java:
99)
at
org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:
53)
at
org.eclipse.core.internal.expressions.AdaptExpression.evaluate(AdaptExpression.java:
91)
at
org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:
53)
at
org.eclipse.core.internal.expressions.IterateExpression.evaluate(IterateExpression.java:
150)
at
org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:
53)
at
org.eclipse.core.internal.expressions.WithExpression.evaluate(WithExpression.java:
72)
at
org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:
53)
at
org.eclipse.core.internal.expressions.EnablementExpression.evaluate(EnablementExpression.java:
53)
at
org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension.evalEnablementExpression(LaunchShortcutExtension.java:
287)
at
org.eclipse.debug.internal.ui.contextlaunching.LaunchingResourceManager.getShortcutsForSelection(LaunchingResourceManager.java:
452)
at
org.eclipse.debug.internal.ui.contextlaunching.LaunchingResourceManager.computeLabels(LaunchingResourceManager.java:
237)
at
org.eclipse.debug.internal.ui.contextlaunching.LaunchingResourceManager
$2.run(LaunchingResourceManager.java:138)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

David Bernard

unread,
Apr 14, 2011, 3:48:13 PM4/14/11
to scala-i...@googlegroups.com, Saad Khawaja
Thanks for reporting. I didn't have time to work on the problem this week.
I open a ticket to not forgot
http://scala-ide-portfolio.assembla.com/spaces/scala-ide/tickets/1000374

/davidB

Reply all
Reply to author
Forward
0 new messages