sjbarag / brs

An interpreter for the BrightScript language that runs on non-Roku platforms.
MIT License
114 stars 43 forks source link

Script tag without src cause parser error #671

Open elsassph opened 3 years ago

elsassph commented 3 years ago

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.