Closed AisonSu closed 1 year ago
Please schedule a session with me using https://calendly.com/diskuv/30-minute-dkml-installation at your convenience.
You won't need to schedule another session ... I have enough information to at least provide a temporary fix.
Thank you for taking the time. I'll try to get you a temporary fix as soon as possible.
Actually, on second thought I will need to reschedule another session. Can you add one more to the calendar at https://calendly.com/diskuv/30-minute-dkml-installation ?
Thanks.
The problem is that you have a bash
(a UNIX shell) present in your Windows folder, and also another one in your scoop
folder where you have Git located. Those are conflicting with the bash
from Diskuv OCaml.
Will update ticket when I figure out the best way to make them all work together.
The Git installation by Scoop seems like the main issue. Another Scoop package install may be the culprit as well, if that package installed its own make.exe
. I installed Scoop in a Windows Sandbox, and then ran scoop install git
, and can see:
PS C:\Users\WDAGUtilityAccount> dir ~\scoop\shims
Directory: C:\Users\WDAGUtilityAccount\scoop\shims
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 11/14/2022 6:50 PM 126464 7z.exe
-a---- 1/20/2023 8:52 AM 69 7z.shim
-a---- 11/14/2022 6:50 PM 126464 7zfm.exe
-a---- 1/20/2023 8:52 AM 71 7zfm.shim
-a---- 11/14/2022 6:50 PM 126464 7zg.exe
-a---- 1/20/2023 8:52 AM 70 7zg.shim
-a---- 11/14/2022 6:50 PM 126464 bash.exe
-a---- 1/20/2023 8:52 AM 74 bash.shim
-a---- 11/14/2022 6:50 PM 126464 git-bash.exe
-a---- 1/20/2023 8:52 AM 74 git-bash.shim
-a---- 11/14/2022 6:50 PM 126464 git-gui.exe
-a---- 1/20/2023 8:52 AM 77 git-gui.shim
-a---- 11/14/2022 6:50 PM 126464 git.exe
-a---- 1/20/2023 8:52 AM 73 git.shim
-a---- 11/14/2022 6:50 PM 126464 gitk.exe
-a---- 1/20/2023 8:52 AM 74 gitk.shim
-a---- 11/14/2022 6:50 PM 126464 scalar.exe
-a---- 1/20/2023 8:52 AM 76 scalar.shim
-a---- 1/20/2023 8:51 AM 382 scoop
-a---- 1/20/2023 8:51 AM 599 scoop.cmd
-a---- 1/20/2023 8:51 AM 248 scoop.ps1
-a---- 11/14/2022 6:50 PM 126464 sh.exe
-a---- 1/20/2023 8:52 AM 72 sh.shim
-a---- 11/14/2022 6:50 PM 126464 tig.exe
-a---- 1/20/2023 8:52 AM 77 tig.shim
During the install, a sanitized PATH is used to avoid unusual PATH issues on PCs. However, the Git directory always has to be added to the PATH, which means a new bash.exe
gets added as well.
One solution may be to check for scoop
and only add the following to the PATH:
PS C:\Users\WDAGUtilityAccount> dir ~\scoop\apps\git\current\cmd
Directory: C:\Users\WDAGUtilityAccount\scoop\apps\git\current\cmd
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 1/12/2023 8:42 AM 136240 git-gui.exe
-a---- 1/12/2023 8:42 AM 45104 git.exe
-a---- 1/12/2023 8:42 AM 136240 gitk.exe
-a---- 1/12/2023 8:42 AM 45104 scalar.exe
-a---- 1/12/2023 8:42 AM 3022 start-ssh-agent.cmd
-a---- 1/12/2023 8:42 AM 2723 start-ssh-pageant.cmd
(I'm a bit surprised that a major Windows package manager will squash everything into the same directory.)
Renaming ticket to "Scoop conflicts during installation".
@AisonSu Can you open a PowerShell window and run:
dir ~\scoop\shims
and paste the output here?
@AisonSu Can you open a PowerShell window and run:
dir ~\scoop\shims
and paste the output here?
@jonahbeckford
Directory: C:\Users\aison\scoop\shims
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 2022/11/14 18:50 126464 7z.exe
-a--- 2022/11/25 20:22 56 7z.shim
-a--- 2022/11/14 18:50 126464 7zfm.exe
-a--- 2022/11/25 20:22 58 7zfm.shim
-a--- 2022/11/14 18:50 126464 7zg.exe
-a--- 2022/11/25 20:22 57 7zg.shim
-a--- 2022/11/14 18:50 126464 bash.exe
-a--- 2022/11/25 20:22 61 bash.shim
-a--- 2022/11/30 13:14 126464 dark.exe
-a--- 2022/12/14 11:14 58 dark.shim
-a--- 2022/11/14 18:50 126464 git-bash.exe
-a--- 2022/11/25 20:22 61 git-bash.shim
-a--- 2022/11/14 18:50 126464 git-gui.exe
-a--- 2022/11/25 20:22 64 git-gui.shim
-a--- 2022/11/14 18:50 126464 git.exe
-a--- 2022/11/25 20:22 60 git.shim
-a--- 2022/11/14 18:50 126464 gitk.exe
-a--- 2022/11/25 20:22 61 gitk.shim
-a--- 2022/12/14 11:14 177 idle
-a--- 2022/12/14 11:14 138 idle.cmd
-a--- 2022/12/14 11:14 177 idle3
-a--- 2022/12/14 11:14 138 idle3.cmd
-a--- 2022/11/14 18:50 126464 nvm.exe
-a--- 2022/11/25 20:28 56 nvm.shim
-a--- 2022/11/14 18:50 126464 op.exe
-a--- 2022/11/25 20:22 65 op.shim
-a--- 2022/11/30 13:14 126464 poetry.exe
-a--- 2022/12/17 15:44 75 poetry.shim
-a--- 2022/11/30 13:14 126464 python3.exe
-a--- 2022/12/14 11:14 62 python3.shim
-a--- 2022/11/14 18:50 126464 scalar.exe
-a--- 2022/11/25 20:22 63 scalar.shim
-a--- 2022/12/17 15:42 343 scoop
-a--- 2022/12/17 15:42 342 scoop.cmd
-a--- 2022/12/17 15:42 235 scoop.ps1
-a--- 2022/11/14 18:50 126464 sh.exe
-a--- 2022/11/25 20:22 59 sh.shim
-a--- 2022/11/14 18:50 126464 starship.exe
-a--- 2022/11/25 20:22 66 starship.shim
-a--- 2022/11/30 13:14 325 sudo
-a--- 2022/11/30 13:14 324 sudo.cmd
-a--- 2022/11/30 13:14 223 sudo.ps1
-a--- 2022/11/14 18:50 126464 tig.exe
-a--- 2022/11/25 20:22 64 tig.shim
They were instead in scoop/apps and then symbolic linked in the scoop/shims
I have a fix for you now.
Please use the downloads at https://github.com/diskuv/dkml-installer-ocaml/releases/tag/v1.2.0-prerel10 :
Use the uninstaller first, temporarily disable the antivirus (if any) and then the installer.
Please tell me if that works for you.
It totally works well! Thanks for your help!
This is interesting. I do use scoop as well and also have git on my scoop install. I can verify that 1.2.0 works without a problem. Thanks for all the work; scoop is such a useful tool but it can cause obvious issues if some of the dependencies are exposed and overlap.
I had disbled antivirus/malware/Defender/etc, But I still got error as log beyond: