i just installed the d/l files from this website for win 7 home premium 64-bit. the install seemed routine except that i was warned that svn isn't installed on my machine. (i don't know how, and when i went to look at the various svn clients that are downloadable from the web, the nomenclature describing each one was way over my head. by the way, regarding your documentation: why would any windows computer be svn-friendly from the command line, without some type of preparation of the computer first?)
in any case, i've got the dreaded 'can't find cobra.lang' exception when trying to compile. strangely, if i copy "cobra.lang.dll" from the source folder, into the target folder, everything behaves and i can compile. i can't for the life of me see what i've done wrong in amending the path. ok, you're about to ask for the feedback from the computer, so here it is.
first, here's the install feedback:
**********************************
uIf you are on Windows Vista and you get an error message then
you may need to run with elevated privileges, such as with an
admin account or power user account.
Compiling installation program...
The Cobra Programming Language
Install From Workspace
Working...
==== Verify installation directory
found dir: C:\Cobra
==== Verify running in workspace
Verified.
==== Locate and test Cobra Snapshot compiler
run: Snapshot\cobra.exe -about
: The Cobra Programming Language 0.8.0 post-release
: Copyright (C) 2003-2012 by Cobra Language LLC. All Rights Reserved.
:
: On the web:
http://Cobra-Language.com/ : License:
http://www.opensource.org/licenses/mit-license.php : Source:
http://cobra-language.com/source/ : Support:
http://cobra-language.com/trac/cobra/wiki/UserSupport :
: Usage: cobra -h
==== Build new Cobra compiler
run: Snapshot\cobra.exe -compile -turbo -ert:yes cobra.cobra -files:files-to-compile.text
: Compilation succeeded
==== Retrieve Cobra
base version number
run: cobra.exe -version
: 0.8.0 post-release
base version: 0.8.0-post
==== Build Cobra standard library
run: cobra.exe -bsl -turbo Cobra.Lang\AssemblyAttrs.cobra -key-file:Cobra.Lang\Cobra.Lang.snk
: Compilation succeeded
==== Verify newly built Cobra compiler
run: cobra.exe -about
: The Cobra Programming Language 0.8.0 post-release
: Copyright (C) 2003-2012 by Cobra Language LLC. All Rights Reserved.
:
: On the web:
http://Cobra-Language.com/ : License:
http://www.opensource.org/licenses/mit-license.php : Source:
http://cobra-language.com/source/ : Support:
http://cobra-language.com/trac/cobra/wiki/UserSupport :
: Usage: cobra -h
run: cobra.exe -ert:no hello
: Hello, world.
run: cobra.exe -ert:yes hello
: Hello, world.
run: cobra.exe hello
: Hello, world.
==== Install Cobra standard library to the GAC
Invoking Publish.GacInstall...
Done.
==== Copy files to install directory
found dir: C:\Cobra
del dir : C:\Cobra\Cobra-0.8.0-post
make dir : C:\Cobra\Cobra-0.8.0-post
run: svn info
svn is not installed or it is not in the PATH. The system cannot find the file specified
** WARING: Cannot find version information, svn command line version not installed or failed.
copy from: C:\Users\Paul\Desktop\Cobra_snapshot\HowTo
to: C:\Cobra\Cobra-0.8.0-post\HowTo
copy from: C:\Users\Paul\Desktop\Cobra_snapshot\Reusables
to: C:\Cobra\Cobra-0.8.0-post\Reusables
copy from: C:\Users\Paul\Desktop\Cobra_snapshot\Samples
to: C:\Cobra\Cobra-0.8.0-post\Samples
copy from: C:\Users\Paul\Desktop\Cobra_snapshot\Supplements
to: C:\Cobra\Cobra-0.8.0-post\Supplements
make dir : C:\Cobra\Cobra-0.8.0-post\bin
copy bin: C:\Cobra\Cobra-0.8.0-post\bin
copy from: Cobra.Lang
to: C:\Cobra\Cobra-0.8.0-post\bin\Cobra.Lang
found dir: C:\Cobra\bin
writing : C:\Cobra\bin\cobra.bat
==== Verify newly installed Cobra compiler
run: C:\Cobra\bin\cobra.bat -about
: The Cobra Programming Language 0.8.0 post-release
: Copyright (C) 2003-2012 by Cobra Language LLC. All Rights Reserved.
:
: On the web:
http://Cobra-Language.com/ : License:
http://www.opensource.org/licenses/mit-license.php : Source:
http://cobra-language.com/source/ : Support:
http://cobra-language.com/trac/cobra/wiki/UserSupport :
: Usage: cobra -h
run: C:\Cobra\bin\cobra.bat -ert:yes hello
: Hello, world.
==== Clean up workspace
run: Snapshot\cobra.exe -compile -debug -ert:yes cobra.cobra -files:files-to-compile.text
: Compilation succeeded
run: cobra.exe -bsl -debug
: Compilation succeeded
==== Install "cobra" into a system path directory
The Cobra compiler is not in your PATH. To remedy you can:
1. Add C:\Cobra\bin to your PATH
2. Copy C:\Cobra\bin\cobra.bat to any directory in your PATH
Success!
*************************************
i assume that the "remedy" described above means: choose #1 or #2, but to be safe i did both. here's what happened in another folder that i designated for working and compiling, where i tried to compile but got the dreaded exception:
*************************************
C:\Users\Paul\Desktop\Cobra>copy c:\cobra\bin\cobra.bat
1 file(s) copied.
C:\Users\Paul\Desktop\Cobra>dir
Volume in drive C is Gateway
Volume Serial Number is 1CA0-F1C4
Directory of C:\Users\Paul\Desktop\Cobra
04/20/2012 11:51 PM <DIR> .
04/20/2012 11:51 PM <DIR> ..
04/20/2012 11:30 PM 47 cobra.bat
04/20/2012 11:34 PM 0 exception.txt
04/20/2012 08:59 PM 58 helloworld.cobra
04/20/2012 11:48 PM 3,584 helloworld.exe
04/20/2012 11:48 PM 1,022 path.txt
04/20/2012 11:08 PM 188,416 _g
6 File(s) 193,127 bytes
2 Dir(s) 250,420,490,240 bytes free
C:\Users\Paul\Desktop\Cobra>cobra helloworld
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Cobra.Lang, Version=0.8.0.1, Culture=neutral, PublicKeyToken=0a4783a5c7c9616e' or one of its depen
dencies. The system cannot find the file specified.
File name: 'Cobra.Lang, Version=0.8.0.1, Culture=neutral, PublicKeyToken=0a4783a5c7c9616e'
at Hello.Main()
at MainWrapper.Main()
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
C:\Users\Paul\Desktop\Cobra>
*****************************************
but, as soon as i manually copy cobra.lang.dll from the source folder into my working/compiling folder, the compile behaves:
*****************************************
C:\Users\Paul\Desktop\Cobra>dir
Volume in drive C is Gateway
Volume Serial Number is 1CA0-F1C4
Directory of C:\Users\Paul\Desktop\Cobra
04/20/2012 11:56 PM <DIR> .
04/20/2012 11:56 PM <DIR> ..
04/20/2012 11:30 PM 47 cobra.bat
04/20/2012 11:30 PM 188,416 Cobra.Lang.dll
04/20/2012 11:34 PM 0 exception.txt
04/20/2012 08:59 PM 58 helloworld.cobra
04/20/2012 11:51 PM 3,584 helloworld.exe
04/20/2012 11:48 PM 1,022 path.txt
04/20/2012 11:08 PM 188,416 _g
7 File(s) 381,543 bytes
2 Dir(s) 250,420,002,816 bytes free
C:\Users\Paul\Desktop\Cobra>cobra helloworld
Hello, world.
C:\Users\Paul\Desktop\Cobra>
**************************************
i conclude that i'm doing something really knuckleheaded about dealing with the path, but i can't imagine what it is. i'm assuming that win is essentially a case-insensitive OS, by the way.
in case i forgot to show you the path as seen from my working folder, it's:
*************************************
PATH=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\GtkSharp\2.12\bin;c:\users\paul\desktop\cobra_snapshot\source\
PATH=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\GtkSharp\2.12\bin;c:\cobra\bin
***************************************
-paul