zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
46.86k stars 2.68k forks source link

Prefix added to Powershell terminal when opened with command `zed <path_to_dir>` on Windows. #16068

Closed khulenikhil closed 2 weeks ago

khulenikhil commented 1 month ago

Check for existing issues

Describe the bug / provide steps to reproduce it

I observed this issue on Windows.

  1. Build the source using these instructions: Building Zed for Windows
  2. Add the target/release to PATH.
  3. Run zed <path_to_dir> from any terminal.
  4. Open the terminal.
  5. Run pwd. The prefix Microsoft.PowerShell.Core\FileSystem::\\?\ will be show in the path.
  6. Observe the powershell profile prefix.

When I checked the recent projects I found two projects (screenshot attached). The one with the correct path works fine.

Environment

Zed: v0.148.0 (Zed Dev 990774247ecb61ddf69f0325d28eb3b203fc3699) OS: Windows 10.0.22631 Memory: 15.2 GiB Architecture: x86_64 GPU: AMD Radeon(TM) Graphics || AMD proprietary driver || 21.30.40.04

If applicable, add mockups / screenshots to help explain present your vision of the feature

Terminal Screenshot Recent projects

If applicable, attach your Zed.log file to this issue.

No response

JunkuiZhang commented 1 month ago

Should be fixed by