Christoph,

There seems to be a compiler bug (the exception you received form
polyglot).

This compiler exception is the reason you see the weird behavior in X10DT.
Basically, the compiler is behaving the same way when run with x10dt - it
throws an exception and does not provide a valid AST structure for X10DT.
As a result, X10DT has nothing to show, no error message and since it
doesn't have a valid AST, the editor services are unavailable too.

It would be great if you could file a JIRA against the compiler for the
compiler exception - we are actively working on fixing compiler exceptions.

Thanks,

- Evelyn

--------
Evelyn Duesterwald
IBM T.J. Watson Research Center
Manager, Parallel Tools and Applications
Tel (914) 784-6422  IBM T/L 863-6422
dues...@us.ibm.com


> Message: 8
> Date: Tue, 17 Aug 2010 14:11:45 +0200
> From: Christoph Pospiech <christoph.pospi...@de.ibm.com>
> Subject: [X10-users] user program "silencing" X10 v2.0.5.1
> To: "x10-users" <x10-users@lists.sourceforge.net>
> Message-ID: <201008171411.45198.christoph.pospi...@de.ibm.com>
> Content-Type: text/plain;  charset="iso-8859-1"
>
> Hi,
>
> after upgrading to X10DT to v2.0.5.1 and porting a simple user program to
X10
> v 2.0.5 (use Array.copyFrom() rather than Rail.copyFrom() ), the Eclipse
> workspace (X10 with C++ backend) apparently doesn't finish compile. It
says
> "building workspace (17%)" and then stops. No error message is issued.
All
> windows stay silent. Also, the parser doesn't seem to be able to parse
the
> program (no colors in the editor window).
>
> I thought this might be due to the upgrade, so I re-installed the
workspace
> from scratch. No avail. The standard hello.x10, however, works fine.
>
> In order to make some progress, I installed the command line version of
> x10c++. I got as far as this.
> c...@sirius:~/xample/MatMul/mm_X10$ export
JAVA_HOME=/usr/lib/j2re1.6-ibm/jre
> c...@sirius:~/xample/MatMul/mm_X10$ x10c++ -o bin/matmul src/matmul.x10
> Exception in thread "main" java.lang.NullPointerException
>    at polyglot.types.TypeEnv_c.isCastValid(TypeEnv_c.java:91)
>    at x10.types.X10TypeEnv_c.isCastValid(X10TypeEnv_c.java:1153)
>    at polyglot.types.TypeSystem_c.isCastValid(TypeSystem_c.java:363)
>    at x10.ast.X10Binary_c.typeCheck(X10Binary_c.java:373)
>    at x10.ast.AmbMacroTypeNode_c$1.subst(AmbMacroTypeNode_c.java:429)
> [... trace back follows ...]
>
> At this point I am stuck. Any one any ideas ? Presumably my program isn't

> correct. But still I would expect eclipse to guide me to the error.
> --
>
> Mit freundlichen Gr??en / Kind regards
>
> Dr. Christoph Pospiech
> High Performance & Parallel Computing
> Phone:  +49-351 86269826
> Mobile: +49-171-765 5871
> E-Mail: christoph.pospi...@de.ibm.com
------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to