Skip to content

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

Open
@caimaxtingle

Description

@caimaxtingle

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

Metadata

Metadata

Labels

area:autocompleteRelates to the auto complete featuregood-first-issueSuggested issue for new contributorside:jetbrainsRelates specifically to JetBrains extensionkind:bugIndicates an unexpected problem or unintended behavioros:windowsHappening specifically on Windowspriority:highIndicates high priority

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions