Eclipse IDE & plugin issues that I encountered

2,562 views
Skip to first unread message

André van Delft

unread,
Feb 4, 2013, 5:48:51 PM2/4/13
to scala-i...@googlegroups.com
The last month I have intensively been using the Scala IDE plugin on Scalac sources. A byproduct was a list of issues and wishes that I specify below.

Some of these may belong to Eclipse rather than the plugin; others may have been solved meanwhile. One occurred because I was working on Scalac/
I run OS X 10.8.2, Eclipse Juno with 4Gb heap space (was plenty), IDE 2.1.0 M3 (since 1 day the latest nightly build).
I hope this helps improving the plugin.

Occasional Message
  • Add Scala library to project classpath? There was an error initializing the Scala compiler: could not find a required class: object scala.runtime in compiler mirror. (…). No/Yes
Editing
  • preference option Scala >> Syntax coloring >> Semantic syntax highlighting: slows down editing; it may take seconds to move the cursor or type a character
  • Wish: a button for switching to/from block editing mode, just like for Java editing
  • Sometimes, opening a file with a Scala source not in the project, results in an attempt to open GUI frame editor tab.
    It is not clear how to force opening a normal text editor rather than GUI frame editor.
    The GUI frame editor yields an error message "Failed to create the part's controls" with stack trace:
  java.lang.ClassCastException: org.eclipse.jdt.internal.core.CompilationUnit cannot be cast to scala.tools.eclipse.InteractiveCompilationUnit
at scala.tools.eclipse.ScalaSourceFileEditor.getInteractiveCompilationUnit(ScalaSourceFileEditor.scala:341)
at scala.tools.eclipse.ScalaSourceFileEditor.createPartControl(ScalaSourceFileEditor.scala:303)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:129)

Presentation compiler 
  • seems to slow editing down considerably; the user should be able to deactivate it, like with Semantic syntax highlighting
  • seems to use different scala-*.jar as the build compiler: I tweaked the latter a little, so that the presentation compiler left some red marks that still build well. Preferably the presentation compiler behaves consistently like the build compiler
Project Build
  • Menu option "Build Project" is greyed out when the focus is not in a source file panel; clicking once in such a panel has often not enough effect; double clicking there may maximize the old focused panel, which is annoying. A not too fast sequence of two clicks gives the source file panel the focus; then the menu option is enabled. Presumably this is an Eclipse problem.
  • Sometimes, e.g., after interrupted build, there is no main to execute. Then also Project>>Build Project does not work; neither does Clean; the user is not warned. Restart Eclipse required.
  • Menu option "Clean" always opens a dialog; it should be possible to skip this.
  • build is sometimes very slow
  • canceling a build task may take tens of seconds
  • sometimes canceling a build results in an error: "Terminate failed"
Many processes in Progress tab, after some debugging sessions
  • most (almost all) are called "Computing Scala debug details" 
  • clicking in red box results in status Cancel Requested, but that stays
  • had to restart Eclipse every 3 minutes when this happened
Debugging: control (step, next)
  • very slow; sometimes a very small step takes about 10 seconds
  • weak feedback of busy-ness; while doing "step" that button is disabled, but not the others
  • 'An internal error occurred during: "Execute Debug Command".    head of empty list'
  • 'An internal error occurred during: "Label Job".   Label Job \n has children update'
  • "step over" steps over the statement at the top of the call stack; wish it were: over the statement selected in the GUI stack window 
Debugging: Variables panel:
  • Wish: toString values should be in separate column, just like "id"; smaller columns preferably more to the left
  • value sub panel (with useful toString representation for selected field) at the south of the panel, is invisible at first (overlaid by table)
  • sometimes the sub panel displays a number that accidentally remains visible after clicking another field
  • sometimes there values show empty, or there are even no labels and values at all in the panel
  • values display: sometimes shows exception while invoking toString(): null
      scala.tools.eclipse.debug.model.ScalaObjectReference.jdiInvokeMethod(ScalaValue.scala:154)
      scala.tools.eclipse.debug.model.HasMethodInvocation$class.invokeMethod(ScalaDebugElement.scala:105)
      scala.tools.eclipse.debug.model.ScalaObjectReference.invokeMethod(ScalaValue.scala:120)
      scala.tools.eclipse.debug.model.ScalaDebugModelPresentation$.computeDetail(ScalaDebugModelPresentation.scala:55)
      scala.tools.eclipse.debug.model.ScalaDebugModelPresentation$.computeDetail(ScalaDebugModelPresentation.scala:31)
      scala.tools.eclipse.debug.model.ScalaDebugModelPresentation$$anon$1.run(ScalaDebugModelPresentation.scala:88)
      org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

Debugging: Watch + Inspect
  • badly missing. Wish these were here.
Debugging: Breakpoints
  • the user cannot specify expressions (changed or true)
  • specifying "on count" does not seem to work

Mirco Dotta

unread,
Feb 5, 2013, 4:04:16 AM2/5/13
to scala-i...@googlegroups.com
The last month I have intensively been using the Scala IDE plugin on Scalac sources. A byproduct was a list of issues and wishes that I specify below.

Some of these may belong to Eclipse rather than the plugin; others may have been solved meanwhile. One occurred because I was working on Scalac/
I run OS X 10.8.2, Eclipse Juno with 4Gb heap space (was plenty), IDE 2.1.0 M3 (since 1 day the latest nightly build).
I hope this helps improving the plugin.

Hi André, thanks for taking the time, feedback is always very much appreciated.

Occasional Message
  • Add Scala library to project classpath? There was an error initializing the Scala compiler: could not find a required class: object scala.runtime in compiler mirror. (…). No/Yes

Are you using the m2eclipse-scala plugin?

Editing
  • preference option Scala >> Syntax coloring >> Semantic syntax highlighting: slows down editing; it may take seconds to move the cursor or type a character
You'll be happy to know that this will be soon fixed. There is a pending PR https://github.com/scala-ide/scala-ide/pull/292
  • Wish: a button for switching to/from block editing mode, just like for Java editing
This works (though, I'll admit it is by "accident", because we reuse the Java Editor) - ALT + SHIFT + A.
  • Sometimes, opening a file with a Scala source not in the project, results in an attempt to open GUI frame editor tab.
    It is not clear how to force opening a normal text editor rather than GUI frame editor.
    The GUI frame editor yields an error message "Failed to create the part's controls" with stack trace:
  java.lang.ClassCastException: org.eclipse.jdt.internal.core.CompilationUnit cannot be cast to scala.tools.eclipse.InteractiveCompilationUnit
at scala.tools.eclipse.ScalaSourceFileEditor.getInteractiveCompilationUnit(ScalaSourceFileEditor.scala:341)
at scala.tools.eclipse.ScalaSourceFileEditor.createPartControl(ScalaSourceFileEditor.scala:303)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:129)

I don't know how to reproduce this, but please file a ticket (make sure to provide some explanation on how to reproduce the problem)

Presentation compiler 
  • seems to slow editing down considerably; the user should be able to deactivate it, like with Semantic syntax highlighting
Most of the times, this is not the presentation compiler fault. Rather, we should avoid blocking on the UI Thread as much as possible, and since M3 we have done some improvement related to that. For instance, when hyperlinking, if the destination cannot be resolved in less than 500ms now it bails out, which prevents the editor to block. Also Mark Occurrences is often a cause of editor sluggishness, and we plan to disable it before releasing 3.0 (scala-ide-portfolio.assembla.com/spaces/scala-ide/tickets/1001466). 

It would be really great if you could follow improvement by using a nightly build. We really care about the editor experience and any feedback we can get about issues (or sensible improvement :)) on this respect is very much welcomed.
  • seems to use different scala-*.jar as the build compiler: I tweaked the latter a little, so that the presentation compiler left some red marks that still build well. Preferably the presentation compiler behaves consistently like the build compiler
This is not the case. The presentation compiler uses the same classpath as the build compiler. However, it is possible for the presentation compiler to get into a bad state, which causes the appearance of false errors to be reported in the editor (the build compiler reports none, while the presentation compiler tells you something is off). The only workaround at the moment to reset the presentation compiler is do to a full project clean. This is far from ideal, I know (also considering Scala is not the fastest language to compile ;-)). We have a ticket for providing a shortcut to reset the presentation compiler without having to do a full project clean (http://scala-ide-portfolio.assembla.com/spaces/scala-ide/tickets/1000555), maybe we will have a chance to add this in time for the final 3.0 release, but it's tight (it is more likely to happen by 3.1).

Project Build
  • Menu option "Build Project" is greyed out when the focus is not in a source file panel; clicking once in such a panel has often not enough effect; double clicking there may maximize the old focused panel, which is annoying. A not too fast sequence of two clicks gives the source file panel the focus; then the menu option is enabled. Presumably this is an Eclipse problem.
I assume you have "Build Automatically" disabled. I'm not able to reproduce this. 
  • Sometimes, e.g., after interrupted build, there is no main to execute. Then also Project>>Build Project does not work; neither does Clean; the user is not warned. Restart Eclipse required.
This looks like a bug to me. Please file a ticket.
  • Menu option "Clean" always opens a dialog; it should be possible to skip this.
Since we re-use the Java Eclipse support, this is how it works.
  • build is sometimes very slow
The builder uses Sbt incremental compilation behind the scene, hence we are as fast/slow as Sbt. The good news is that the Sbt team is putting a lot of energy in improving how dependency are tracked, so compilation speed may improve in the future.
  • canceling a build task may take tens of seconds
I think this depends on Sbt internals, i.e., how often is it checked if the user requested to stop the current compilation. But I'm not the right person to answer this, maybe you should file a ticket.

  • sometimes canceling a build results in an error: "Terminate failed"
Looks like a bug. If you have a (somewhat) consistent way to reproduce this, please file a ticket.

Many processes in Progress tab, after some debugging sessions
  • most (almost all) are called "Computing Scala debug details" 
  • clicking in red box results in status Cancel Requested, but that stays
  • had to restart Eclipse every 3 minutes when this happened
Please file a ticket for all three issues.

Debugging: control (step, next)
  • very slow; sometimes a very small step takes about 10 seconds
We are aware of this, and it's one of our top priorities for v3.0 release. The nightly already includes a fix for improving performance of stepping, and there is a 
PR open to improve it further https://github.com/scala-ide/scala-ide/pull/296. Would be good if you could try a nightly once the mentioned PR is merged.
  • weak feedback of busy-ness; while doing "step" that button is disabled, but not the others
Please file a ticket.

  • 'An internal error occurred during: "Execute Debug Command".    head of empty list
We have a ticket for this (https://scala-ide-portfolio.assembla.com/spaces/scala-ide/tickets/1001329#/activity/ticket:). How frequently does it happen? (we haven't seen it that often ourselves)
Do you have a way to reproduce it? If yes, please provide the information in the ticket and we will do our best to fix it.
  • 'An internal error occurred during: "Label Job".   Label Job \n has children update'
I'm not aware of this. If you have a stacktrace or way to reproduce this, please file a ticket.

  • "step over" steps over the statement at the top of the call stack; wish it were: over the statement selected in the GUI stack window 
File a feature ticket :)

Debugging: Variables panel:
  • Wish: toString values should be in separate column, just like "id"; smaller columns preferably more to the left
  • value sub panel (with useful toString representation for selected field) at the south of the panel, is invisible at first (overlaid by table)
I can't reproduce this. You should file a ticket if you have a consistent way to reproduce the issue.

  • sometimes the sub panel displays a number that accidentally remains visible after clicking another field
  • sometimes there values show empty, or there are even no labels and values at all in the panel
Same as above, but I guess these are hard to reproduce.

  • values display: sometimes shows exception while invoking toString(): null
      scala.tools.eclipse.debug.model.ScalaObjectReference.jdiInvokeMethod(ScalaValue.scala:154)
      scala.tools.eclipse.debug.model.HasMethodInvocation$class.invokeMethod(ScalaDebugElement.scala:105)
      scala.tools.eclipse.debug.model.ScalaObjectReference.invokeMethod(ScalaValue.scala:120)
      scala.tools.eclipse.debug.model.ScalaDebugModelPresentation$.computeDetail(ScalaDebugModelPresentation.scala:55)
      scala.tools.eclipse.debug.model.ScalaDebugModelPresentation$.computeDetail(ScalaDebugModelPresentation.scala:31)
      scala.tools.eclipse.debug.model.ScalaDebugModelPresentation$$anon$1.run(ScalaDebugModelPresentation.scala:88)
      org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

Please, file a ticket for this.


Debugging: Watch + Inspect
  • badly missing. Wish these were here.
Debugging: Breakpoints
  • the user cannot specify expressions (changed or true)
We want these as well, but we need to get the basis right first. It will happen ;-)

  • specifying "on count" does not seem to work
