www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - DVM - D Version Manager 0.3.0 (including support for Windows)

reply Jacob Carlborg <doob me.com> writes:
I just released a new version of DVM, 0.3.0. Now with support for 
Windows :), thanks to Nick Sabalausky. For installation instructions 
see: https://bitbucket.org/doob/dvm
Changelog:

Version 0.3.0
   New/Change Features
    * Added an option for installing the latest compiler
    * Better compatibility between different shell implementations
    * Added Windows support. Thanks to Nick Sabalausky
    * Added a "list" command for listing installed compilers
    * Added a "uninstall" command for uninstalling compilers

   Bugs Fixed
    * Can't link using DMD 1.068.
    * Issue 2: The '.dvm/bin/dmd-{ver}' scripts don't work on Ubuntu 10.04
    * Issue 7: No error on invalid command
    * Issue 13: Tmp dir should be deleted before running DVM binary (not 
just after)
    * Issue 5: Invalid character in .dvm/env files
    * Issue 12: "dvm -h" and "dvm --help" print nothing


Upgrading from 0.2.0 to 0.3.0:

It might be necessary to do a complete clean installation by removing 
~/.dvm. This is in particular if you had any problems with the previous 
shell scripts not working.

-- 
/Jacob Carlborg
Jul 17 2011
next sibling parent reply Johann MacDonagh <johann.macdonagh.no spam.gmail.com> writes:
On 7/17/2011 4:10 PM, Jacob Carlborg wrote:
 I just released a new version of DVM, 0.3.0. Now with support for
 Windows :), thanks to Nick Sabalausky. For installation instructions
 see: https://bitbucket.org/doob/dvm
Awesome news. However, I wasn't able to install without admin. Trying to install as a regular using on Win 7 x64 told me: An error occurred: Registry Key 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment': Couldn't open key: Access is denied. As admin it installed successfully.
Jul 17 2011
parent reply "Nick Sabalausky" <a a.a> writes:
"Johann MacDonagh" <johann.macdonagh.no spam.gmail.com> wrote in message 
news:ivvhtr$2j94$1 digitalmars.com...
 On 7/17/2011 4:10 PM, Jacob Carlborg wrote:
 I just released a new version of DVM, 0.3.0. Now with support for
 Windows :), thanks to Nick Sabalausky. For installation instructions
 see: https://bitbucket.org/doob/dvm
Awesome news. However, I wasn't able to install without admin. Trying to install as a regular using on Win 7 x64 told me: An error occurred: Registry Key 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment': Couldn't open key: Access is denied. As admin it installed successfully.
Damn, that's my fault. I thought the try/catch I used would handle that, and I didn't have a restricted account to test with. I guess Windows isn't nice enough to give me a simple exception for that and just bails instead (Or maybe I just caught the wrong exception). I'll fix and submit a pull request. Couple questions: - Did you get that after it prompted you for a "yes/no", or did it not get that far? - Was that message displayed in the cmd prompt or in a dialog box?
Jul 17 2011
parent reply Johann MacDonagh <johann.macdonagh.no spam.gmail.com> writes:
On 7/17/2011 6:41 PM, Nick Sabalausky wrote:
 "Johann MacDonagh"<johann.macdonagh.no spam.gmail.com>  wrote in message
 news:ivvhtr$2j94$1 digitalmars.com...
 - Did you get that after it prompted you for a "yes/no", or did it not get
 that far?

 - Was that message displayed in the cmd prompt or in a dialog box?
No prompt at all, and it was in the console window. You can always create a restricted account for yourself to test it out. It will fire if you try dvm-installer.exe install dvm on a machine that already has dvm installed.
Jul 18 2011
parent reply "Nick Sabalausky" <a a.a> writes:
"Johann MacDonagh" <johann.macdonagh.no spam.gmail.com> wrote in message 
news:j02dmi$1t2c$1 digitalmars.com...
 On 7/17/2011 6:41 PM, Nick Sabalausky wrote:
 "Johann MacDonagh"<johann.macdonagh.no spam.gmail.com>  wrote in message
 news:ivvhtr$2j94$1 digitalmars.com...
 - Did you get that after it prompted you for a "yes/no", or did it not 
 get
 that far?

 - Was that message displayed in the cmd prompt or in a dialog box?
No prompt at all, and it was in the console window.
Thanks. There's a point where it checks the registry to see if DMD already exists in the system PATH (and will prompt the user for further action if it's there, because it would get in the way of DVM's "default compiler" feature). Turns out I forgot to use read-only access (instead of read/write) to open the key for that check.
 You can always create a restricted account for yourself to test it out.
