You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rust changes the path separater (\ for win and / for unix systems) based on the platform. So windows builds always use \ as a path separater. While this is completely reasonable for windows apps, this causes some slight issues with using Git Bash that comes packed with Git. Git bash uses the unix style path separater, as such to git bash, path\\to\\file is just pathtofile. A work around for this is done by using cygpath (here) to convert the windows style path to unix. This should in general solve the issue. But again, sometimes it doesnt work. This makes dsm env bash sometimes buggy.
In such cases, the fix is to manually define the dsm-dir option. This can be done via the follow two ways
# make sure to use `/` as the path separater# define the env var for itexport DSM_DIR = "path/to/dsm/dir"eval`dsm env bash`# or just pass it to the clieval`dsm env bash --dsm-dir path/to/file
Both of them do the same thing. the default dsm dir is ~/.dsm so it can be referenced via $HOME/.dsm within the .bashrc or whatever file is being used. Until i can find the reason behind this unexpected bug, this should solve the problem. Im not even sure if this issue is just in my own dekstop only or is actually a bug. Comment to this issue if you've got any queries/suggestions etc.
NOTE: This is only applicable for windows users using Git bash. Powershell and Cmd should have no problems. This might also occur for zsh and fish but i've never gotten the oppurtunity nor do i know any method to install zsh or fish on windows without wsl
The text was updated successfully, but these errors were encountered:
Rust changes the path separater (
\
for win and/
for unix systems) based on the platform. So windows builds always use\
as a path separater. While this is completely reasonable for windows apps, this causes some slight issues with using Git Bash that comes packed with Git. Git bash uses the unix style path separater, as such to git bash,path\\to\\file
is justpathtofile
. A work around for this is done by using cygpath (here) to convert the windows style path to unix. This should in general solve the issue. But again, sometimes it doesnt work. This makesdsm env bash
sometimes buggy.In such cases, the fix is to manually define the dsm-dir option. This can be done via the follow two ways
Both of them do the same thing. the default dsm dir is
~/.dsm
so it can be referenced via$HOME/.dsm
within the.bashrc
or whatever file is being used. Until i can find the reason behind this unexpected bug, this should solve the problem. Im not even sure if this issue is just in my own dekstop only or is actually a bug. Comment to this issue if you've got any queries/suggestions etc.NOTE: This is only applicable for windows users using Git bash. Powershell and Cmd should have no problems. This might also occur for zsh and fish but i've never gotten the oppurtunity nor do i know any method to install zsh or fish on windows without wsl
The text was updated successfully, but these errors were encountered: