CAL-eclipse plugin: does it work with eclipse-3.4?

2 views
Skip to first unread message

jw

unread,
Apr 3, 2009, 5:32:45 AM4/3/09
to CAL Language Discussion
Well, the subject says it: is there a version of CAL
(plugin + quark binaries) that does work with eclipse-3.4?

Tom Davies

unread,
Apr 3, 2009, 5:53:55 AM4/3/09
to CAL Language Discussion

On Apr 3, 8:32 pm, jw <waldm...@imn.htwk-leipzig.de> wrote:
> Well, the subject says it: is there a version of CAL
> (plugin + quark binaries) that does work with eclipse-3.4?

I'm using the current version of CAL with Eclipse 3.4.0 (Build id:
I20080617-2000)

Tom

jw

unread,
Apr 3, 2009, 6:40:46 AM4/3/09
to CAL Language Discussion


> I'm using the current version of CAL with Eclipse 3.4.0 (Build id:
> I20080617-2000)

and the CAL Console (in Eclipse) does work? I'm getting

Cal.Core.Prelude>1
Error: Module "Cal.Core.Prelude" has compilation errors (or is
currently
in the process of being compiled).

Eclipse Platform Version: 3.4.1 Build id: M20080911-1700
org.openquark.cal.eclipse (1.7.1.0000v20071115) "CAL Eclipse Plug-in"

Tom Davies

unread,
Apr 3, 2009, 7:02:06 AM4/3/09
to CAL Language Discussion


On Apr 3, 9:40 pm, jw <waldm...@imn.htwk-leipzig.de> wrote:
> > I'm using the current version of CAL with Eclipse 3.4.0 (Build id:
> > I20080617-2000)
>
> and the CAL Console (in Eclipse) does work? I'm getting
>
> Cal.Core.Prelude>1
> Error: Module "Cal.Core.Prelude" has compilation errors (or is
> currently
> in the process of being compiled).

How are you running it?

I have a "Java Application" run configuration with:

Main Class:
org.openquark.cal.tools.iosourcegenerator.IO_Source_Generator_ICE (you
could equally well use org.openquark.cal.ICE)
VM Arguments: -Xmx1500m -
Dorg.openquark.cal.workspace.spec="StandardVault workspace.cws"

Tom

Tom Davies

unread,
Apr 3, 2009, 7:11:27 AM4/3/09
to CAL Language Discussion
Some further investigation:

The 'CAL Console' menu item (which I'd never noticed before) does
faikl for me, but differently:

Cal.Core.Prelude>1 :: Int
Running: 1 :: Int
Error while executing.
org.openquark.cal.runtime.CALExecutorException$InternalException:
Unable to create instance of Cal.Core.Prelude.io_target_0_0
Caused by: java.lang.ClassCastException:
org.openquark.cal_Cal_Core_Prelude.Id, Detail:
org.openquark.cal_Cal_Core_Prelude.Id

at org.openquark.cal.internal.machine.lecc.Executor.exec
(Executor.java:160)
at org.openquark.cal.ConsoleRunner.runTarget(ConsoleRunner.java:217)
at org.openquark.cal.ConsoleRunner.runExpression(ConsoleRunner.java:
152)
at
org.openquark.cal.eclipse.ui.console.CALConsole.handleRequest_enteredText
(CALConsole.java:420)
at org.openquark.cal.eclipse.ui.console.CALConsole.access$300
(CALConsole.java:69)
at org.openquark.cal.eclipse.ui.console.CALConsole$InputReadJob.run
(CALConsole.java:274)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.ClassCastException:
org.openquark.cal_Cal_Core_Prelude.Id
at
org.openquark.cal.internal.machine.lecc.CALClassLoader.getStartPointInstance
(CALClassLoader.java:861)
at
org.openquark.cal.internal.machine.lecc.Executor.getInstanceOfGeneratedClass
(Executor.java:373)
at
org.openquark.cal.internal.machine.lecc.Executor.makeStartPointInstance
(Executor.java:260)
at org.openquark.cal.internal.machine.lecc.Executor.exec
(Executor.java:158)
... 6 more
Internal runtime error.
Unable to create instance of Cal.Core.Prelude.io_target_0_0
Caused by: java.lang.ClassCastException:
org.openquark.cal_Cal_Core_Prelude.Id, Detail:
org.openquark.cal_Cal_Core_Prelude.Id


The expression 1 :: Int evaluates correctly when I start ICE via a
'Run Configuration'. Note that just 1 is ambiguous -- you need to
specify exactly which type a constant is, if there is no way that CAL
can infer it.

Tom

Tom

Joseph Wong

unread,
Apr 3, 2009, 1:13:07 PM4/3/09
to CAL Language Discussion
I have the CAL Eclipse plugin running successfully under Eclipse
3.4.1, but I admit I haven't used the CAL Console feature since
migrating from Eclipse 3.3.

The plugin works well for me when I use it in conjunction with a
"Quark Binaries" project. I have only run into issues when I try to
compile the OpenQuark source files themselves with the plugin - I
believe the plugin needs to be recompiled for Eclipse 3.4.x in order
to resolve some funniness with the Eclipse classloading scheme.

Joseph

kolc...@gmail.com

unread,
May 10, 2009, 1:22:27 PM5/10/09
to CAL Language Discussion
Hello,

I have recompiled CAL Eclipse plugin with 3.4 and it seems that all is
Ok - console and code completion.

Andrey

On 3 апр, 21:13, Joseph Wong <jhtw...@gmail.com> wrote:
> I have the CALEclipseplugin running successfully underEclipse
> 3.4.1, but I admit I haven't used the CAL Console feature since
> migrating fromEclipse3.3.
>
> The plugin works well for me when I use it in conjunction with a
> "Quark Binaries" project. I have only run into issues when I try to
> compile the OpenQuark source files themselves with the plugin - I
> believe the plugin needs to be recompiled forEclipse3.4.x in order
> to resolve some funniness with theEclipseclassloading scheme.

jan.winte...@googlemail.com

unread,
May 20, 2009, 3:38:01 AM5/20/09
to CAL Language Discussion
What is the eclipse-plugin ubdate-url to install recompiled cal-
plugins?
Reply all
Reply to author
Forward
0 new messages