microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.52k stars 1.55k forks source link

Code outline does not work on remote ssh filesystem #2974

Open andy-z opened 5 years ago

andy-z commented 5 years ago

Type: LanguageService

Describe the bug

To Reproduce

  1. Connect to remote filesystem using SSH protocol (e.g. using kelvin.vscode-sshfs extension)
  2. Open any C++ file
  3. Outline panel shows text "There are no editors open that can provide outline information"

Expected behavior Outline view should show symbols from currently open C++ file

Additional context I opened an issue against VSCode originally but they claim it's an extension issue: https://github.com/Microsoft/vscode/issues/65752

welblaud commented 4 years ago

The same for PHP:

UPDATE During writing this message, the outline has appeared. It seems it was necessary to let the IDE build some index. It seems solved now.

azavor commented 3 years ago

It still does not work on C/C++ extension version 1.1.0 both for MacOS Catalina and Fedora 33 VS Code version 1.51.0, remote SSH extension 0.55.0. Only OUTLINE panel shows now text "The active editor cannot provide outline information".

azavor commented 3 years ago

With C/C++ extension 1.1.1, SSH extension 0.56.0, and VS Code 1.51.1 code outline now works. Not sure which update fixed it.

sean-mcmanus commented 3 years ago

@azavor 1.1.1 only fixed https://github.com/microsoft/vscode-cpptools/issues/6453, so unlikely to fix this issue. It's possible a dangling cpptools process was locking the database, which could cause the outline to not work.

mrx23dot commented 3 months ago

Alternative is to rsync local files to remote.