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?
Forums
Compiling on windows
14 posts
• Page 1 of 2 • 1, 2
Re: Compiling on windows
I'll take a look. Thanks for the report.
- Charles
- Posts: 2515
- Location: Los Angeles, CA
Re: Compiling on windows
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.
- pchapin
- Posts: 46
- Location: Vermont, USA
Re: Compiling on windows
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.
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.
- Charles
- Posts: 2515
- Location: Los Angeles, CA
Re: Compiling on windows
I hacked in a fix which is to not build the Cobra.Lang.Compiler library for now.
- Charles
- Posts: 2515
- Location: Los Angeles, CA
Re: Compiling on windows
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:
Probably something simple, but I'm not terribly au fait with the .NET environment.
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:
Probably something simple, but I'm not terribly au fait with the .NET environment.
99 programming bugs in the code, 99 bugs in the code, fix 1 bug and compile it again, 101 programming bugs in the code
- ObtuseAngle
- Posts: 42
- Location: Gippsland, Australia
Re: Compiling on windows
That's a bug on our side. I'll try to fix later tonight.
- Charles
- Posts: 2515
- Location: Los Angeles, CA
Re: Compiling on windows
That's the same error as I had above. You can temporarily get around it by changing CommandLine.cobra as I mentioned.
- melger
- Posts: 6
Re: Compiling on windows
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.
99 programming bugs in the code, 99 bugs in the code, fix 1 bug and compile it again, 101 programming bugs in the code
- ObtuseAngle
- Posts: 42
- Location: Gippsland, Australia
Re: Compiling on windows
Fixed. Let me know if you have further problems with this or anything else.
- Charles
- Posts: 2515
- Location: Los Angeles, CA
14 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 47 guests