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
In files containing a BOM (utf <feff>) at the beginning of the file, parseXmlDeclaration in XmlParser.lua will error thinking that the XML declaration is not at the beginning of the string.
Running this snippet (ensure you copy and paste, as there is an invisible BOM right before the <) will produce the following output:
./xml2lua.lua:92: XMLDecl not at start of document [char=1]
stack traceback:
[C]: in function 'error'
./xml2lua.lua:92: in field 'errorHandler'
./XmlParser.lua:133: in upvalue 'err'
./XmlParser.lua:194: in upvalue 'parseXmlDeclaration'
./XmlParser.lua:347: in upvalue 'parseTagType'
./XmlParser.lua:429: in function 'XmlParser.parse'
stdin:6: in main chunk
[C]: in ?```
The text was updated successfully, but these errors were encountered:
ppebb
added a commit
to ppebb/solution-nvim
that referenced
this issue
Nov 28, 2024
Two functions are now available, add_nuget_dep and add_local_dep. This
commit also includes the removal of BOM characters from the beginning of
projects to avoid breaking xml2lua (see
manoelcampos/xml2lua#104).
Associated removal functions will be added later. add_project_dep will
also be added later.
In files containing a BOM (utf <feff>) at the beginning of the file, parseXmlDeclaration in XmlParser.lua will error thinking that the XML declaration is not at the beginning of the string.
Running this snippet (ensure you copy and paste, as there is an invisible BOM right before the <) will produce the following output:
The text was updated successfully, but these errors were encountered: