Open
Description
Before submitting your bug report
- I believe this is a bug. I'll try to join the Continue Discord for questions
- I'm not able to find an open issue that reports the same bug
- I've seen the troubleshooting guide on the Continue Docs
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
- Set up WSL, create a project in there
- Install git in WSL
- Set your Intelli IDEA IDE to use Git from WSL
- Open any Intelli IDEA IDE, with Continue installed and tab auto complete enabled
- Create a new project from a WSL location
- 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