www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - DVM Windows Beta #2 - Up To Date With v0.2.0

reply "Nick Sabalausky" <a a.a> writes:
I've put up a new Windows version of DVM. This should bring it in-sync with 
DVM v0.2.0 on Linux.

Changes since the first windows beta:
----------------------------------------------------
   - Installing DMD with Tango now works (-t or --tango)

   - Added 'dvm-current-dc.bat' and 'dvm-default-dc.bat'. These always refer 
to the current and default versions of DMD, respectively (just like the 
Linux DVM). These are useful for non-commandline apps, because outside the 
command-line, programs don't notice changes in the environment vars unless 
they're specifically written to do so.

   - Fixed spurious message: "The system cannot find the file specified."

Things still to be done on the windows port:
----------------------------------------------------
   - Merge in the latest changes from upstream (ie, everything post-v0.2.0).

   - Check that my code changes haven't broken the Linux version.

As usual, download the binary and then install it by running:
dvm-0.2.0-win-beta2 install dvm

Main page:
https://bitbucket.org/Abscissa256/dvm/wiki/Home

Download page with precompiled Windows binary:
https://bitbucket.org/Abscissa256/dvm/downloads
Jun 06 2011
next sibling parent reply Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
Well, no array bounds error these times, although:
dvm fetch
Fetching: http://ftp.digitalmars.com/dmd..zip
tango.core.Exception.IOException: The resource with URL
"http://ftp.digitalmars.com/dmd..zip" could not be found.

It might be an edge case not worth looking into, depending on your views.

dvm -h and dvm --help still don't display the help page.

Calling dvm --default use 2.053, where 2.053 isn't installed will error with:
tango.core.Exception.IOException: File not found "C:\Documents and
Settings\Andrej\Application Data\dvm\env\dmd-2.053.bat"

Again it's just an edge-case, but it might be worth printing "2.053 is
not installed" or something like that.

dvm-default-dc.bat is great for those lousy apps that don't detect
path changes (e.g. Console2).

Great work overall!
Jun 07 2011
next sibling parent reply "Nick Sabalausky" <a a.a> writes:
"Andrej Mitrovic" <andrej.mitrovich gmail.com> wrote in message 
news:mailman.685.1307442383.14074.digitalmars-d-announce puremagic.com...
 Well, no array bounds error these times, although:
 dvm fetch
 Fetching: http://ftp.digitalmars.com/dmd..zip
 tango.core.Exception.IOException: The resource with URL
 "http://ftp.digitalmars.com/dmd..zip" could not be found.

 It might be an edge case not worth looking into, depending on your views.
Yea, the upstream DVM doesn't really do any cmdline validation right now either. But I agree, all of these command line argument issues should be fixed. I finished bringing the, umm, "trunk" of my windows fork up to date with the main "trunk" last night, and issued a pull request. So once that's in, I'll probably try tackling that (unless Jacob wants to).
 dvm -h and dvm --help still don't display the help page.
Really? That's weird, it worked for me. I'll download the exe and see if I screwed up building it. But, did you actually install the new one? Even if you alredy have an older DVM installed, to upgrade to a new one, you still have to run: dvm-0.2.0-win-beta2 install dvm That will update the installation.
Jun 07 2011
next sibling parent Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
Yes I've also tried doing a clean install and -h didn't do anything.
Jun 07 2011
prev sibling parent reply "Nick Sabalausky" <a a.a> writes:
"Nick Sabalausky" <a a.a> wrote in message 
news:islsvr$15t3$1 digitalmars.com...
 "Andrej Mitrovic" <andrej.mitrovich gmail.com> wrote in message 
 news:mailman.685.1307442383.14074.digitalmars-d-announce puremagic.com...
 dvm -h and dvm --help still don't display the help page.
Really? That's weird, it worked for me. I'll download the exe and see if I screwed up building it.
Ugh, that's what I get for posting shit late at night and early in the morning... The "win beta2" only brings the Windows DVM in-sync with the Linux DVM v0.2.0. The -h/--help issue still existed in Linux DVM v0.2.0. So that problem is still in "win beta2" *despite* my earlier claim to the contrary. However, after 0.2.0, Jacob fixed the -h/--help issue, and then I merged it into my windows fork (along with all his other post-0.2.0 changes) *after* "win beta 2". Long story short, it's fixed in the latest version control and in my pull request, but the fix didn't make it into "win beta2". I'll leave it up to Jacob to decide when DVM's ready for another release, although there is at least one other thing that should be fixed before that's done (upgrading DVM from 0.2.0 to the latest hg version doesn't populate the newly-added list of already-installed compiler versions).
Jun 07 2011
parent reply Jacob Carlborg <doob me.com> writes:
On 2011-06-07 21:33, Nick Sabalausky wrote:
 "Nick Sabalausky"<a a.a>  wrote in message
 news:islsvr$15t3$1 digitalmars.com...
 "Andrej Mitrovic"<andrej.mitrovich gmail.com>  wrote in message
 news:mailman.685.1307442383.14074.digitalmars-d-announce puremagic.com...
 dvm -h and dvm --help still don't display the help page.
Really? That's weird, it worked for me. I'll download the exe and see if I screwed up building it.
Ugh, that's what I get for posting shit late at night and early in the morning... The "win beta2" only brings the Windows DVM in-sync with the Linux DVM v0.2.0. The -h/--help issue still existed in Linux DVM v0.2.0. So that problem is still in "win beta2" *despite* my earlier claim to the contrary. However, after 0.2.0, Jacob fixed the -h/--help issue, and then I merged it into my windows fork (along with all his other post-0.2.0 changes) *after* "win beta 2". Long story short, it's fixed in the latest version control and in my pull request, but the fix didn't make it into "win beta2". I'll leave it up to Jacob to decide when DVM's ready for another release, although there is at least one other thing that should be fixed before that's done (upgrading DVM from 0.2.0 to the latest hg version doesn't populate the newly-added list of already-installed compiler versions).
I guess DVM can get a new release when I merged your fork and fixing most of the bugs mentioned here. I have a couple of ideas for new features but those can wait for later releases. -- /Jacob Carlborg
Jun 07 2011
next sibling parent reply Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
Is there a limit to how far DMD releases are supported?

I've tried to install 1.023 but I got back an error:

dvm install -t 1.023
Installing: dmd-1.023
dvm.dvm.Exceptions.DvmException dvm\commands\Install.d(109): The
platform "windows" is not compatible with the compiler dmd 1.023

I needed that version to attempt to build the ancient cairo bindings
for D. I wanted to try the bindings out without having to port
everything to a new DMD version.
Jul 03 2011
next sibling parent reply bearophile <bearophileHUGS lycos.com> writes:
Andrej Mitrovic Wrote:

 Is there a limit to how far DMD releases are supported?
You are able to find very old versions of DMD too, all the way to the latest one. This is the support. Bye, bearophile
Jul 03 2011
parent reply Daniel Gibson <metalcaedes gmail.com> writes:
Am 04.07.2011 03:01, schrieb bearophile:
 Andrej Mitrovic Wrote:
 
 Is there a limit to how far DMD releases are supported?
You are able to find very old versions of DMD too, all the way to the latest one. This is the support.
I think he was talking about how far DVM supports old DMD releases, not the support/availability from the D project (I hope I didn't misunderstand you ;-)). Cheers, - Daniel
Jul 03 2011
parent Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
On 7/4/11, Daniel Gibson <metalcaedes gmail.com> wrote:
 Am 04.07.2011 03:01, schrieb bearophile:
 Andrej Mitrovic Wrote:

 Is there a limit to how far DMD releases are supported?
You are able to find very old versions of DMD too, all the way to the latest one. This is the support.
I think he was talking about how far DVM supports old DMD releases, not the support/availability from the D project (I hope I didn't misunderstand you ;-)). Cheers, - Daniel
Yeah exactly. Also, DMD versions older than 1.01 are not available on the site (not that I care). The copyright in the sources says 2006, and the 1.01 dates 2007. So I'm not sure which version of the compiler was used to compile those bindings. I've emailed the author though, waiting for an answer atm.
Jul 03 2011
prev sibling parent reply Jacob Carlborg <doob me.com> writes:
On 2011-07-03 22:12, Andrej Mitrovic wrote:
 Is there a limit to how far DMD releases are supported?

 I've tried to install 1.023 but I got back an error:

 dvm install -t 1.023
 Installing: dmd-1.023
 dvm.dvm.Exceptions.DvmException dvm\commands\Install.d(109): The
 platform "windows" is not compatible with the compiler dmd 1.023

 I needed that version to attempt to build the ancient cairo bindings
 for D. I wanted to try the bindings out without having to port
 everything to a new DMD version.
DVM will support any version that follows this: * Location and name of the DMD archive: http://ftp.digitalmars.com/dmd.<version> * The archive needs to contain a single folder with one of the following names: "dmd" or "dmd2" * The platform specific files need to be in a folder named as follows: Mac OS X: "osx" Linux: "linux" FreeBSD: "freebsd" Windows: "windows" (seems to be failing at this requirement). * The path of the bin folder needs to be located in the platform specific folder and be named "bin" or "bin64" * The path of the bin folder needs to be located in the platform specific folder and be named "lib" or "lib64" * It needs to have a folder named "src" at the root level * It needs to have a file named "dmd.conf" (on posix) or "sc.ini" (on windows) in the bin folder. -- /Jacob Carlborg
Jul 03 2011
parent Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
Oh ok, I'll try rearranging the archive and see if that helps.
Jul 04 2011
prev sibling parent Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
Hmm, looks like 1.023 can't build it. So it must be some older/newer
version that builds it. But how can I tell when it doesn't say in the
readme, argh.
Jul 03 2011
prev sibling parent Jacob Carlborg <doob me.com> writes:
On 2011-06-07 12:26, Andrej Mitrovic wrote:
 Well, no array bounds error these times, although:
 dvm fetch
 Fetching: http://ftp.digitalmars.com/dmd..zip
 tango.core.Exception.IOException: The resource with URL
 "http://ftp.digitalmars.com/dmd..zip" could not be found.

 It might be an edge case not worth looking into, depending on your views.

 dvm -h and dvm --help still don't display the help page.

 Calling dvm --default use 2.053, where 2.053 isn't installed will error with:
 tango.core.Exception.IOException: File not found "C:\Documents and
 Settings\Andrej\Application Data\dvm\env\dmd-2.053.bat"

 Again it's just an edge-case, but it might be worth printing "2.053 is
 not installed" or something like that.

 dvm-default-dc.bat is great for those lousy apps that don't detect
 path changes (e.g. Console2).

 Great work overall!
Currently DVM does basically no command validation. I'm just relying on D's exceptions, which actually works quite well considering I don't have to do anything. -- /Jacob Carlborg
Jun 07 2011
prev sibling parent reply Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
I can already put this tool to good use. I've had DDMD fail to compile
for me, so I just did a 'dvm install 2.051' and 'dvm use 2.051', rerun
the build script and it then compiles again.

Huge time-saver, imo!
Jun 07 2011
next sibling parent "Nick Sabalausky" <a a.a> writes:
"Andrej Mitrovic" <andrej.mitrovich gmail.com> wrote in message 
news:mailman.686.1307449675.14074.digitalmars-d-announce puremagic.com...
I can already put this tool to good use. I've had DDMD fail to compile
 for me, so I just did a 'dvm install 2.051' and 'dvm use 2.051', rerun
 the build script and it then compiles again.

 Huge time-saver, imo!
Yea, the whole reason I was so motivated to port this to Windows was because I really, really wanted to use it :)
Jun 07 2011
prev sibling parent Jacob Carlborg <doob me.com> writes:
On 2011-06-07 14:27, Andrej Mitrovic wrote:
 I can already put this tool to good use. I've had DDMD fail to compile
 for me, so I just did a 'dvm install 2.051' and 'dvm use 2.051', rerun
 the build script and it then compiles again.

 Huge time-saver, imo!
I was for cases like this I created the tool from the beginning. -- /Jacob Carlborg
Jun 07 2011