Forums

Install Error!!

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

Install Error!!

Postby gleyzy » Thu May 13, 2010 6:47 am

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
gleyzy
 
Posts: 4

Re: Install Error!!

Postby Charles » Thu May 13, 2010 10:00 am

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
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Install Error!!

Postby gleyzy » Thu May 13, 2010 10:09 am

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?
gleyzy
 
Posts: 4

Re: Install Error!!

Postby Gameday » Thu May 13, 2010 11:28 am

Could this be related to a different encoding? Probably not, but it was the first think I though about from the command prompt title.
Gameday
 
Posts: 27

Re: Install Error!!

Postby Charles » Thu May 13, 2010 12:56 pm

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
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Install Error!!

Postby gleyzy » Thu May 13, 2010 1:37 pm

I did all things you said like these:
Image
Image

But, the output is same, nothing change..
gleyzy
 
Posts: 4

Re: Install Error!!

Postby Charles » Thu May 13, 2010 1:44 pm

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?
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Install Error!!

Postby gleyzy » Thu May 13, 2010 2:09 pm

I looked carefully, no change and like that signs. Have you got MSN? Can you connect my computer and try to solve remotely?
gleyzy
 
Posts: 4

Re: Install Error!!

Postby Charles » Wed May 19, 2010 3:28 pm

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.
Charles
 
Posts: 2515
Location: Los Angeles, CA


Return to Discussion

Who is online

Users browsing this forum: No registered users and 49 guests

cron