Yea, clearly I should have done that ;)
 It will fire if you try dvm-installer.exe install dvm on a machine that 
 already has dvm installed.
Turns out the problem occurs when trying to install DVM on any limited Windows user account, regardless of an existing DVM or DMD, and regardless of XP/Win7 or 32bit/64bit. Pretty bad since DVM currently only installs per-user. /facepalm I've fixed it and submitted a pull request (and this time I tested it with limited user accounts on both XP and Vista): https://bitbucket.org/doob/dvm/pull-request/2/
Jul 18 2011
next sibling parent reply Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
Interesting.. I've tested it on win7 with admin rights but with UAC
set to max, and it didn't complain, so I assumed it would work without
admin rights too.
Jul 18 2011
parent reply "Nick Sabalausky" <a a.a> writes:
"Andrej Mitrovic" <andrej.mitrovich gmail.com> wrote in message 
news:mailman.1759.1311050894.14074.digitalmars-d-announce puremagic.com...
 Interesting.. I've tested it on win7 with admin rights but with UAC
 set to max, and it didn't complain, so I assumed it would work without
 admin rights too.
Including v0.3.0? (The part that was messing up wasn't in any of the earlier Windows betas of DVM.)
Jul 19 2011
parent reply Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
No I think I've only tested the beta.
Jul 19 2011
parent Johann MacDonagh <johann.macdonagh.no spam.gmail.com> writes:
On 7/19/2011 5:52 AM, Andrej Mitrovic wrote:
 No I think I've only tested the beta.
Yeah, the beta didn't complain either, only this new version. Also, it won't trigger UAC (because we're not asking to elevate), it just fails to open.
Jul 19 2011
prev sibling parent reply "Nick Sabalausky" <a a.a> writes:
"Nick Sabalausky" <a a.a> wrote in message 
news:j0327g$1ci$1 digitalmars.com...
 I've fixed it and submitted a pull request (and this time I tested it with 
 limited user accounts on both XP and Vista):

 https://bitbucket.org/doob/dvm/pull-request/2/
If anyone wants to use the fixed version (before the pull request gets merged and a new release issued), I've uploaded a precompiled binary: http://www.semitwist.com/download/app/dvm-0.3.0_FIXED-win.exe (I'm trying to put it up here too: https://bitbucket.org/Abscissa256/dvm/downloads But it's taking absolutely forever...)
Jul 19 2011
parent reply Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
I know this is maybe obvious for linux geeks, but your shell command
won't work like this:
wget -O dvm https://bitbucket.org/doob/dvm/downloads/dvm-0.3.0-linux-32
&& chmod +x dvm && ./dvm install dvm

Because you have to call this before executing dvm:
chmod +x dvm
Aug 01 2011
parent reply Daniel Gibson <metalcaedes gmail.com> writes:
Am 01.08.2011 22:53, schrieb Andrej Mitrovic:
 I know this is maybe obvious for linux geeks, but your shell command
 won't work like this:
 wget -O dvm https://bitbucket.org/doob/dvm/downloads/dvm-0.3.0-linux-32
 &&  chmod +x dvm&&  ./dvm install dvm

 Because you have to call this before executing dvm:
 chmod +x dvm
This is included in the command above?
Aug 01 2011
parent Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
Wow! Indeed it is. I really don't know what to say. It didn't work
when I tried it, but it does if I manually call chmod. Hillarious.
Aug 01 2011
prev sibling next sibling parent reply "Nick Sabalausky" <a a.a> writes:
"Jacob Carlborg" <doob me.com> wrote in message 
news:ivvftq$2fvd$1 digitalmars.com...
I just released a new version of DVM, 0.3.0. Now with support for Windows 
:), thanks to Nick Sabalausky. For installation instructions see: 
https://bitbucket.org/doob/dvm
 Changelog:

 Version 0.3.0
   New/Change Features
    * Added an option for installing the latest compiler
    * Better compatibility between different shell implementations
    * Added Windows support. Thanks to Nick Sabalausky
    * Added a "list" command for listing installed compilers
    * Added a "uninstall" command for uninstalling compilers

   Bugs Fixed
    * Can't link using DMD 1.068.
    * Issue 2: The '.dvm/bin/dmd-{ver}' scripts don't work on Ubuntu 10.04
    * Issue 7: No error on invalid command
    * Issue 13: Tmp dir should be deleted before running DVM binary (not 
 just after)
    * Issue 5: Invalid character in .dvm/env files
    * Issue 12: "dvm -h" and "dvm --help" print nothing


 Upgrading from 0.2.0 to 0.3.0:

 It might be necessary to do a complete clean installation by removing 
 ~/.dvm.
And also by removing the DVM stuff that was auto-added to .bashrc (if any).
 This is in particular if you had any problems with the previous shell 
 scripts not working.
If you haven't had such problems, then you should be good without wiping ~/.dvm. The most likely problem was with invoking a specific version of DMD directly via "dvm-{version}", so that should be a good test. (At least that was my experience on Kubuntu 10.04, YMMV.) This issue shouldn't affect people who used the Windows betas since Windows already uses completely different scripts with completely different syntax.
Jul 17 2011
parent Jacob Carlborg <doob me.com> writes:
On 2011-07-18 00:34, Nick Sabalausky wrote:
 "Jacob Carlborg"<doob me.com>  wrote in message
 news:ivvftq$2fvd$1 digitalmars.com...
 I just released a new version of DVM, 0.3.0. Now with support for Windows
 :), thanks to Nick Sabalausky. For installation instructions see:
 https://bitbucket.org/doob/dvm
 Changelog:

 Version 0.3.0
    New/Change Features
     * Added an option for installing the latest compiler
     * Better compatibility between different shell implementations
     * Added Windows support. Thanks to Nick Sabalausky
     * Added a "list" command for listing installed compilers
     * Added a "uninstall" command for uninstalling compilers

    Bugs Fixed
     * Can't link using DMD 1.068.
     * Issue 2: The '.dvm/bin/dmd-{ver}' scripts don't work on Ubuntu 10.04
     * Issue 7: No error on invalid command
     * Issue 13: Tmp dir should be deleted before running DVM binary (not
 just after)
     * Issue 5: Invalid character in .dvm/env files
     * Issue 12: "dvm -h" and "dvm --help" print nothing


 Upgrading from 0.2.0 to 0.3.0:

 It might be necessary to do a complete clean installation by removing
 ~/.dvm.
And also by removing the DVM stuff that was auto-added to .bashrc (if any).
 This is in particular if you had any problems with the previous shell
 scripts not working.
If you haven't had such problems, then you should be good without wiping ~/.dvm. The most likely problem was with invoking a specific version of DMD directly via "dvm-{version}", so that should be a good test. (At least that was my experience on Kubuntu 10.04, YMMV.) This issue shouldn't affect people who used the Windows betas since Windows already uses completely different scripts with completely different syntax.
That's correct. -- /Jacob Carlborg
Jul 17 2011
prev sibling next sibling parent reply Mike Parker <aldacron gmail.com> writes:
On 7/18/2011 5:10 AM, Jacob Carlborg wrote:
 I just released a new version of DVM, 0.3.0. Now with support for
 Windows :), thanks to Nick Sabalausky. For installation instructions
 see: https://bitbucket.org/doob/dvm
The project page still says "Currently no Windows version" under the "Limitations" heading.
Jul 17 2011
parent Jacob Carlborg <doob me.com> writes:
On 2011-07-18 06:51, Mike Parker wrote:
 On 7/18/2011 5:10 AM, Jacob Carlborg wrote:
 I just released a new version of DVM, 0.3.0. Now with support for
 Windows :), thanks to Nick Sabalausky. For installation instructions
 see: https://bitbucket.org/doob/dvm
The project page still says "Currently no Windows version" under the "Limitations" heading.
Good point, fixed. -- /Jacob Carlborg
Jul 17 2011
prev sibling parent reply "Lars T. Kyllingstad" <public kyllingen.NOSPAMnet> writes:
On Sun, 17 Jul 2011 22:10:39 +0200, Jacob Carlborg wrote:

 I just released a new version of DVM, 0.3.0. Now with support for
 Windows :), thanks to Nick Sabalausky. For installation instructions
 see: https://bitbucket.org/doob/dvm
Cool! This is a great tool, very useful. -Lars
Jul 18 2011
parent Jacob Carlborg <doob me.com> writes:
On 2011-07-18 11:31, Lars T. Kyllingstad wrote:
 On Sun, 17 Jul 2011 22:10:39 +0200, Jacob Carlborg wrote:

 I just released a new version of DVM, 0.3.0. Now with support for
 Windows :), thanks to Nick Sabalausky. For installation instructions
 see: https://bitbucket.org/doob/dvm
Cool! This is a great tool, very useful. -Lars
Thanks. -- /Jacob Carlborg
Jul 18 2011