Page 1 of 2

Compiling on windows

PostPosted: Sun Nov 27, 2011 12:41 am
by melger
I've been playing around with the snapshot cobra compiler fine, but I was wondering if the current trunk compiles on windows (and I'm just doing something wrong)? Running bin\install-from-workspace.bat results in the following while compiling Cobra.Lang:

"warning: Cannot extract version number from version string: svn: (post 0.8) / 2011-11-27 on .NET CLR v4.0.30319"

This may have something to do with me not using a standard svn client. Manually setting the .versionString to what the regex expects on line 1006 of CommandLine.cobra (i.e. svn:0.8.0 post) I can get past this, however this leads to:

"
run: cobra.exe -c -t:lib -namespace:Cobra.Lang.Compiler -files:files-to-compile.text -debug -native-compiler:C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe -turbo -out:Cobra.Lang.Compiler.dll -key-file:Cobra.Lang\Cobra.Lang.snk cobra.cobra
: Statements.cobra(277): error: Incompatible types. Cannot assign value of type List<of T> on the right to List<of Expr> on the left.
: Statements.cobra(328): error: Incompatible types. Cannot assign value of type List<of T> on the right to List<of Stmt> on the left.
: Statements.cobra(989): error: Incompatible types. Cannot assign value of type List<of T> on the right to List<of Expr> on the left.
: Statements.cobra(1070): error: Incompatible types. Cannot assign value of type List<of T> on the right to List<of Expr> on the left.
: Statements.cobra(1247): error: Incompatible types. Cannot assign value of type List<of T> on the right to List<of Expr> on the left.
: Statements.cobra(1681): error: Incompatible types. Cannot assign value of type List<of T> on the right to List<of Expr> on the left.
: Expr.cobra(636): error: Incompatible types. Cannot assign value of type List<of T> on the right to List<of Expr> on the left.
: Compilation failed - 7 errors, 0 warnings
"

Being new to Cobra I'm not sure I can debug this one easily :). Any ideas on whats going on?

Re: Compiling on windows

PostPosted: Sun Nov 27, 2011 4:50 pm
by Charles
I'll take a look. Thanks for the report.

Re: Compiling on windows

PostPosted: Thu Dec 01, 2011 6:17 am
by pchapin
For what it's worth I'm seeing the same problem with the 7 errors in Statements.cobra and Expr.cobra. I'm using Windows 7, 64 bit and I'm installing as Administrator. This is with repository revision 2627.

Re: Compiling on windows

PostPosted: Thu Dec 01, 2011 9:25 am
by Charles
I can reproduce as well on Windows, although not on Mono/Mac. :(

I have some work to do before I can get into this. You can try checking out earlier versions of Cobra with subversion. I'm guessing 2624 would work.

Re: Compiling on windows

PostPosted: Fri Dec 02, 2011 12:04 am
by Charles
I hacked in a fix which is to not build the Cobra.Lang.Compiler library for now.

Re: Compiling on windows

PostPosted: Thu Dec 08, 2011 6:46 pm
by ObtuseAngle
Probably an unrelated problem.
My workplace changed me to another machine.

Installing from the Windows installer worked OK.

Attempting to install from source (svn revision 2629) ends with the following error:

Image

Probably something simple, but I'm not terribly au fait with the .NET environment.

Re: Compiling on windows

PostPosted: Thu Dec 08, 2011 7:07 pm
by Charles
That's a bug on our side. I'll try to fix later tonight.

Re: Compiling on windows

PostPosted: Thu Dec 08, 2011 7:51 pm
by melger
That's the same error as I had above. You can temporarily get around it by changing CommandLine.cobra as I mentioned.

Re: Compiling on windows

PostPosted: Thu Dec 08, 2011 8:13 pm
by ObtuseAngle
melger wrote:That's the same error as I had above. You can temporarily get around it by changing CommandLine.cobra as I mentioned.


Opps, sorry melger, I understood you were getting the warning, but not the error that followed.
My error :? for misunderstanding.

Re: Compiling on windows

PostPosted: Fri Dec 09, 2011 1:21 am
by Charles
Fixed. Let me know if you have further problems with this or anything else.