Page 1 of 1

Installing Cobra 0.96

PostPosted: Tue Jul 15, 2014 7:15 pm
by ThatGuy
Hello, I decided to start exploring other languages recently and Cobra caught my eye. So I downloaded it and ran bin\install-from-workspace and I keep getting this error
==== Clean up workspace

==== Install "cobra" into a system path directory

Unhandled Exception: System.ArgumentException: Illegal characters in path.
at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)

at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.GetFullPath(String path)
at InstallFromWorkspace.InstallInPath() in c:\Users\<myName>\Documents\Cobra\Source\InstallFromWorkspace.cobra:line 1017
at InstallFromWorkspace.Run() in c:\Users\<myName>\Documents\Cobra\Source\InstallFromWorkspace.cobra:line 174
at InstallFromWorkspace.Main() in c:\Users\<myName>\Documents\Cobra\Source\InstallFromWorkspace.cobra:line 129

Any ideas? I am running windows 7 with VS Express 2013 installed and I did use the admin command prompt

Re: Installing Cobra 0.96

PostPosted: Wed Jul 16, 2014 10:12 pm
by ptokremin

since I'm new to this as well, I can only tell you what worked for me...

Did you download the release or did you try to build Cobra from source? I believe the "install from work space" is meant to be used with the second alternative. Be sure the run the "visual studio command prompt" with admin rights when you try it. And that you have .NET 4.5 installed.

Btw you can use Xamarin Studio (MonoDelelop) to check out the Cobra sources from the SVN repository without having to install a svn client (maybe this works with VS2013 as well).

You do not have to install the compiler if you want to run it from the command line and use a text editor.
In this case you might -depending on your code - have to copy the CobraCore.dll to you application directory or use the -copy-core compiler switch.

good luck!

PS: In case you're wondering I use Xamarin Studio with Cobra build from sources on a Win7/.Net client with VS2010 and the SDK v6.0 (was that .NET 2.0??) installed. The installation did not completely finish but it works anyway.

Re: Installing Cobra 0.96

PostPosted: Fri Jul 18, 2014 10:53 am
by ThatGuy
Thank you for your reply. Turns out that Cobra did install, it was just not put on the PATH. I probably would not have figured this out without you.