Forums

What is your opinion on version numbers?

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

Re: What is your opinion on version numbers?

Postby torial » Wed Jul 13, 2011 7:58 pm

How close are we to a 0.9 release? I know we can build from source, but I think having a recently released version is good for people who are new and considering Cobra.
torial
 
Posts: 229
Location: IA

Re: What is your opinion on version numbers?

Postby Charles » Wed Jul 13, 2011 8:48 pm

I agree and this has been on my mind as well. I think we're close, like in the 2 week range.

Can you guys test the changes I just made to the installer? It would be helpful for a release.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: What is your opinion on version numbers?

Postby suliman » Thu Jul 14, 2011 1:29 am

it would be nice to see in release integration future in VS2010 so more people can develop in popular IDE.
suliman
 
Posts: 18

Re: What is your opinion on version numbers?

Postby Charles » Thu Jul 14, 2011 9:20 am

The community is going to have to work on IDE integration, as I don't have time after working on the language. This is true in other language groups as well, including Python and Ruby, where the main language author doesn't maintain the IDE integration.

Matthew Strawbridge started VS2010 integration which is documented here. I'll see if I can coordinate with him to have a new version of that to coincide with 0.9.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: What is your opinion on version numbers?

Postby torial » Thu Jul 14, 2011 10:22 am

Charles wrote:I agree and this has been on my mind as well. I think we're close, like in the 2 week range.

Can you guys test the changes I just made to the installer? It would be helpful for a release.


When I got the latest from SVN, and then I run the InstallFromWorkspace.exe as administrator, I get an error :
run: cobra.exe -ert:no hello
: cobra: error: Cannot find "hello" as a file.
: Run Cobra without options to get full usage information.

** ERROR: Exit code from running Source Cobra: 1


I notice in that particular directory there is a hello.exe (which I built in March), but there is no longer a hello.cobra.

Should I just copy hello.cobra from elsewhere? Or is a patch needed?
torial
 
Posts: 229
Location: IA

Re: What is your opinion on version numbers?

Postby Charles » Thu Jul 14, 2011 1:08 pm

I don't think you can really have the latest source because I already fixed InstallFromWorkspace.cobra for this situation ("hello.cobra" was moved down into a "Misc" subdirectory). For example, line 646 and 647 should read:
hello = 'Misc/hello.cobra'
output = .runSourceCobra('-ert:no [hello]')

Did you update the entire workspace? What is your revision number? Mine is 2561.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: What is your opinion on version numbers?

Postby torial » Thu Jul 14, 2011 2:18 pm

My source folder says: 2561.

Just to be sure I ran a svn update, and it pulled nothing down (ie it was all current).

There isn't any batch files in the Source directory (which I remember using in previous builds), so I just clicked on the InstallFromWorkspace.exe (which is old).

I'll run cobra InstallFromWorkspace and see if that resolves it.
torial
 
Posts: 229
Location: IA

Re: What is your opinion on version numbers?

Postby torial » Thu Jul 14, 2011 2:22 pm

Here's what I get when I run cobra installfromworkspace.cobra

==== .NET 4.0 Prompt

Cobra can be installed for .NET 2.0/3.0/3.5 or .NET 4.0.
Do you want to install for .NET 4.0? [no] yes

==== Locate and test Cobra Snapshot compiler

run: Snapshot\cobra.exe -about
: The Cobra Programming Language 0.8.0 post-release
: Copyright (C) 2003-2011 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 -native-compiler:C:\Windows\Microsoft.NET\Frame
work\v4.0.30319\csc.exe -turbo -ert:yes cobra.cobra -files:files-to-compile.text

: error: Could not write to output file "c:\Cobra\CobraSVN\Source\cobra.exe"
-- "The process cannot access the file because it is being used by another proce
ss. "
: Compilation failed - 1 error, 0 warnings

** ERROR: Exit code from running SnapshotCobra: 1
Need help with the above error?
* Make sure you ran as a Windows Administrator.
* Install .NET or a Visual Studio product if you have not before.
* Review http://cobra-language.com/troubleshooting
* Ask at http://cobra-language.com/discuss
* Ask at http://cobra-language.com/irc


Please note.. the command prompt I'm running from has Admin rights.

I'll check for non-4.0 to see if that works fine. I've got multiple .Net 4 installs (Client, Extended, etc..) so I'm presuming I'm sufficiently setup (including Visual Studio 2010 Express Web developer)
torial
 
Posts: 229
Location: IA

Re: What is your opinion on version numbers?

Postby Charles » Thu Jul 14, 2011 2:35 pm

torial wrote:There isn't any batch files in the Source directory (which I remember using in previous builds), so I just clicked on the InstallFromWorkspace.exe (which is old).

That was the problem. InstallFromWorkspace.exe gets built from source each time. When you "svn up" the source was updated, but not the .exe.

The batch files are in the "bin" subdirectory now, so you type:
Code: Select all
bin/install-from-workspace
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: What is your opinion on version numbers?

Postby Charles » Thu Jul 14, 2011 2:37 pm

Isn't this the problem right here?
torial wrote:: error: Could not write to output file "c:\Cobra\CobraSVN\Source\cobra.exe"
-- "The process cannot access the file because it is being used by another proce
ss. "

Do you have cobra.exe being used for anything else right now? What happens if you log off and log back in and try again?
Charles
 
Posts: 2515
Location: Los Angeles, CA

PreviousNext

Return to Discussion

Who is online

Users browsing this forum: No registered users and 45 guests