This is not supported at the moment.


This is really, really, useful feedback. Please, make sure to file tickets for all reported issues, so that we don't loose sight of them.

-- Mirco

---------------
Mirco Dotta
Typesafe - The software stack for applications that scale
PSE-D, 1015 Lausanne, Switzerland
Twitter: @mircodotta








iulian dragos

unread,
Feb 5, 2013, 4:21:42 AM2/5/13
to scala-i...@googlegroups.com
On Tue, Feb 5, 2013 at 10:04 AM, Mirco Dotta <mirco...@typesafe.com> wrote:
The last month I have intensively been using the Scala IDE plugin on Scalac sources. A byproduct was a list of issues and wishes that I specify below.

Some of these may belong to Eclipse rather than the plugin; others may have been solved meanwhile. One occurred because I was working on Scalac/
I run OS X 10.8.2, Eclipse Juno with 4Gb heap space (was plenty), IDE 2.1.0 M3 (since 1 day the latest nightly build).
I hope this helps improving the plugin.

Hi André, thanks for taking the time, feedback is always very much appreciated.

+1
 

Occasional Message
  • Add Scala library to project classpath? There was an error initializing the Scala compiler: could not find a required class: object scala.runtime in compiler mirror. (…). No/Yes

Are you using the m2eclipse-scala plugin?

If I understand correctly, you are working on the compiler, with the setup explained in our tutorial. This happens if the Scala library project wasn't built successfully, since the classpath is missing it. It should work fine if you answer 'Yes' (but then changes in the Standard library are not going to be "visible" in your compiler builds, which is probably ok unless you are changing *both* and expect to survive :)).
 
  • Sometimes, e.g., after interrupted build, there is no main to execute. Then also Project>>Build Project does not work; neither does Clean; the user is not warned. Restart Eclipse required.
This looks like a bug to me. Please file a ticket.

If you interrupted a build, that's normal. No bytecode was generated (the "old" one is deleted before the build starts, and it's not a "transactional" operation). :)
 
  • 'An internal error occurred during: "Execute Debug Command".    head of empty list
We have a ticket for this (https://scala-ide-portfolio.assembla.com/spaces/scala-ide/tickets/1001329#/activity/ticket:). How frequently does it happen? (we haven't seen it that often ourselves)
Do you have a way to reproduce it? If yes, please provide the information in the ticket and we will do our best to fix it.
  • 'An internal error occurred during: "Label Job".   Label Job \n has children update'
I'm not aware of this. If you have a stacktrace or way to reproduce this, please file a ticket.

I think there were related tickets that might have been fixed for M3. If you still see them in the nightly, please file tickets.
 
  • "step over" steps over the statement at the top of the call stack; wish it were: over the statement selected in the GUI stack window 
File a feature ticket :)

What exactly does this mean? "Step over" should step one line in the editor?
 

Debugging: Variables panel:
  • Wish: toString values should be in separate column, just like "id"; smaller columns preferably more to the left

+1, I'd like this as well.
 

This is really, really, useful feedback. Please, make sure to file tickets for all reported issues, so that we don't loose sight of them.
 
+1

Thanks for taking the time to list all these issues. We'll do our best to fix them!

iulian

 

-- Mirco

---------------
Mirco Dotta
Typesafe - The software stack for applications that scale
PSE-D, 1015 Lausanne, Switzerland
Twitter: @mircodotta








--
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.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais

Mirco Dotta

unread,
Feb 5, 2013, 4:26:03 AM2/5/13
to scala-i...@googlegroups.com
  • Sometimes, e.g., after interrupted build, there is no main to execute. Then also Project>>Build Project does not work; neither does Clean; the user is not warned. Restart Eclipse required.
This looks like a bug to me. Please file a ticket.

If you interrupted a build, that's normal. No bytecode was generated (the "old" one is deleted before the build starts, and it's not a "transactional" operation). :)

But both "Clean" and "Build Project" should work, and you should never need to restart Eclipse. I'm still of the idea this is a bug.

André van Delft

unread,
Feb 5, 2013, 4:41:15 AM2/5/13
to scala-i...@googlegroups.com
Op dinsdag 5 februari 2013 10:26:03 UTC+1 schreef Mirco Dotta het volgende:

  • Sometimes, e.g., after interrupted build, there is no main to execute. Then also Project>>Build Project does not work; neither does Clean; the user is not warned. Restart Eclipse required.
This looks like a bug to me. Please file a ticket.

If you interrupted a build, that's normal. No bytecode was generated (the "old" one is deleted before the build starts, and it's not a "transactional" operation). :)

But both "Clean" and "Build Project" should work, and you should never need to restart Eclipse. I'm still of the idea this is a bug.

I think so too. Not 100.00% sure since I may be messing things up working on the Scalac codebase. But I would bet with odds 100 to 1.

André van Delft

unread,
Feb 5, 2013, 4:55:07 AM2/5/13
to scala-i...@googlegroups.com
Op dinsdag 5 februari 2013 10:21:42 UTC+1 schreef Iulian Dragos het volgende:
  • 'An internal error occurred during: "Execute Debug Command".    head of empty list
We have a ticket for this (https://scala-ide-portfolio.assembla.com/spaces/scala-ide/tickets/1001329#/activity/ticket:). How frequently does it happen? (we haven't seen it that often ourselves)
Do you have a way to reproduce it? If yes, please provide the information in the ticket and we will do our best to fix it.

Happened to me only a few times. I will try to reproduce when it comes up again. 
  • 'An internal error occurred during: "Label Job".   Label Job \n has children update'
I'm not aware of this. If you have a stacktrace or way to reproduce this, please file a ticket.

I think there were related tickets that might have been fixed for M3. If you still see them in the nightly, please file tickets.

Ok, I will do 
  • "step over" steps over the statement at the top of the call stack; wish it were: over the statement selected in the GUI stack window 
File a feature ticket :)

What exactly does this mean? "Step over" should step one line in the editor?

Yes, that is the behavior in Visual Studio. I am not sure about Eclipse-Java.
Debugging: Variables panel:
  • Wish: toString values should be in separate column, just like "id"; smaller columns preferably more to the left
This is really, really, useful feedback. Please, make sure to file tickets for all reported issues, so that we don't loose sight of them.
 
+1

Thanks for taking the time to list all these issues. We'll do our best to fix them!

 You're welcome. Thanks for your replies.
In case you want to reproduce my environment: it is at https://github.com/AndreVanDelft/scala/tree/develop
Then you may also want to try the demo LookupFrame2.

André van Delft

unread,
Feb 5, 2013, 5:14:35 AM2/5/13
to scala-i...@googlegroups.com
Op dinsdag 5 februari 2013 10:04:16 UTC+1 schreef Mirco Dotta het volgende:
Editing
  • Sometimes, opening a file with a Scala source not in the project, results in an attempt to open GUI frame editor tab.It is not clear how to force opening a normal text editor rather than GUI frame editor. The GUI frame editor yields an error message "Failed to create the part's controls" with stack trace:
  java.lang.ClassCastException: org.eclipse.jdt.internal.core.CompilationUnit cannot be cast to scala.tools.eclipse.InteractiveCompilationUnit
at scala.tools.eclipse.ScalaSourceFileEditor.getInteractiveCompilationUnit(ScalaSourceFileEditor.scala:341)
at scala.tools.eclipse.ScalaSourceFileEditor.createPartControl(ScalaSourceFileEditor.scala:303)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:129)

I don't know how to reproduce this, but please file a ticket (make sure to provide some explanation on how to reproduce the problem)

I intend to do that later this week, also for some other problems I mentioned. 
Presentation compiler 
  • seems to slow editing down considerably; the user should be able to deactivate it, like with Semantic syntax highlighting
Most of the times, this is not the presentation compiler fault. Rather, we should avoid blocking on the UI Thread as much as possible, and since M3 we have done some improvement related to that. For instance, when hyperlinking, if the destination cannot be resolved in less than 500ms now it bails out, which prevents the editor to block. Also Mark Occurrences is often a cause of editor sluggishness, and we plan to disable it before releasing 3.0 (scala-ide-portfolio.assembla.com/spaces/scala-ide/tickets/1001466). 

It would be really great if you could follow improvement by using a nightly build. We really care about the editor experience and any feedback we can get about issues (or sensible improvement :)) on this respect is very much welcomed.

I intend to use the nightly builds from now. 
The GUI thread should not be blocked for more than 50 ms or so; 500 ms would be too much.
At least there should be an option to make this happen even if that would mean some background processes providing useful information would not run. I can live well without such information; I prefer an editor that responds immediately to my keyboard input.
  • seems to use different scala-*.jar as the build compiler: I tweaked the latter a little, so that the presentation compiler left some red marks that still build well. Preferably the presentation compiler behaves consistently like the build compiler
This is not the case. The presentation compiler uses the same classpath as the build compiler. However, it is possible for the presentation compiler to get into a bad state, which causes the appearance of false errors to be reported in the editor (the build compiler reports none, while the presentation compiler tells you something is off). The only workaround at the moment to reset the presentation compiler is do to a full project clean. This is far from ideal, I know (also considering Scala is not the fastest language to compile ;-)). We have a ticket for providing a shortcut to reset the presentation compiler without having to do a full project clean (http://scala-ide-portfolio.assembla.com/spaces/scala-ide/tickets/1000555), maybe we will have a chance to add this in time for the final 3.0 release, but it's tight (it is more likely to happen by 3.1).

Maybe something else is wrong. If you take my environment (https://github.com/AndreVanDelft/scala/tree/develop): I have made a few new "nme.*kw" keywords in StdNames.scala; these become red underlined in Parsers.scala and Scanners.scala, by the presentation compiler.

Project Build
  • Menu option "Build Project" is greyed out when the focus is not in a source file panel; clicking once in such a panel has often not enough effect; double clicking there may maximize the old focused panel, which is annoying. A not too fast sequence of two clicks gives the source file panel the focus; then the menu option is enabled. Presumably this is an Eclipse problem.
I assume you have "Build Automatically" disabled. I'm not able to reproduce this. 

Disabled indeed. The irritating thing is that the user may need to click a few times before the menu option becomes active; doing that too fast will punish you. I think this is Eclipse's fault. 
Debugging: Breakpoints
  • specifying "on count" does not seem to work
This is not supported at the moment.

I got that impression :-). But I think the text input field for the number should then be disabled; now it is a bit confusing. 

iulian dragos

unread,
Feb 5, 2013, 6:35:49 AM2/5/13
to scala-i...@googlegroups.com
On Tue, Feb 5, 2013 at 10:26 AM, Mirco Dotta <mirco...@typesafe.com> wrote:
  • Sometimes, e.g., after interrupted build, there is no main to execute. Then also Project>>Build Project does not work; neither does Clean; the user is not warned. Restart Eclipse required.
This looks like a bug to me. Please file a ticket.

If you interrupted a build, that's normal. No bytecode was generated (the "old" one is deleted before the build starts, and it's not a "transactional" operation). :)

But both "Clean" and "Build Project" should work, and you should never need to restart Eclipse. I'm still of the idea this is a bug.

I was referring to 'there is no main to execute'. The Clean/Project disabled menus, I agree. Though, Build Project *will* be disabled if the selection in the package explorer is a closed project, or a resource for which the project can't be determined (pretty sure this is Eclipse standard behavior).
 

-- Mirco

---------------
Mirco Dotta
Typesafe - The software stack for applications that scale
PSE-D, 1015 Lausanne, Switzerland
Twitter: @mircodotta








--
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.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Alex Cozzi

unread,
Feb 5, 2013, 11:42:33 AM2/5/13
to scala-i...@googlegroups.com
I've got the "there is not main to execute" problem when the package declaration does not agree with the path of the file. Example: 
package example.Main

and Main.scala is under src/main/scala  instead of src/main/scala/example

Mirco Dotta

unread,
Feb 5, 2013, 12:08:07 PM2/5/13
to scala-i...@googlegroups.com
Hi Alex,

Yes, that is a known problem, and one we can't easily fix (we already have a ticket for it https://scala-ide-portfolio.assembla.com/spaces/scala-ide/tickets/1000541#/activity/ticket:)

What we actually want to do is to warn the user when the package declaration is not in synch with the file's location https://scala-ide-portfolio.assembla.com/spaces/scala-ide/tickets/1001154.

-- Mirco
Reply all
Reply to author
Forward
0 new messages