o3de / o3de-azslc

Amazon Shader Language (AZSL) Compiler
Other
23 stars 14 forks source link

Obscure Error Message For Non ASCII Characters #24

Open santorac opened 2 years ago

santorac commented 2 years ago

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

siliconvoodoo commented 1 year ago

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