Page 1 of 1

Installation fails on string comparison with "in"

PostPosted: Thu Mar 14, 2019 10:57 pm
by ToTheZeroth
Hi, just tried out Cobra and so far it's a wonderful experience.

The only downside is that I have to compile from the Snapshot with the "-copy-core" directive, since I have been unable to install the compiler. The installer fails thus:
Code: Select all
Compiling installation program...
Cobra.Core_ert_512775b440396f404581b5a19ec861a2.tmp/CobraCore.cobra(62): error: The left expression ('.exe') cannot be "in" the right-hand expression because the left type is "String" and the right-hand expression contains type "char".
Cobra.Core_ert_512775b440396f404581b5a19ec861a2.tmp/CobraCore.cobra(483): error: The left expression ('=') cannot be "in" the right-hand expression because the left type is "String" and the right-hand expression contains type "char".
Cobra.Core_ert_512775b440396f404581b5a19ec861a2.tmp/HtmlExceptionReportWriter.cobra(177): error: The left expression ('IEquatableOf') cannot be "in" the right-hand expression because the left type is "String" and the right-hand expression contains type "char".
Cobra.Core_ert_512775b440396f404581b5a19ec861a2.tmp/Extensions.cobra(182): error: Cannot return String[]? because "split" is declared to return a String[].
Cobra.Core_ert_512775b440396f404581b5a19ec861a2.tmp/Extensions.cobra(186): error: Cannot return String[]? because "split" is declared to return a String[].
Cobra.Core_ert_512775b440396f404581b5a19ec861a2.tmp/Extensions.cobra(189): error: Cannot return String[]? because "split" is declared to return a String[].
Cobra.Core_ert_512775b440396f404581b5a19ec861a2.tmp/SourceSite.cobra(28): error: The left expression ('Foo.cobra') cannot be "in" the right-hand expression because the left type is "String" and the right-hand expression contains type "char".
Cobra.Core_ert_512775b440396f404581b5a19ec861a2.tmp/SourceSite.cobra(29): error: The left expression ('exception on') cannot be "in" the right-hand expression because the left type is "String" and the right-hand expression contains type "char".
Cobra.Core_ert_512775b440396f404581b5a19ec861a2.tmp/StringMaker.cobra(397): error: The left expression (typeName) cannot be "in" the right-hand expression because the left type is "String" and the right-hand expression contains type "char".
InstallFromWorkspace.cobra(386): error: The left expression (_platformArg) cannot be "in" the right-hand expression because the left type is "String?" and the right-hand expression contains type "char".
InstallFromWorkspace.cobra(477): error: The left expression (' ') cannot be "in" the right-hand expression because the left type is "String" and the right-hand expression contains type "char".
InstallFromWorkspace.cobra(550): error: The left expression ('The Cobra Programming Language') cannot be "in" the right-hand expression because the left type is "String" and the right-hand expression contains type "char".
InstallFromWorkspace.cobra(551): error: The left expression ('Copyright') cannot be "in" the right-hand expression because the left type is "String" and the right-hand expression contains type "char".
InstallFromWorkspace.cobra(552): error: The left expression ('Usage') cannot be "in" the right-hand expression because the left type is "String" and the right-hand expression contains type "char".
InstallFromWorkspace.cobra(788): error: The left expression ('svn-') cannot be "in" the right-hand expression because the left type is "String" and the right-hand expression contains type "char".
InstallFromWorkspace.cobra(799): error: The left expression (arch) cannot be "in" the right-hand expression because the left type is "String" and the right-hand expression contains type "char".
InstallFromWorkspace.cobra(799): error: The left expression (ver) cannot be "in" the right-hand expression because the left type is "String?" and the right-hand expression contains type "char".
InstallFromWorkspace.cobra(802): error: The left expression (ver) cannot be "in" the right-hand expression because the left type is "String?" and the right-hand expression contains type "char".
InstallFromWorkspace.cobra(850): error: The left expression ('[dllName], Version=') cannot be "in" the right-hand expression because the left type is "String" and the right-hand expression contains type "char".
Compilation failed - 19 errors, 0 warnings
Not running due to errors above.


Version info:
Code: Select all
The Cobra Programming Language svn:3030 (post 0.9.4) / 2013-08-16
on Mono 5.18.0.268 CLR v4.0.30319 on Ubuntu 18.10
at /media/Data/Downloads/Cobra-0.9.6/Source/Snapshot/cobra.exe


The version says 0.9.4 but I downloaded 0.9.6. (I have tried it with actual 0.9.4 as well, with the same result.)