crypto icon indicating copy to clipboard operation
crypto copied to clipboard

Script tag without src cause parser error

Open elsassph opened this issue 4 years ago • 0 comments

Components with inline scripts cause a parser error (thankfully not fatal):

brs: can't open file '/path/to/project/components/undefined': [Errno -2]

Example:

<component name="Test" extends="Node">
  <script type="text/brightscript"><![CDATA[
      function init()
         print "I'm inline, sorry"
      end function
  ]]></script>
</component>

PS: it's acceptable that brs doesn't parse those inline scripts but it shouldn't error.

elsassph avatar Oct 11 '21 14:10 elsassph