Skip to content
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

New Powershell support: incorrect suggestion when trying to cd into file #5319

Open
1 task done
stone-w4tch3r opened this issue Sep 20, 2024 · 1 comment
Open
1 task done
Labels
Bugs Bugs, Hangs, Crash, and Freezes

Comments

@stone-w4tch3r
Copy link

Dupe Check

Describe the bug

When trying to cd into file instead of directory, warp suggests to create a directory with file's name instead of suggesting to cd into parent dir

To reproduce

  1. Enable experimental powershell support as described here
  2. Set pwsh as default shell
  3. Try to cd into file
  4. Get error and suggestion:
cd test/test.txt
Set-Location: Cannot find path 'test/test.txt' because it does not exist.
---
Did you mean: New-Item -ItemType Directory -Path test/test.txt && cd test/test.txt

Expected behavior

Did you mean: cd test

Screenshots

No response

Operating system

Linux

Operating system and version

fedora 40

Shell Version

PowerShell 7.4.5

Current Warp version

v0.2024.09.17.08.02.stable_01

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

Anyway, thanks a lot for powershell support!

Does this block you from using Warp daily?

No

Is this an issue only in Warp?

Yes, I confirmed that this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

@stone-w4tch3r stone-w4tch3r added the Bugs Bugs, Hangs, Crash, and Freezes label Sep 20, 2024
@acarl005
Copy link

Hi @stone-w4tch3r thanks for reporting. Definitely a bug. Logged it. Keep the reports coming!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugs Bugs, Hangs, Crash, and Freezes
Projects
None yet
Development

No branches or pull requests

2 participants