You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Git diff fails to execute for auto complete when using WSL #3454
- 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
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
@Patrick-Erichsen
As I said in the last message, I removed the diff context and it stopped complaining.
Today I logged in to continue.dev account to do some comparison between the local models and the "online" ones.
It started throwing the git diff error again (which makes sense, since the new config had the diff context.
But now I've logged out, I'm using my previous config.yaml (I've also put the previous config.json just in case), neither have the diff context but it keeps throwing the error each time I do a change to a file 😅
Is there any cache or something I should clear to "refresh" the plugin's memory?
EDIT:
nevermind, I've removed the plugin and put it back one more time and it worked 🤷
Hmm, could you try copying your config.yaml, clearing your ~/.continue directory, and then pasting it back? There is no cache for context providers that I'm aware of.
The real solution here is we should probably do a better job of checking for Git before trying to run that in autocomplete.
This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.
This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, please reopen + comment and we'll gladly take another look!
Activity
Patrick-Erichsen commentedon Dec 19, 2024
cc @RomneyDa here - this might be fixed with some recent updates to pathing for WSL/SSH.
caimaxtingle commentedon Jan 2, 2025
@Patrick-Erichsen Is there a timeline for that to be released on IntelliJ?
Patrick-Erichsen commentedon Jan 8, 2025
0.0.84 is available on EAP and will be released on Friday, please let me know if the issue is resolved once you install!
chl19940220 commentedon Feb 13, 2025
I encountered the same issue, and the problem was resolved after disabling the Continue plugin.
mcguiretomas commentedon Feb 21, 2025
Encountered the same issue, resolved by eliminating "diff" from "contextProviders" in the config JSON. Using continue 0.0.90
Patrick-Erichsen commentedon Feb 28, 2025
@rainoffrogs note that with the new Hub, you can choose exactly which context providers are included in your assistant 😁
https://docs.continue.dev/hub/blocks/block-types#context
jose-cabral commentedon Mar 11, 2025
I have the same issue with
1.0.2. I've removed thediffcontext for now 🙏jose-cabral commentedon Mar 12, 2025
@Patrick-Erichsen
As I said in the last message, I removed the
diffcontext and it stopped complaining.Today I logged in to
continue.devaccount to do some comparison between the local models and the "online" ones.It started throwing the
git differror again (which makes sense, since the new config had thediffcontext.But now I've logged out, I'm using my previous
config.yaml(I've also put the previousconfig.jsonjust in case), neither have thediffcontext but it keeps throwing the error each time I do a change to a file 😅Is there any cache or something I should clear to "refresh" the plugin's memory?
EDIT:
nevermind, I've removed the plugin and put it back one more time and it worked 🤷
EDIT 2:
nope, it's still happening 😭
Patrick-Erichsen commentedon Mar 21, 2025
Hmm, could you try copying your config.yaml, clearing your
~/.continuedirectory, and then pasting it back? There is no cache for context providers that I'm aware of.The real solution here is we should probably do a better job of checking for Git before trying to run that in autocomplete.
Patrick-Erichsen commentedon Apr 17, 2025
@Harriselizabeth unfortunately I'm not sure if there is a fix, adding some labels to this issue to help us prioritize.
github-actions commentedon Aug 6, 2025
This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.
github-actions commentedon Aug 17, 2025
This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, please reopen + comment and we'll gladly take another look!