chipsalliance / verible

Verible is a suite of SystemVerilog developer tools, including a parser, style-linter, formatter and language server
https://chipsalliance.github.io/verible/
Other
1.25k stars 195 forks source link

verible.filelist empty file exception #2178

Closed sconwayaus closed 1 month ago

sconwayaus commented 1 month ago

VSCode 1.88.1

What activity failed While exploring #2177 the language server, I added an empty system verilog file to the verible.filelist which seems fine. When removing the file from the filelist the language server throws the exception below.

verible Verilog Language Server built at commandline: /home/sconway/git/mySystemVerilogExtension/bin/verible-verilog-ls F0507 22:15:43.455545 94620 verilog_project.cc:136] Check failed: full_content_found != string_viewmap.end() Check failure stack trace: @ 0x561b562318dd absl::lts_20240116::log_internal::LogMessageFatal::~LogMessageFatal() @ 0x561b56038301 verilog::VerilogProject::ContentToFileIndex::Unregister() @ 0x561b561ca649 verilog::VerilogProject::UpdateFileContents() @ 0x561b5609ea85 std::_Function_handler<>::_M_invoke() @ 0x561b560a592f std::_Function_handler<>::_M_invoke() @ 0x561b561b08fc verible::lsp::BufferCollection::didCloseEvent() @ 0x561b561b32a6 std::_Function_handler<>::_M_invoke() @ 0x561b561c5941 verible::lsp::JsonRpcDispatcher::CallNotification() @ 0x561b561c5f87 verible::lsp::JsonRpcDispatcher::DispatchMessage() @ 0x561b561c6563 verible::lsp::MessageStreamSplitter::ProcessContainedMessages() @ 0x561b561c6b41 verible::lsp::MessageStreamSplitter::ReadInput() @ 0x561b561c6c2d verible::lsp::MessageStreamSplitter::PullFrom() @ 0x561b5604ac1f verilog::VerilogLanguageServer::Run() @ 0x561b5604197c main @ 0x7fabb550dd90 (unknown) SIGABRT received at time=1715084143 on cpu 7 PC: @ 0x7fabb557a9fc (unknown) pthread_kill @ 0x7fabb5526520 (unknown) (unknown) [Error - 22:15:44] Server process exited with signal SIGABRT. [Info - 22:15:44] Connection to server got closed. Server will restart.

This error continues to be thrown a few more times before vscode shuts the extension down.