o3de-azslc icon indicating copy to clipboard operation
o3de-azslc copied to clipboard

Obscure Error Message For Non ASCII Characters

Open santorac opened this issue 2 years ago • 1 comments

If you have non-ASCII characters in an AZSL source file, the compiler will report an obscure error message with no line number information: "bad conversion"

Try adding the following comment to an existing .azsl file (note that Notepad++ or other text editors might convert the character to ASCII automatically. Try pasting this in Visual Studio, that should do the trick):

// This file can’t compile
//              ^ because of this character

image

santorac avatar Mar 10 '22 23:03 santorac

Doesn't seem to be azslc related. Probably a builder issue for passing the shader file contents through strings possibly. image

siliconvoodoo avatar Oct 21 '22 09:10 siliconvoodoo