Closed SylwesterZarebski closed 1 year ago
What's the extension on the file being edited? The only location I can find where this might have happened would involve an invalid Classifications.config file. Do you have a custom one in your %LOCALAPPDATA%\EWSoftware\Visual Studio Spell Checker folder?
It is ASPX file (extension .aspx
). I do not have any custom Classifications.config
file. I've had old VSSpellChecker.vsspell
config file, but deleting it did not fix an error.
Maybe the problem is that ASPX file is partially HTML/JS/CSS, and partially C#?
I think buffer.GetFilename()
returns null
(because Path.GetExtension(null)
returns null
), which then throw exception in TryGetValue()
.
How to reproduce:
test.aspx
with content:
<%@ Page Language="C#" AutoEventWireup="true" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script runat="server">
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
PS. Exception is only on first open file, all subsequent tries do not give exception. To get exception you need to close and reopen VS.
After installing new version 2023.5.15.1 (today) of extension and migrating configurations (global and local) to .editorconfig in VS 2017 15.9.93 i've got exception in Web Site project (with ASPX files). In Activity.log there is:
My local
.editorconfig
is:PS. Extension still works after above exception.