Skip to content

Script tag without src cause parser error #671

@elsassph

Description

@elsassph

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions