-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"No such file or directory": problem with gitbash in Windows 10 #2
Comments
FYI, it looks like the extension terminal-here (https://marketplace.visualstudio.com/items?itemName=Tyriar.vscode-terminal-here) works in gitbash in the integrated terminal on Windows. If you look at the code here: https://github.com/Tyriar/vscode-terminal-here/blob/master/src/extension.ts the relevant code is this:
|
Sorry, I just noticed one more thing... when I use the terminal-here extension, the terminal command says: cd "c:\Users\Steven\Dev\selenium.js" which works with the backslashes. So fixing this bug may be as simple as enclosing the directory path in double quotes. |
Thanks for reporting the issue, I don't really use Windows nor git bash so I'm not too surprised to see these incompatibilities. I'll address the problem when I'll have the time. Ps. I think you should use a "real" terminal instead, like bash or zsh, running under WSL. |
Thanks Fabio. I did try WSL a while ago when it first came out, but there were too many bugs at the time. Also, sharing files between the Windows filesystem and Linux subsystem was a pain. It's possible to symlink Linux to Windows, but not vice versa. But maybe they have fixed those issues since. Git bash, while not "real bash" does a surprisingly good job emulating bash on Windows and is very lightweight. It's the best terminal shell on Windows in my opinion. WSL and Cygwin were too heavy and complicated. And I certainly don't want to learn Powershell. |
I'm sorry but I didn't have the time to try to fix this, if anyone could help with this I'd appreciate it. |
@stevenkkim I am facing the same issue as you have and I am new user for this github so kindly help regarding the same issue faced by me |
Issue : "No such file or directory": problem with gitbash in Windows 10 #2 if you find the solutions for it please let me know. |
Hi, this also worked for me as well: wrapping the dir in double-quotes somehow worked! Thank you so much for your help! |
Hi ! I had the same problem. It worked with the double quotes too. No clue why aha but wanted to say it works! |
yes your suggestions work with me your are very smart thank you. |
There are other extensions which use backslash. The git team must solve this bug asap. |
For me it was an issue with OneDrive in the directory. When I removed OneDrive from the directory it worked. |
Ahhhhhh you are a legend man!!!!!!!!!!!!!! You saved me what ive been tryna do for soooooo long |
I am facing the same issue |
may be its associate with another file sharing platform in my case desktop is sync wit the one drive so i add file path as this cd "C:\Users\pasan\OneDrive" |
you saved me bro.. |
my error is this how to fix it?? |
Hi, |
Hello
Please look and see why I can not work properly
What is wrong with my work?
https://github.com/forodo/vps
…On Thu, Mar 16, 2023 at 7:30 PM jaimeserranodev ***@***.***> wrote:
Hi,
When you put that code after cd the address has to be with quotes " ". Try
with this line:
cd "/home/daygeek/betty/main.rb:"
—
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2ZLYJJ6C6DSYYPVYHA3IHTW4M2IZANCNFSM4FFHGRSA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***
com>
|
So what worked for me here is typing it out by hand. When I copied the directory it was missing the ":" between my "c" directory and the "/" which is what made it mess up. I believe @stevenkkim wrote a similar response |
I tried so many different ways still says No such file or directory |
https://www.youtube.com/watch?v=AdzKzlp66sQ |
For me I realized I actually had the contents that I wanted inside of an extra folder, so go to your files and make sure it's exactly where you think it is |
I've just rewritten the extension, can anybody check if this is fixed in v2? I think it should be because I'm passing the |
am getting this error HP@HACKBOOTH245 MINGW64 ~ |
@euginekoyo It looks like you are on v1, you'd need to updated to v2 to see this fixed. You might need to upgrade vscode to be able to upgrade to v2. |
I'm using vs code on Windows 10, but I'm using gitbash as my integrated terminal instead of the Windows shell.
When using either the "Open in Integrated Terminal" or "Open Root in Integrated Terminal" commands, the directory is not found because the directory slashes are backslashes (Windows-style) instead of forward slashes (bash-style)
Upon opening the terminal, the following output is shown:
cd c:\Users\Steven\Dev\selenium.js
bash: cd: c:UsersStevenDevselenium.js: No such file or directory
If I type manually type "cd c:/Users/Steven/Dev/selenium.js" in the integrated terminal, then the cd command works.
The text was updated successfully, but these errors were encountered: