What on earth happened to Worksheets? Or, fun with reverse typing

129 views
Skip to first unread message

virtualeyes

unread,
Sep 8, 2014, 11:57:29 AM9/8/14
to scala-...@googlegroups.com
Check this out:
http://pastie.org/9536607

That should be object Main {...}, not the characters in reverse.

This is from the 4.0 nightlies, totally bizarre and needless to say, unusable.

Can anyone else replicate this? Workaround appreciated if available.

Thanks

Simon Schäfer

unread,
Sep 8, 2014, 12:28:13 PM9/8/14
to scala-...@googlegroups.com

On 09/08/2014 05:57 PM, virtualeyes wrote:
Check this out:
http://pastie.org/9536607

That should be object Main {...}, not the characters in reverse.
There is something that is responsible for some fun, not just sorrow and desperation, why do you want to get it away?

I have no idea what triggered this, but if you find the reason you should report it privately, then we can say that it is an easter egg. ;)


This is from the 4.0 nightlies, totally bizarre and needless to say, unusable.

Can anyone else replicate this? Workaround appreciated if available.
What did you do to get this?

Thanks
--
You received this message because you are subscribed to the Google Groups "Scala IDE Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-dev/35954cd4-db00-40cb-b40d-8eb7e2083ed9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

virtualeyes

unread,
Sep 8, 2014, 12:42:36 PM9/8/14
to scala-...@googlegroups.com
No idea what caused it, at one point I had working worksheets (couple of months ago), but when I tried a worksheet out today the typing is all reversed, great fun...for others ;-)

When editing from VIM the typing works fine of course, but worksheet functionality (i.e. generating REPL-like output on save) is not there.

Basically totally borken. Too bad, REPL paste mode is really limited...

I'll see if Eclipse log has any details.

David Bernard

unread,
Sep 8, 2014, 1:40:58 PM9/8/14
to Scala IDE Dev
What is your "Input Method" (right click on the editor, at bottom) of working editor and broken worksheet ?

Som Snytt

unread,
Sep 8, 2014, 2:25:36 PM9/8/14
to scala-...@googlegroups.com
In REPL, you can edit lines in your $EDITOR with

:edit 1-10
:edit 2500-

primitive but maintains left-to-right.

Use :hi history to see line nums.

virtualeyes

unread,
Sep 8, 2014, 3:09:57 PM9/8/14
to scala-...@googlegroups.com
I have 2 choices for input method: simple and none.

Looking in the logs I see that for every keystroke error log spews the following (why IScalaProject class is missing I do not know):

java.lang.NoClassDefFoundError: org/scalaide/core/IScalaProject
    at org.scalaide.worksheet.ScriptCompilationUnit.scalaProject$lzycompute(ScriptCompilationUnit.scala:33)
    at org.scalaide.worksheet.ScriptCompilationUnit.scalaProject(ScriptCompilationUnit.scala:33)
    at org.scalaide.worksheet.ScriptCompilationUnit.askReload(ScriptCompilationUnit.scala:77)
    at org.scalaide.worksheet.reconciler.ScalaReconcilingStrategy$reloader$.documentChanged(ScalaReconcilingStrategy.scala:42)
    at org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged2(AbstractDocument.java:769)
    at org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged(AbstractDocument.java:736)
    at org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged(AbstractDocument.java:721)
    at org.eclipse.jface.text.AbstractDocument.fireDocumentChanged(AbstractDocument.java:796)
    at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1191)
    at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1210)
    at org.eclipse.jface.text.DefaultDocumentAdapter.replaceTextRange(DefaultDocumentAdapter.java:248)
    at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:7198)
    at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:8030)
    at org.eclipse.swt.custom.StyledText.doContent(StyledText.java:2474)
    at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:5928)
    at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5959)
    at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:5636)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1392)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1416)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1401)
    at org.eclipse.swt.widgets.Widget.sendIMKeyEvent(Widget.java:1478)
    at org.eclipse.swt.widgets.Control.gtk_commit(Control.java:3021)
    at org.eclipse.swt.widgets.Canvas.gtk_commit(Canvas.java:160)
    at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:2080)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:5467)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:4569)
    at org.eclipse.swt.internal.gtk.OS._gtk_im_context_filter_keypress(Native Method)
    at org.eclipse.swt.internal.gtk.OS.gtk_im_context_filter_keypress(OS.java:8181)
    at org.eclipse.swt.widgets.Control.filterKey(Control.java:2368)
    at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:3229)
    at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:758)
    at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:2096)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:5467)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:4569)
    at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
    at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:8756)
    at org.eclipse.swt.widgets.Display.eventProc(Display.java:1243)
    at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
    at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2302)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3361)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1426)

virtualeyes

unread,
Sep 8, 2014, 3:24:32 PM9/8/14
to scala-...@googlegroups.com
Thanks, my REPL usage can be described as victimization; things just happen to me and I accept them with a long face. Tips like these may empower me to overcome the REPL monster ;-)

iulian dragos

unread,
Sep 9, 2014, 6:05:51 AM9/9/14
to scala-ide-dev
Could there be that you have an older nightly for the Scala worksheet
than the IDE nightly?
> https://groups.google.com/d/msgid/scala-ide-dev/cf85da41-745d-499e-98c6-5bdb616020b3%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.



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

virtualeyes

unread,
Sep 9, 2014, 7:33:40 AM9/9/14
to scala-...@googlegroups.com
Not sure what versioning scheme Worksheets uses; I use composite update site so the publishing dates are at least the same.

Unusable for right now, could be something specific to my setup. I'll try to dig around and see if I can find any more clues.

REPL is truly limiting, worksheets were quite good when I had them working ;-)

nafg

unread,
Sep 9, 2014, 9:23:25 PM9/9/14
to scala-...@googlegroups.com
What exactly happened? Did you type that all without looking? :) Can you consistently reproduce it?

FWIW I've had a "reverse typing" a number of times, and I don't think it was only in the worksheet. For all I know it was an OS issue. What OS are you on?

iulian dragos

unread,
Sep 10, 2014, 5:56:42 AM9/10/14
to scala-ide-dev
On Tue, Sep 9, 2014 at 1:33 PM, virtualeyes <sit...@gmail.com> wrote:
> Not sure what versioning scheme Worksheets uses; I use composite update site
> so the publishing dates are at least the same.
>
> Unusable for right now, could be something specific to my setup. I'll try to
> dig around and see if I can find any more clues.

There's a binary incompatibility due to some changes we did to
sdt.core, and not propagated to the worksheet plugin. Sorry about
that, we'll fix it ASAP.
> https://groups.google.com/d/msgid/scala-ide-dev/a4b826fe-3907-48a8-9b1b-abf2ceda9b4a%40googlegroups.com.

virtualeyes

unread,
Sep 10, 2014, 7:46:12 AM9/10/14
to scala-...@googlegroups.com
> What exactly happened? Did you type that all without looking? :) Can you consistently reproduce it?

I have no idea; I looked in astonishment; yes.

OS is Linux (Fedora)

virtualeyes

unread,
Sep 10, 2014, 7:50:54 AM9/10/14
to scala-...@googlegroups.com
Great, glad there's a potential solution, had the sinking feeling that my custom VIM build -- removing every pixel of wasted space -- modified Eclipse source files in such a way that Worksheets could no longer display data properly O_o

Will give it a shot on the next nightlies.

Thanks

virtualeyes

unread,
Sep 13, 2014, 2:46:59 AM9/13/14
to scala-...@googlegroups.com
Back in business, thanks for the kciuq xif! ;-)

Xhevahire Tërnava

unread,
Sep 24, 2014, 8:43:13 AM9/24/14
to scala-...@googlegroups.com
I have the same problem with the worksheet in scala. May you help me to fix it??

virtualeyes

unread,
Sep 25, 2014, 7:41:44 AM9/25/14
to scala-...@googlegroups.com
update to latest nightly fixed it for me.

Som Snytt

unread,
Sep 25, 2014, 9:03:03 AM9/25/14
to scala-...@googlegroups.com
The SO Q. also calls it "reverse typing".  As opposed to, say, "mirror coding."

`eclipse -clean` also didn't work for the OP.

Is there an official link of things to try if your IDE install is geborken?


--
You received this message because you are subscribed to the Google Groups "Scala IDE Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-de...@googlegroups.com.

Jerzy Müller

unread,
Oct 15, 2014, 11:24:48 AM10/15/14
to scala-...@googlegroups.com
Sometimes it's a problem with some cache in workspace, if you clean it/change it it works. Unfortunately it means you loss all your settings, but it's still quicker than new installation.

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