Page 1 of 1

CobraInfo.cs could not be found

PostPosted: Thu Jan 01, 2009 7:19 am
by themaniac
I've just updated to the latest cobra (r1864), and installed using ./install-from-workspace (on OSX 10.5). However...

Code: Select all
$ cobra spamscan.cobra
(0): error: Source file "/usr/local/cobra/Cobra-0.8.0-post/bin/CobraInfo.cs" could not be found
Compilation failed - 1 error, 0 warnings
Not running due to errors above.


It seems the file is usually in the bin directory
Code: Select all
$ find /usr/local/cobra/ -iname CobraInfo.cs
/usr/local/cobra//cobra-0.7.4/bin/CobraInfo.cs
/usr/local/cobra//cobra-svn-post-0.7.4/bin/CobraInfo.cs
/usr/local/cobra//cobra-svn-post-0.7.4/bin/Snapshot/CobraInfo.cs


However,
Code: Select all
$ find /usr/local/cobra/Cobra-0.8.0-post/ -iname CobraInfo.cs
$

and in my checkout directory
Code: Select all
$ find ./ -iname CobraInfo.cs
$


Any ideas? Thanks in advance.

Re: CobraInfo.cs could not be found

PostPosted: Thu Jan 01, 2009 8:11 am
by gauthier
I just encounter the same issue, my problem was also that I get several Cobra.Lang.CobraInfo class within every cobra compiled assemblies.

I just keep creating an empty file at the location to workarround the issue

Re: CobraInfo.cs could not be found

PostPosted: Thu Jan 01, 2009 1:48 pm
by Charles
I introduced this bug recently. I'll fix today.

Re: CobraInfo.cs could not be found

PostPosted: Thu Jan 01, 2009 2:38 pm
by Charles
Fixed, tested and checked in. I have Mac OS X as well (as well as Windows XP).

CobraCore.findCobraExe is slightly damaged as a result, although if your cobra.exe is in your system PATH, it will be found.

Re: CobraInfo.cs could not be found

PostPosted: Thu Jan 01, 2009 3:46 pm
by Charles
CobraCore.findCobraExe is now fixed, tested and checked in. I did thorough testing on both Mac OS X and Win XP including fresh installations.