Developers

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
idris
Channel Surfer

Unable to deploy app from vs code

I am unable to deploy app directly from vs code, display is stuck on grey screen. I have provided console output and launch.json. Same app installs properly when installed using Roku Development Application Installer. 

 


Output //

DebugServer: Adding stop statements for active breakpoints
DebugServer: Creating zip archive from project sources
DebugServer: Connecting to Roku via telnet at 192.168.0.106


launch.json//

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "BrightScript Debug: Launch",
"type": "brightscript",
"request": "launch",
"host": "${promptForHost}",
"password": "${promptForPassword}",
"rootDir": "${workspaceFolder}"
}
]
}

Tags (1)
6 REPLIES 6
MuviDev
Binge Watcher

Re: Unable to deploy app from vs code

Did you got the solution, I am stuck in the same issue.

0 Kudos
necrotek
Roku Guru

Re: Unable to deploy app from vs code

You need to declare the files to include in the package

https://github.com/rokucommunity/roku-deploy

{
    "files": [
        "source/**/*",
        "components/**/*",
        "images/**/*",
        "manifest"
        //your folder with other assets
        "assets/**/*",
    ]
}

 

0 Kudos
MuviDev
Binge Watcher

Re: Unable to deploy app from vs code

Earlier it was running without this.. Can you tell me where to put this.?

0 Kudos
kowsik
Newbie

Re: Unable to deploy app from vs code

replace the json values with your values like

  • host as your ipaddress of the roku device it will be there in the settings
  • password of your device for developer mode
  • root directory of the project where the build 

As given below as sample

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "BrightScript Debug: Launch",
            "type": "brightscript",
            "request": "launch",
            "host": "192.168.1.4",
            "password": "rokudev",
            "rootDir": "../"
        }
    ]
}
 
 
then try launching the application happy hacking your application will be launched
0 Kudos
pkuzmenko
Binge Watcher

Re: Unable to deploy app from vs code

This is my vscode launch.json 

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "brightscript",
"request": "launch",
"name": "BrightScript Debug: Launch",
"stopOnEntry": false,
"host": "192.168.2.185",
"password": "1234",
"outDir": "${workspaceFolder}/out",
//"host": "${promptForHost}",
//"password": "${promptForPassword}",
"rootDir": "${workspaceFolder}",
"enableDebuggerAutoRecovery": false,
"stopDebuggerOnAppExit": false,
"files": [
"manifest",
"config.json",
"collection.json",
"animations/**/*.*",
"prefabs/**/*.*",
"source/**/*.*",
"sounds/**/*.*",
"music/**/*.*",
"fonts/**/*.*",
"icons/**/*.*",
"sprites/**/*.*",
"scenes/**/*.*"
]
}
]
}
 
and at /source/Main.brs
main function....
 
sub Main()
roku = RokuEngine()
application = App()
roku.initialize(application)
roku.run()
end sub
 
 

it might run only if you code reach to out.zip or it was newer compile and just use old build I guess.

 

 

 

idris
Channel Surfer

Re: Unable to deploy app from vs code

@MuviDev In RokuDeploy.js

C:\Users\Admin\.vscode\extensions\rokucommunity.brightscript-2.45.9\node_modules\roku-deploy\dist\RokuDeploy.js

exports.DefaultFiles = [
    'source/**/*.*',
    'components/**/*.*',
    'assets/**/*.*',
    'images/**/*.*',
    'manifest'
   //add your folder here
];
 
0 Kudos
Community is Being Upgraded!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 19th and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

We're sorry for this disruption — we’re excited to share what’s next!