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

Intellisense DB not updated after a git pull #4211

Closed
RichardFurness opened this issue Sep 6, 2019 · 2 comments
Closed

Intellisense DB not updated after a git pull #4211

RichardFurness opened this issue Sep 6, 2019 · 2 comments
Labels
bug Feature: Find All References Find All References, Peek References, Rename fixed Check the Milestone for the release in which the fix is or will be available. Language Service
Milestone

Comments

@RichardFurness
Copy link

Type: LanguageService

Describe the bug

  • OS and Version: Windows 10 remote SSH to Linux
  • VS Code Version: latest insiders
  • C/C++ Extension Version: 0.25.1
  • Other extensions you installed (and if the issue persists after disabling them):
  • A clear and concise description of what the bug is.

If I update the code on the remote server e.g. doing a git pull or checking out a new branch, the C intellisense DB isn't updated so e.g. find-all-references won't find new references due to the update.

To Reproduce

  1. In VSCode, have open the file defining something (say, a function).
  2. On the server, pull in changes that introduce a new referenc to the function in another file (not already open in VSCode), using e.g. git pull / checkout new branch.
  3. In VSCode, perform find-all-references from the function definition.

Expected behavior
The new reference should be found. Instead, it will only be found after I either:

  • Open the file with the new reference, OR
  • Reset intellisense DB

Screenshots

Additional context

@sean-mcmanus sean-mcmanus added Feature: Find All References Find All References, Peek References, Rename Language Service labels Sep 6, 2019
@sean-mcmanus sean-mcmanus self-assigned this Sep 6, 2019
@sean-mcmanus
Copy link
Collaborator

sean-mcmanus commented Sep 6, 2019

Oh, we've had this root problem for a long time -- we ignore file watcher "changed" events.

Doing a Rescan Workspace command is the recommended workaround until we're able to fix this.

A related issue is #3802 (no file watchers at all outside of the workspace).

@sean-mcmanus sean-mcmanus added this to the On Deck milestone Sep 6, 2019
@sean-mcmanus sean-mcmanus modified the milestones: On Deck, 0.26.0 Sep 7, 2019
@sean-mcmanus sean-mcmanus added the fixed Check the Milestone for the release in which the fix is or will be available. label Sep 7, 2019
sean-mcmanus added a commit that referenced this issue Sep 10, 2019
* Fix for #4211 and #3567: add handle file changed support. 
* Add back files.associations handling.
@sean-mcmanus
Copy link
Collaborator

The fix is available with https://github.com/microsoft/vscode-cpptools/releases/tag/0.26.0-insiders . Let us know if it's not working for you.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Feature: Find All References Find All References, Peek References, Rename fixed Check the Milestone for the release in which the fix is or will be available. Language Service
Projects
None yet
Development

No branches or pull requests

2 participants