-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
IntelliSense cache path isn't honored in version 1.18.4 #11693
Comments
@dandev486 We have a fix at #11696 for the ".cache" folder not being used, but I wasn't able to repro or find in code review any other bug. You may not be seeing the intelliSenseCachePath files/folders written if you have intelliSenseCacheSize set to 0 or you could be setting those settings at the user level settings and there could be workspace or workspace folder setting that is overwriting that setting. |
@sean-mcmanus, it is actually the opposite, I never had to have these settings until 1.18.4 and the folder creation in the home directory happens even without them, adding them was just an attempt to work around the issue. The problem is that they are not at the documented locations
The behaviour with the zeroed value it that the directory is empty, but still incorrectly created at
They are user settings, I don't use workspaces.
Great, I will give it another try when the next version is released! Thanks! Please, let me know if additional information would be helpful. |
@dandev486 FYI, the IntelliSense cache is disabled if there's no workspace folder open (single file mode). |
@dandev486 This should be fixed with https://github.com/microsoft/vscode-cpptools/releases/tag/v1.18.5 . Let us know if you're still hitting an issue. Also, you may want to manually delete the ~/vscode-cpptools folder. |
@sean-mcmanus, tested and it now works as in 1.17.5, the directory isn't created at $HOME, both with and without the settings, thank you very much for the quick support! |
This seems to hard code .cache. What if the user has XDG_CACHE_HOME set? |
Whoops, I can't read. Nevermind :). |
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
The "C/C++" extension is not honoring the intellisense cache path in version 1.18.4, both when using the default configuration or explicitly setting a path and creates a directory for it in my home directory.
It did respect the setting in version 1.17.5, though.
Steps to reproduce:
Part 1:
$XDG_CACHE_HOME/vscode-cpptools/
, the folder does not exist (but could, if$XDG_CACHE_HOME
was set)$HOME/.cache/vscode-cpptools/
, the folder does not exist (and should, since$XDG_CACHE_HOME
is not set)$HOME/vscode-cpptools/
, the folder exists (and should not, since this is not the documented or chosen location).Part 2:
$XDG_CACHE_HOME/vscode-cpptools/
, the folder does not exist (but could, if$XDG_CACHE_HOME
was set)$HOME/.cache/vscode-cpptools/
, the folder exists (correct behaviour)$HOME/vscode-cpptools/
, the folder does not exist (correct behaviour).Expected behavior:
The intellisense cache path should be located at
$XDG_CACHE_HOME/vscode-cpptools/
or$XDG_CACHE_HOME/vscode-cpptools/
, not$HOME/vscode-cpptools/
, as can be verified by performing the steps proposed for 1.17.5.Configuration and Logs
Other Extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: