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

Git diff fails to execute for auto complete when using WSL #3454

Open
3 tasks done
caimaxtingle opened this issue Dec 19, 2024 · 1 comment
Open
3 tasks done

Git diff fails to execute for auto complete when using WSL #3454

caimaxtingle opened this issue Dec 19, 2024 · 1 comment
Assignees
Labels
area:autocomplete Relates to the auto complete feature ide:jetbrains Relates specifically to JetBrains extension kind:bug Indicates an unexpected problem or unintended behavior

Comments

@caimaxtingle
Copy link

Before submitting your bug report

Relevant environment info

- OS: Windows
- Continue version: 0.0.83
- IDE version: PHPStorm 2024.3.1
- WSL version: 2.3.26.0
- Git path in PHPStorm: \\wsl.localhost\Ubuntu\usr\bin\git

Description

When Enable tab autocomplete is checked, auto complete does not display and any change to a file pops up the error Error handling message of type getDiff: java.io.IOException: Cannot run program "git" (in directory "\\wsl$\Ubuntu\home\test-project"): CreateProcess error=2, The system cannot find the file specified because it's trying to execute Windows Git while PHPStorm is accessing a project in WSL, but not running in WSL remote development mode

Originally posted by @timbit123 in #1466 (comment) but no issue was raised

To reproduce

  1. Set up WSL, create a project in there
  2. Install git in WSL
  3. Set your Intelli IDEA IDE to use Git from WSL
  4. Open any Intelli IDEA IDE, with Continue installed and tab auto complete enabled
  5. Create a new project from a WSL location
  6. Edit a file and see the error

Log output

Error handling message of type getDiff: java.io.IOException: Cannot run program "git" (in directory "\\wsl$\Ubuntu\home\test-project"): CreateProcess error=2, The system cannot find the file specified
@dosubot dosubot bot added area:autocomplete Relates to the auto complete feature ide:jetbrains Relates specifically to JetBrains extension kind:bug Indicates an unexpected problem or unintended behavior labels Dec 19, 2024
@Patrick-Erichsen
Copy link
Collaborator

cc @RomneyDa here - this might be fixed with some recent updates to pathing for WSL/SSH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:autocomplete Relates to the auto complete feature ide:jetbrains Relates specifically to JetBrains extension kind:bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants