microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.78k stars 29.48k forks source link

C/C++ plugin crashes various operations in TypeScript (and Javascript) code #12251

Closed theovosse closed 8 years ago

theovosse commented 8 years ago

Steps to Reproduce:

  1. Open typscript project
  2. type cmd-T and start typing the name of a symbol

This resulted in a crash in Microsoft.VSCode.CPP.Extension.darwin here:

0 Microsoft.VSCode.CPP.Extension.darwin 0x000000010acfc264 code_store::a_store::get_structure_version() + 4 1 Microsoft.VSCode.CPP.Extension.darwin 0x000000010acdaf01 browse_engine::populate_filename_cache() + 49 2 Microsoft.VSCode.CPP.Extension.darwin 0x000000010acdcb61 browse_engine::queryfiles(char const, std::1::vector<browse_symbol, std::1::allocator >&) + 129 3 Microsoft.VSCode.CPP.Extension.darwin 0x000000010aca1426 message_handler::workspace_symbol(vscode::WorkspaceSymbolParams) + 70 4 Microsoft.VSCode.CPP.Extension.darwin 0x000000010ac9a615 vscode::handler_base::dispatch(vscode::vscode_client_message&&, vscode::vscode_server_message&, bool) + 7637 5 Microsoft.VSCode.CPP.Extension.darwin 0x000000010ac98559 vscode::handler_base::handle_message(vscode::vscode_client_message&&) + 57 6 Microsoft.VSCode.CPP.Extension.darwin 0x000000010ac9849b vscode::handler_base::mainloop()::'lambda'()::operator()() const + 75 7 Microsoft.VSCode.CPP.Extension.darwin 0x000000010ac98410 void std::1::__thread_proxystd::1::tuple<vscode::handler_base<message_handler::main_loop()::'lambda'()> >(void*) + 96 8 libsystem_pthread.dylib 0x00007fff955f899d _pthread_body + 131 9 libsystem_pthread.dylib 0x00007fff955f891a _pthread_start + 168 10 libsystem_pthread.dylib 0x00007fff955f6351 thread_start + 13

Removing the plugin restored normal functioning.

joaomoreno commented 8 years ago

Please file this in the appropriate extension repository.

https://github.com/Microsoft/vscode-cpptools