Page 1 of 1

Install Error!!

PostPosted: Thu May 13, 2010 6:47 am
by gleyzy
Hello, when I was trying to install cobra from command line,I got these error messages and installation failed. How can I solve this problem and install cobra friends?
ScreenShoot:
Image

Re: Install Error!!

PostPosted: Thu May 13, 2010 10:00 am
by Charles
Wow I haven't seen that one before.

-- What do you see if you enter this at the command line?
Code: Select all
type _ch_cobra-extra-source.cobra

-- Did you run the command line as an admin? You can do this by right clicking the command prompt launch icon and choosing "Run as administrator".


-Chuck

Re: Install Error!!

PostPosted: Thu May 13, 2010 10:09 am
by gleyzy
Sir, I run command line as an administrator but result is same, there is nothing change. And when I paste code which you gave me above, command line says me: "System can not find the specified file".. What do you think about this problem, sir?

Re: Install Error!!

PostPosted: Thu May 13, 2010 11:28 am
by Gameday
Could this be related to a different encoding? Probably not, but it was the first think I though about from the command prompt title.

Re: Install Error!!

PostPosted: Thu May 13, 2010 12:56 pm
by Charles
Sorry, I thought that file was an intermediate file written to disk, but it's just kept in memory. Can you edit Cobra-2010-04-02\Source\Phases\ParsePhase.cobra to add the following 3 print statements around line 27?
# implement -extra-source option
extraSource = .options.getDefault('extra-source', '').trim to String
if extraSource <> ''
print '> > >'
print extraSource
print '< < <'

Run again and share the output.

Thanks,
Chuck

Re: Install Error!!

PostPosted: Thu May 13, 2010 1:37 pm
by gleyzy
I did all things you said like these:
Image
Image

But, the output is same, nothing change..

Re: Install Error!!

PostPosted: Thu May 13, 2010 1:44 pm
by Charles
When I add those lines and run the installer, I get extra output like so:
Code: Select all
...
==== Build Cobra standard library

run: cobra.exe -bsl -kif Cobra.Lang\AssemblyAttrs.cobra -key-file:Cobra.Lang\Cobra.Lang.snk
   : > > >
   : use System.Reflection
   : assembly
   :    has AssemblyVersion('0.8.0.1')
   :
   : namespace Cobra.Lang
   :     class CobraInfo
   :         get cobraPath as String is shared
   :             return r"C:\Documents and Settings\Chuck\My Documents\Projects\Cobra\Workspace-E\Source\cobra.exe"
   : < < <
   : Compilation succeeded

If you just glance at it, it does not stand out, but if you look more carefully, do you see a " : > > >" line?

Re: Install Error!!

PostPosted: Thu May 13, 2010 2:09 pm
by gleyzy
I looked carefully, no change and like that signs. Have you got MSN? Can you connect my computer and try to solve remotely?

Re: Install Error!!

PostPosted: Wed May 19, 2010 3:28 pm
by Charles
I haven't heard back. Or I missed your email.

I added some code to print the extra source if it has a failure:

http://cobra-language.com/trac/cobra/changeset/2375

So if this happens again, we'll have more info. If you want to try it out, see HowToInstallFromSource.