You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's caused by a IFileBuffer.getContentType() call in org.eclipse.cdt.lsp.ui.navigator.CSymbolsContentProvider.fileBufferListener.new FileBufferListenerAdapter() {...}.dirtyStateChanged(IFileBuffer, boolean)
It seems to be that dirtyStateChanged gets called before the file creation has been finished. May be it should be fixed in org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.getContentType() as well:
A
ResourceException
exception will be thrown when a Save As... will be performed on a opened text file wihin the workspace:It's caused by a
IFileBuffer.getContentType()
call inorg.eclipse.cdt.lsp.ui.navigator.CSymbolsContentProvider.fileBufferListener.new FileBufferListenerAdapter() {...}.dirtyStateChanged(IFileBuffer, boolean)
It seems to be that
dirtyStateChanged
gets called before the file creation has been finished. May be it should be fixed inorg.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.getContentType()
as well:The exception will be triggered in the call
fFile.getContentDescription();
A check
fFile.exists()
prior to the call would fix it.Steps to reproduce
Start Eclipse IDE with cdt and cdt-lsp plugin runnning. Then:
.clangd
) form workspace project in the editor.The text was updated successfully, but these errors were encountered: