elm-lang / elm-platform

Bundle of all core development tools for Elm
BSD 3-Clause "New" or "Revised" License
762 stars 125 forks source link

Windows installer doesn't change the PATH #161

Closed dusky3 closed 8 years ago

dusky3 commented 8 years ago

I checked the option during the install and tried installing twice, but the installer dosn't change the PATH variable. When I run elm repl it's still 0.17 instead of 0.17.1. When I run updatepath.vbs myself I get the following error:

Line 2
Char: 1
Error: Subscript out of range
Code: 800A0009
Source: Microsoft VBScript runtime error

I run Windows 7 64bit.

jvoigtlaender commented 8 years ago

That line (2) tries to read an argument. When you "run updatepath.vbs" yourself, do you provide it an argument?

jvoigtlaender commented 8 years ago

Actually, have you checked that the installer hasn't added Elm to the PATH? Maybe it has added it to the User's PATH, and the fact that running the repl still gives you 0.17 is just because the old version is on the System's PATH?

dusky3 commented 8 years ago

That line (2) tries to read an argument. When you "run updatepath.vbs" yourself, do you provide it an argument?

No.

Actually, have you checked that the installer hasn't added Elm to the PATH? Maybe it has added it to the User's PATH, and the fact that running the repl still gives you 0.17 is just because the old version is on the System's PATH?

You are right, it is in the user's PATH along with the old version (0.16) which I just deleted from the PATH, but no 0.17 is there which is weird. I tried the repl in Lighttable and it uses 0.17.1. I opened the command prompt again and it still runs 0.17, but the git-bash which I have installed uses 0.17.1 like Lighttable - see the attached screenshot. I don't know why command prompt still runs the 0.17 version - where can it comes from? elm_repl

jvoigtlaender commented 8 years ago

In the command prompt, run "where elm-repl" and it should tell you where it comes from.

dusky3 commented 8 years ago

I mean I know where it is located, but why it is on the PATH when I can't see it. Anyway what is even stranger, I tried it and now I have elm repl 0.17.1 also in the command prompt - see the screenshot. That's why I use windows only at work - it is a crazy unpredictable system. In linux everything works fine for me (elm as well).

elm_repl1

jvoigtlaender commented 8 years ago

If you really still want to know where 0.17 came from, you could do:

dusky3 commented 8 years ago

Thank you @jvoigtlaender. Just to let you know that I restarted the command prompt at least 5 times, but it only changed after typing where elm.