Forum Discussion

priya_sp's avatar
priya_sp
Visitor
9 years ago

Atom editor for deployment

im getting this error when i try to deploy the brightscript code in atom editor..anyone can help?
should i install node.js??



getting this error 

Exception when creating zip file

EPERM: operation not permitted, open 'D:\scene graph\SceneGraphXMLTutorial\source\main.brs'

7 Replies

  • "priya_sp" wrote:
    im getting this error when i try to deploy the brightscript code in atom editor..anyone can help?
    should i install node.js??



    getting this error 

    Exception when creating zip file

    EPERM: operation not permitted, open 'D:\scene graph\SceneGraphXMLTutorial\source\main.brs'

    It looks like something is preventing the file D:\scene graph\SceneGraphXMLTutorial\source\main.brs from being opened.
    Look at the Atom console to see if there are any other clues to what is going on: Ctrl-Shift-I (or View>Developer>Toggle Developer Tools...) then select the 'Console' tab.
  • Has the contraption been known/tested to work with "/spaces in the path/and file.name"?
  • "EnTerr" wrote:
    Has the contraption been known/tested to work with "/spaces in the path/and file.name"?

    Good point, but yes, spaces were tested in both directory and file names.

    I think the problem is that the file was created by unzipping one of the Roku example channels. There are some funky permissions set on their example files.

    Solution (on Windows):

    In Explorer, right-click the 'scene graph' folder, selected 'Properties', uncheck the 'Read-only' box, click 'OK', click 'OK' again when asked "Do you want to apply this change to this folder only, or do you want to apply it to all subfolders and files as well?"

    EDIT: Version 0.1.2 of roku-develop has improved error-reporting for the cases when a file cannot be updated due to a permissions problem.
  • "hclapp_1" wrote:
    Seems like node not installed in his machine.....

    It doesn't need to be. Atom contains everything it needs, including Node.js.
  • thanks for all support..it has been resolved..problem with file permission .:)
  • <component name = "PanelExample" extends = "Panel"  initialFocus="exampleVideo">
      <interface >
        <field id = "description" type = "string" onChange = "showdescription" />
      </interface>


      <script type = "text/brightscript" >

        <![CDATA[

        sub init()
          m.top.panelSize = "full"
          m.top.focusable = true
          m.top.hasNextPanel = true
          m.top.isFullScreen = false
        end sub


        sub showdescription()
          videocontent = createObject("RoSGNode", "ContentNode")
          videocontent.title = "Example Video"
          print videocontent.title
          videocontent.streamformat = "mp4"
          'videocontent.url = "http://roku.cpl.delvenetworks.com/media/59021fabe3b645968e382ac726cd6c7b/f8de8daf2ba34aeb90edc55b2d380c3f/b228eeaba0f248c48e01e158f99cd96e/rr_123_segment_1_072715.mp4"
          videocontent.url = m.top.description
          print m.top.description
          m.video = m.top.findNode("exampleVideo")
          m.video.content = videocontent
          m.video.setFocus(true)
          print   m.video.hasFocus()
          m.video.control = "play"
          m.video.loop = true
          print "state"
    [size=85][font=Helvetica Neue, Helvetica, Arial, sans-serif]         end sub[/font][/size]
      </script>

      <children >

      <Rectangle
        id = "infoRectangle"
        translation = "[ 0, 10 ]"
        height = "460"
        width = "1020"
        color = "0x101010C0">
          <Video id = "exampleVideo"   height = "560"
                width = "1020"/>
        </Rectangle>

      </children>

    </component>

    this is my code..im not getting the progress bar.i checked with hasfocus function().im getting an true value..could you tel me where i have gone wrong?