You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Josh Tynjala <jo...@gmail.com> on 2017/03/17 23:36:35 UTC

SWF Debugging in Visual Studio Code

Hello, Flex community!

I hope you don't mind if I take a moment to plug one of my projects that I
think many Flex developers here will find useful.

As you may recall, I created an ActionScript and MXML extension for Visual
Studio Code a while back. Originally, my main focus was on creating a
development environment for FlexJS. Popular IDEs like Flash Builder and
IntelliJ IDEA require jumping through some hoops to work with FlexJS, and I
wanted to make sure the community has an editor where FlexJS is considered
a first-class citizen.

Well, I know many of you who are interested in FlexJS are also still
targeting Adobe AIR and Flash Player with the original Apache Flex SDK.
With that in mind, I've been working on ensuring that you can build
projects for these runtimes in Visual Studio Code too! Earlier this week, I
released a big, new update to the extension that adds support for SWF
debugging in AIR and Flash Player.

When you debug a SWF project in VSCode you'll be able to add breakpoints,
pause and step through your code, see trace() output in the console,
navigate the call stack, and inspect variables. It's a debugger with all
the bells and whistles that we've come to expect.

For more information about the Visual Studio Code extension, please visit
the website:

https://nextgenactionscript.com/vscode/

For instructions about how to create a new project, set up the compiler,
and debug any type of Apache Flex app in Adobe AIR and Flash Player, visit
the Github wiki:

https://github.com/BowlerHatLLC/vscode-nextgenas/wiki

With the community's help, I can continue working on useful developer tools
for ActionScript and MXML. Please join my Patreon campaign to lend a hand!

https://www.patreon.com/josht

Thank you, and happy coding!

Josh Tynjala
NextGen ActionScript

Note: I am an Apache Flex committer and PMC member, but this VSCode
extension is not an Apache project. Today, I am simply posting as a member
of the community who wants to share a cool, independent project that others
might enjoy.

Re: SWF Debugging in Visual Studio Code

Posted by Clint M <cm...@gmail.com>.
dude

On Fri, Mar 17, 2017 at 4:36 PM, Josh Tynjala <jo...@gmail.com> wrote:

> Hello, Flex community!
>
> I hope you don't mind if I take a moment to plug one of my projects that I
> think many Flex developers here will find useful.
>
> As you may recall, I created an ActionScript and MXML extension for Visual
> Studio Code a while back. Originally, my main focus was on creating a
> development environment for FlexJS. Popular IDEs like Flash Builder and
> IntelliJ IDEA require jumping through some hoops to work with FlexJS, and I
> wanted to make sure the community has an editor where FlexJS is considered
> a first-class citizen.
>
> Well, I know many of you who are interested in FlexJS are also still
> targeting Adobe AIR and Flash Player with the original Apache Flex SDK.
> With that in mind, I've been working on ensuring that you can build
> projects for these runtimes in Visual Studio Code too! Earlier this week, I
> released a big, new update to the extension that adds support for SWF
> debugging in AIR and Flash Player.
>
> When you debug a SWF project in VSCode you'll be able to add breakpoints,
> pause and step through your code, see trace() output in the console,
> navigate the call stack, and inspect variables. It's a debugger with all
> the bells and whistles that we've come to expect.
>
> For more information about the Visual Studio Code extension, please visit
> the website:
>
> https://nextgenactionscript.com/vscode/
>
> For instructions about how to create a new project, set up the compiler,
> and debug any type of Apache Flex app in Adobe AIR and Flash Player, visit
> the Github wiki:
>
> https://github.com/BowlerHatLLC/vscode-nextgenas/wiki
>
> With the community's help, I can continue working on useful developer tools
> for ActionScript and MXML. Please join my Patreon campaign to lend a hand!
>
> https://www.patreon.com/josht
>
> Thank you, and happy coding!
>
> Josh Tynjala
> NextGen ActionScript
>
> Note: I am an Apache Flex committer and PMC member, but this VSCode
> extension is not an Apache project. Today, I am simply posting as a member
> of the community who wants to share a cool, independent project that others
> might enjoy.
>

Re: SWF Debugging in Visual Studio Code

Posted by Clint M <cm...@gmail.com>.
got fcsh working… I had to modify the fcsh script in $FLEX_HOME/bin
I had to pin it to jdk 7 and add
 "-Djava.util.Arrays.useLegacyMergeSort=true"
The last few lines of the file look like:
export JAVA_HOME=`/usr/libexec/java_home -v 1.7`
export DEBUG="true"
java $VMARGS $D32 $SETUP_SH_VMARGS "-Dapplication.home=$FLEX_HOME"
"-Djava.util.Arrays.useLegacyMergeSort=true" -jar "$FLEX_HOME/lib/fcsh.jar"

Here's my gulpfile.js at the root of my project…
var gulp = require('gulp');
var fcsh = require('gulp-fcsh');
var FLEX_HOME = process.env.FLEX_HOME;
console.log('FLEX_HOME = ' + FLEX_HOME)

var compileOptions = '';

gulp.task('fcsh', function () {
gulp.src('src/GreenMaps.mxml')
 .pipe(fcsh({
   compileOptions: compileOptions
 }))
});

gulp.task('watch', function () {
var watcher = gulp.watch(['./**/*.mxml', './**/*.as', './**/*.js',
'./**/*.xml'], ['fcsh']);
watcher.on('change', function(event) {
console.log('File ' + event.path + ' was ' + event.type);
});
});

Here's my .vscode/tasks.json
{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "0.1.0",
    "tasks": [
        {
            "taskName": "fcsh",
            "command": "gulp",
            "isBuildCommand": true,
            "isShellCommand": true,
            "isBackground": true,
            "args": ["fcsh","watch"],
            "showOutput": "always"
        }
    ]
}

My dev dependencies for my npm package.json looks like:
"devDependencies": {
    "gulp": "^3.9.1",
    "gulp-fcsh": "0.0.6"
  }

You can run the build by pressing ctrl + shift + B (cmd + shift + B on mac).


On Sat, Mar 18, 2017 at 8:11 PM, Clint M <cm...@gmail.com> wrote:

> ok… I think I've fcsh figured out… here's what I'm planning let me know
> your thoughts… it depends on gulp (should be ok?)
>
> 1. Use this gulp plugin https://github.com/youpy/gulp-fcsh
> 2. Setup node.js + gulp.js to run locally (install node, setup gulp as a
> dev dependency, npm install)
> 3. Add the gulp tasks to tasks.json like says to here https://code.
> visualstudio.com/docs/editor/tasks#_background-watching-tasks
> 4. Add custom problemMatcher(s) to tasks.json to watch the output
>
> The gulpfile.js in the root of the project would probably look like:
> //-------
> var gulp = require('gulp');
> var fcsh = require('gulp-fcsh');
>
> gulp.task('fcsh', function () {
> gulp.src('Main.mxml')
>  .pipe(fcsh({
>    compileOptions: '-library-path+=./libs'
>  }))
>  .pipe(gulp.dest('bin-debug'))
> });
> }
>
> gulp.task('watch', function () {
>   gulp.watch(['*.mxml', '*.as'], ['fcsh']);
> }
>
>
>
>
> On Sat, Mar 18, 2017 at 10:00 AM, Josh Tynjala <jo...@gmail.com>
> wrote:
>
>> I'm not sure that it will be possible to run fcsh from a tasks.json file
>> in
>> VSCode, but I'm not particularly familiar with running it directly from
>> the
>> command line, so maybe I'm wrong. I can look into it.
>>
>> - Josh
>>
>> On Mar 17, 2017 10:52 PM, "Clint M" <cm...@gmail.com> wrote:
>>
>> > is fcsh on your radar? I just got it to work with java 7 and
>> > adding -Djava.util.Arrays.useLegacyMergeSort=true|
>> > couldn't get it to work with java 8… getting Error: null on recompile
>> >
>> > On Fri, Mar 17, 2017 at 10:39 PM, Clint M <cm...@gmail.com> wrote:
>> >
>> > > Ha… it works!!!
>> > >
>> > > I just checked it again… and this was my launch config (with duplicate
>> > > keys??)
>> > > I'm not sure if this was me or vs code but after I removed the
>> duplicate
>> > > keys (type, request, name, program) it worked just fine.
>> > >
>> > > Thanks Josh :)
>> > >
>> > > {
>> > >     // Use IntelliSense to learn about possible SWF debug attributes.
>> > >     // Hover to view descriptions of existing attributes.
>> > >     // For more information, visit: https://go.microsoft.com/
>> > > fwlink/?linkid=830387
>> > >     "version": "0.2.0",
>> > >     "preLaunchTask": "asconfigc",
>> > >     "configurations": [
>> > >         {
>> > >             "type": "swf",
>> > >             "request": "launch",
>> > >             "name": "Launch SWF",
>> > >             "program": "bin/GreenMaps-app.xml",
>> > >             "type": "swf",
>> > >             "request": "launch",
>> > >             "name": "Launch SWF",
>> > >             "program": "bin/MyProject-app.xml",
>> > >             "profile": "mobileDevice",
>> > >             "screensize": "iPhoneRetina",
>> > >             "screenDPI": 326,
>> > >             "versionPlatform": "IOS"
>> > >         }
>> > >     ]
>> > > }
>> > >
>> > > On Fri, Mar 17, 2017 at 10:32 PM, Josh Tynjala <joshtynjala@gmail.com
>> >
>> > > wrote:
>> > >
>> > >> When you debug with AIR, the error code will come from ADL, rather
>> than
>> > >> ADT, so it's meaning is going to be different. Looks like it is:
>> > >>
>> > >> The application descriptor file cannot be found.
>> > >>
>> > >> http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-6fa
>> > >> 6d7e0128cca93d31-8000.html#WS5b3ccc516d4fbf351e63e3d118666ade46-7f62
>> > >>
>> > >> Make sure that you point to your AIR assocation descriptor in the
>> > >> "application" field in asconfig.json. You'll also need an output path
>> > for
>> > >> the SWF under the compilerOptions.
>> > >>
>> > >> In the launch.json, you want the program to be the AIR application
>> > >> descriptor instead of the SWF.
>> > >>
>> > >> - Josh
>> > >>
>> > >> On Mar 17, 2017 9:04 PM, "Clint M" <cm...@gmail.com> wrote:
>> > >>
>> > >> got it to build… can't get it to launch the debugger… the error is:
>> > >> Error launching SWF debug session. Process exited with code: 6
>> > >>
>> > >> Which according to this [1] means I can't write to the output dir
>> (but
>> > I'm
>> > >> not specifying it). How do I do that?
>> > >>
>> > >> I wonder if I need to change where I installed the FlexJS sdk?
>> > >>
>> > >> Here's what the launch config looks like in Flash Bungler.
>> > >> https://www.dropbox.com/s/8f6kllihuoc3kol/Screen%20Shot%
>> > >> 202017-03-17%20at%208.55.31%20PM.png?dl=0
>> > >>
>> > >>
>> > >> [1] https://helpx.adobe.com/air/kb/air-developer-tool-adt-error.html
>> > >> Exit codes
>> > >> ADT exits with one of the following exit codes. For error conditions
>> > (code
>> > >> > 1), ADT also prints a diagnostic message to stderr.
>> > >> Exit Code Meaning
>> > >> 0 Successful primary launch [1]
>> > >> 2 Usage error (incorrect arguments)
>> > >> 5 Unknown error
>> > >> 6 Could not write to output directory
>> > >>
>> > >> On Fri, Mar 17, 2017 at 8:25 PM, Clint M <cm...@gmail.com> wrote:
>> > >>
>> > >> > ha… got it to compile my flex mobile project with a couple of
>> > >> workarounds…
>> > >> >
>> > >> > - "library-path": [ "libs" ], didn't work… I had to do:
>> > >> "additionalOptions":
>> > >> > "-library-path+=libs/",
>> > >> > - I had to install both the flex sdk and the flexjs sdk… my
>> > >> > ./.vscode/settings.json looks like:
>> > >> > // Place your settings in this file to overwrite default and user
>> > >> settings.
>> > >> > {
>> > >> >     "nextgenas.sdk.framework": "/Users/clint/code/Flex/SDK/
>> > >> > flex_sdk_4.15.0_AIR_23",
>> > >> >     "nextgenas.sdk.editor": "/usr/local/lib/node_modules/flexjs"
>> > >> > }
>> > >> >
>> > >> >
>> > >> > On Fri, Mar 17, 2017 at 8:03 PM, Clint M <cm...@gmail.com>
>> wrote:
>> > >> >
>> > >> >> trying to get it setup… do I need both the flexjs and flexswf
>> sdks?
>> > >> >>
>> > >> >> On Fri, Mar 17, 2017 at 4:36 PM, Josh Tynjala <
>> joshtynjala@gmail.com
>> > >
>> > >> >> wrote:
>> > >> >>
>> > >> >>> Hello, Flex community!
>> > >> >>>
>> > >> >>> I hope you don't mind if I take a moment to plug one of my
>> projects
>> > >> that
>> > >> >>> I
>> > >> >>> think many Flex developers here will find useful.
>> > >> >>>
>> > >> >>> As you may recall, I created an ActionScript and MXML extension
>> for
>> > >> >>> Visual
>> > >> >>> Studio Code a while back. Originally, my main focus was on
>> creating
>> > a
>> > >> >>> development environment for FlexJS. Popular IDEs like Flash
>> Builder
>> > >> and
>> > >> >>> IntelliJ IDEA require jumping through some hoops to work with
>> > FlexJS,
>> > >> >>> and I
>> > >> >>> wanted to make sure the community has an editor where FlexJS is
>> > >> >>> considered
>> > >> >>> a first-class citizen.
>> > >> >>>
>> > >> >>> Well, I know many of you who are interested in FlexJS are also
>> still
>> > >> >>> targeting Adobe AIR and Flash Player with the original Apache
>> Flex
>> > >> SDK.
>> > >> >>> With that in mind, I've been working on ensuring that you can
>> build
>> > >> >>> projects for these runtimes in Visual Studio Code too! Earlier
>> this
>> > >> >>> week, I
>> > >> >>> released a big, new update to the extension that adds support for
>> > SWF
>> > >> >>> debugging in AIR and Flash Player.
>> > >> >>>
>> > >> >>> When you debug a SWF project in VSCode you'll be able to add
>> > >> breakpoints,
>> > >> >>> pause and step through your code, see trace() output in the
>> console,
>> > >> >>> navigate the call stack, and inspect variables. It's a debugger
>> with
>> > >> all
>> > >> >>> the bells and whistles that we've come to expect.
>> > >> >>>
>> > >> >>> For more information about the Visual Studio Code extension,
>> please
>> > >> visit
>> > >> >>> the website:
>> > >> >>>
>> > >> >>> https://nextgenactionscript.com/vscode/
>> > >> >>>
>> > >> >>> For instructions about how to create a new project, set up the
>> > >> compiler,
>> > >> >>> and debug any type of Apache Flex app in Adobe AIR and Flash
>> Player,
>> > >> >>> visit
>> > >> >>> the Github wiki:
>> > >> >>>
>> > >> >>> https://github.com/BowlerHatLLC/vscode-nextgenas/wiki
>> > >> >>>
>> > >> >>> With the community's help, I can continue working on useful
>> > developer
>> > >> >>> tools
>> > >> >>> for ActionScript and MXML. Please join my Patreon campaign to
>> lend a
>> > >> >>> hand!
>> > >> >>>
>> > >> >>> https://www.patreon.com/josht
>> > >> >>>
>> > >> >>> Thank you, and happy coding!
>> > >> >>>
>> > >> >>> Josh Tynjala
>> > >> >>> NextGen ActionScript
>> > >> >>>
>> > >> >>> Note: I am an Apache Flex committer and PMC member, but this
>> VSCode
>> > >> >>> extension is not an Apache project. Today, I am simply posting
>> as a
>> > >> >>> member
>> > >> >>> of the community who wants to share a cool, independent project
>> that
>> > >> >>> others
>> > >> >>> might enjoy.
>> > >> >>>
>> > >> >>
>> > >> >>
>> > >> >
>> > >>
>> > >
>> > >
>> >
>>
>
>

Re: SWF Debugging in Visual Studio Code

Posted by Clint M <cm...@gmail.com>.
ok… I think I've fcsh figured out… here's what I'm planning let me know
your thoughts… it depends on gulp (should be ok?)

1. Use this gulp plugin https://github.com/youpy/gulp-fcsh
2. Setup node.js + gulp.js to run locally (install node, setup gulp as a
dev dependency, npm install)
3. Add the gulp tasks to tasks.json like says to here
https://code.visualstudio.com/docs/editor/tasks#_background-watching-tasks
4. Add custom problemMatcher(s) to tasks.json to watch the output

The gulpfile.js in the root of the project would probably look like:
//-------
var gulp = require('gulp');
var fcsh = require('gulp-fcsh');

gulp.task('fcsh', function () {
gulp.src('Main.mxml')
 .pipe(fcsh({
   compileOptions: '-library-path+=./libs'
 }))
 .pipe(gulp.dest('bin-debug'))
});
}

gulp.task('watch', function () {
  gulp.watch(['*.mxml', '*.as'], ['fcsh']);
}




On Sat, Mar 18, 2017 at 10:00 AM, Josh Tynjala <jo...@gmail.com>
wrote:

> I'm not sure that it will be possible to run fcsh from a tasks.json file in
> VSCode, but I'm not particularly familiar with running it directly from the
> command line, so maybe I'm wrong. I can look into it.
>
> - Josh
>
> On Mar 17, 2017 10:52 PM, "Clint M" <cm...@gmail.com> wrote:
>
> > is fcsh on your radar? I just got it to work with java 7 and
> > adding -Djava.util.Arrays.useLegacyMergeSort=true|
> > couldn't get it to work with java 8… getting Error: null on recompile
> >
> > On Fri, Mar 17, 2017 at 10:39 PM, Clint M <cm...@gmail.com> wrote:
> >
> > > Ha… it works!!!
> > >
> > > I just checked it again… and this was my launch config (with duplicate
> > > keys??)
> > > I'm not sure if this was me or vs code but after I removed the
> duplicate
> > > keys (type, request, name, program) it worked just fine.
> > >
> > > Thanks Josh :)
> > >
> > > {
> > >     // Use IntelliSense to learn about possible SWF debug attributes.
> > >     // Hover to view descriptions of existing attributes.
> > >     // For more information, visit: https://go.microsoft.com/
> > > fwlink/?linkid=830387
> > >     "version": "0.2.0",
> > >     "preLaunchTask": "asconfigc",
> > >     "configurations": [
> > >         {
> > >             "type": "swf",
> > >             "request": "launch",
> > >             "name": "Launch SWF",
> > >             "program": "bin/GreenMaps-app.xml",
> > >             "type": "swf",
> > >             "request": "launch",
> > >             "name": "Launch SWF",
> > >             "program": "bin/MyProject-app.xml",
> > >             "profile": "mobileDevice",
> > >             "screensize": "iPhoneRetina",
> > >             "screenDPI": 326,
> > >             "versionPlatform": "IOS"
> > >         }
> > >     ]
> > > }
> > >
> > > On Fri, Mar 17, 2017 at 10:32 PM, Josh Tynjala <jo...@gmail.com>
> > > wrote:
> > >
> > >> When you debug with AIR, the error code will come from ADL, rather
> than
> > >> ADT, so it's meaning is going to be different. Looks like it is:
> > >>
> > >> The application descriptor file cannot be found.
> > >>
> > >> http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-6fa
> > >> 6d7e0128cca93d31-8000.html#WS5b3ccc516d4fbf351e63e3d118666ade46-7f62
> > >>
> > >> Make sure that you point to your AIR assocation descriptor in the
> > >> "application" field in asconfig.json. You'll also need an output path
> > for
> > >> the SWF under the compilerOptions.
> > >>
> > >> In the launch.json, you want the program to be the AIR application
> > >> descriptor instead of the SWF.
> > >>
> > >> - Josh
> > >>
> > >> On Mar 17, 2017 9:04 PM, "Clint M" <cm...@gmail.com> wrote:
> > >>
> > >> got it to build… can't get it to launch the debugger… the error is:
> > >> Error launching SWF debug session. Process exited with code: 6
> > >>
> > >> Which according to this [1] means I can't write to the output dir (but
> > I'm
> > >> not specifying it). How do I do that?
> > >>
> > >> I wonder if I need to change where I installed the FlexJS sdk?
> > >>
> > >> Here's what the launch config looks like in Flash Bungler.
> > >> https://www.dropbox.com/s/8f6kllihuoc3kol/Screen%20Shot%
> > >> 202017-03-17%20at%208.55.31%20PM.png?dl=0
> > >>
> > >>
> > >> [1] https://helpx.adobe.com/air/kb/air-developer-tool-adt-error.html
> > >> Exit codes
> > >> ADT exits with one of the following exit codes. For error conditions
> > (code
> > >> > 1), ADT also prints a diagnostic message to stderr.
> > >> Exit Code Meaning
> > >> 0 Successful primary launch [1]
> > >> 2 Usage error (incorrect arguments)
> > >> 5 Unknown error
> > >> 6 Could not write to output directory
> > >>
> > >> On Fri, Mar 17, 2017 at 8:25 PM, Clint M <cm...@gmail.com> wrote:
> > >>
> > >> > ha… got it to compile my flex mobile project with a couple of
> > >> workarounds…
> > >> >
> > >> > - "library-path": [ "libs" ], didn't work… I had to do:
> > >> "additionalOptions":
> > >> > "-library-path+=libs/",
> > >> > - I had to install both the flex sdk and the flexjs sdk… my
> > >> > ./.vscode/settings.json looks like:
> > >> > // Place your settings in this file to overwrite default and user
> > >> settings.
> > >> > {
> > >> >     "nextgenas.sdk.framework": "/Users/clint/code/Flex/SDK/
> > >> > flex_sdk_4.15.0_AIR_23",
> > >> >     "nextgenas.sdk.editor": "/usr/local/lib/node_modules/flexjs"
> > >> > }
> > >> >
> > >> >
> > >> > On Fri, Mar 17, 2017 at 8:03 PM, Clint M <cm...@gmail.com> wrote:
> > >> >
> > >> >> trying to get it setup… do I need both the flexjs and flexswf sdks?
> > >> >>
> > >> >> On Fri, Mar 17, 2017 at 4:36 PM, Josh Tynjala <
> joshtynjala@gmail.com
> > >
> > >> >> wrote:
> > >> >>
> > >> >>> Hello, Flex community!
> > >> >>>
> > >> >>> I hope you don't mind if I take a moment to plug one of my
> projects
> > >> that
> > >> >>> I
> > >> >>> think many Flex developers here will find useful.
> > >> >>>
> > >> >>> As you may recall, I created an ActionScript and MXML extension
> for
> > >> >>> Visual
> > >> >>> Studio Code a while back. Originally, my main focus was on
> creating
> > a
> > >> >>> development environment for FlexJS. Popular IDEs like Flash
> Builder
> > >> and
> > >> >>> IntelliJ IDEA require jumping through some hoops to work with
> > FlexJS,
> > >> >>> and I
> > >> >>> wanted to make sure the community has an editor where FlexJS is
> > >> >>> considered
> > >> >>> a first-class citizen.
> > >> >>>
> > >> >>> Well, I know many of you who are interested in FlexJS are also
> still
> > >> >>> targeting Adobe AIR and Flash Player with the original Apache Flex
> > >> SDK.
> > >> >>> With that in mind, I've been working on ensuring that you can
> build
> > >> >>> projects for these runtimes in Visual Studio Code too! Earlier
> this
> > >> >>> week, I
> > >> >>> released a big, new update to the extension that adds support for
> > SWF
> > >> >>> debugging in AIR and Flash Player.
> > >> >>>
> > >> >>> When you debug a SWF project in VSCode you'll be able to add
> > >> breakpoints,
> > >> >>> pause and step through your code, see trace() output in the
> console,
> > >> >>> navigate the call stack, and inspect variables. It's a debugger
> with
> > >> all
> > >> >>> the bells and whistles that we've come to expect.
> > >> >>>
> > >> >>> For more information about the Visual Studio Code extension,
> please
> > >> visit
> > >> >>> the website:
> > >> >>>
> > >> >>> https://nextgenactionscript.com/vscode/
> > >> >>>
> > >> >>> For instructions about how to create a new project, set up the
> > >> compiler,
> > >> >>> and debug any type of Apache Flex app in Adobe AIR and Flash
> Player,
> > >> >>> visit
> > >> >>> the Github wiki:
> > >> >>>
> > >> >>> https://github.com/BowlerHatLLC/vscode-nextgenas/wiki
> > >> >>>
> > >> >>> With the community's help, I can continue working on useful
> > developer
> > >> >>> tools
> > >> >>> for ActionScript and MXML. Please join my Patreon campaign to
> lend a
> > >> >>> hand!
> > >> >>>
> > >> >>> https://www.patreon.com/josht
> > >> >>>
> > >> >>> Thank you, and happy coding!
> > >> >>>
> > >> >>> Josh Tynjala
> > >> >>> NextGen ActionScript
> > >> >>>
> > >> >>> Note: I am an Apache Flex committer and PMC member, but this
> VSCode
> > >> >>> extension is not an Apache project. Today, I am simply posting as
> a
> > >> >>> member
> > >> >>> of the community who wants to share a cool, independent project
> that
> > >> >>> others
> > >> >>> might enjoy.
> > >> >>>
> > >> >>
> > >> >>
> > >> >
> > >>
> > >
> > >
> >
>

Re: SWF Debugging in Visual Studio Code

Posted by Josh Tynjala <jo...@gmail.com>.
I'm not sure that it will be possible to run fcsh from a tasks.json file in
VSCode, but I'm not particularly familiar with running it directly from the
command line, so maybe I'm wrong. I can look into it.

- Josh

On Mar 17, 2017 10:52 PM, "Clint M" <cm...@gmail.com> wrote:

> is fcsh on your radar? I just got it to work with java 7 and
> adding -Djava.util.Arrays.useLegacyMergeSort=true|
> couldn't get it to work with java 8… getting Error: null on recompile
>
> On Fri, Mar 17, 2017 at 10:39 PM, Clint M <cm...@gmail.com> wrote:
>
> > Ha… it works!!!
> >
> > I just checked it again… and this was my launch config (with duplicate
> > keys??)
> > I'm not sure if this was me or vs code but after I removed the duplicate
> > keys (type, request, name, program) it worked just fine.
> >
> > Thanks Josh :)
> >
> > {
> >     // Use IntelliSense to learn about possible SWF debug attributes.
> >     // Hover to view descriptions of existing attributes.
> >     // For more information, visit: https://go.microsoft.com/
> > fwlink/?linkid=830387
> >     "version": "0.2.0",
> >     "preLaunchTask": "asconfigc",
> >     "configurations": [
> >         {
> >             "type": "swf",
> >             "request": "launch",
> >             "name": "Launch SWF",
> >             "program": "bin/GreenMaps-app.xml",
> >             "type": "swf",
> >             "request": "launch",
> >             "name": "Launch SWF",
> >             "program": "bin/MyProject-app.xml",
> >             "profile": "mobileDevice",
> >             "screensize": "iPhoneRetina",
> >             "screenDPI": 326,
> >             "versionPlatform": "IOS"
> >         }
> >     ]
> > }
> >
> > On Fri, Mar 17, 2017 at 10:32 PM, Josh Tynjala <jo...@gmail.com>
> > wrote:
> >
> >> When you debug with AIR, the error code will come from ADL, rather than
> >> ADT, so it's meaning is going to be different. Looks like it is:
> >>
> >> The application descriptor file cannot be found.
> >>
> >> http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-6fa
> >> 6d7e0128cca93d31-8000.html#WS5b3ccc516d4fbf351e63e3d118666ade46-7f62
> >>
> >> Make sure that you point to your AIR assocation descriptor in the
> >> "application" field in asconfig.json. You'll also need an output path
> for
> >> the SWF under the compilerOptions.
> >>
> >> In the launch.json, you want the program to be the AIR application
> >> descriptor instead of the SWF.
> >>
> >> - Josh
> >>
> >> On Mar 17, 2017 9:04 PM, "Clint M" <cm...@gmail.com> wrote:
> >>
> >> got it to build… can't get it to launch the debugger… the error is:
> >> Error launching SWF debug session. Process exited with code: 6
> >>
> >> Which according to this [1] means I can't write to the output dir (but
> I'm
> >> not specifying it). How do I do that?
> >>
> >> I wonder if I need to change where I installed the FlexJS sdk?
> >>
> >> Here's what the launch config looks like in Flash Bungler.
> >> https://www.dropbox.com/s/8f6kllihuoc3kol/Screen%20Shot%
> >> 202017-03-17%20at%208.55.31%20PM.png?dl=0
> >>
> >>
> >> [1] https://helpx.adobe.com/air/kb/air-developer-tool-adt-error.html
> >> Exit codes
> >> ADT exits with one of the following exit codes. For error conditions
> (code
> >> > 1), ADT also prints a diagnostic message to stderr.
> >> Exit Code Meaning
> >> 0 Successful primary launch [1]
> >> 2 Usage error (incorrect arguments)
> >> 5 Unknown error
> >> 6 Could not write to output directory
> >>
> >> On Fri, Mar 17, 2017 at 8:25 PM, Clint M <cm...@gmail.com> wrote:
> >>
> >> > ha… got it to compile my flex mobile project with a couple of
> >> workarounds…
> >> >
> >> > - "library-path": [ "libs" ], didn't work… I had to do:
> >> "additionalOptions":
> >> > "-library-path+=libs/",
> >> > - I had to install both the flex sdk and the flexjs sdk… my
> >> > ./.vscode/settings.json looks like:
> >> > // Place your settings in this file to overwrite default and user
> >> settings.
> >> > {
> >> >     "nextgenas.sdk.framework": "/Users/clint/code/Flex/SDK/
> >> > flex_sdk_4.15.0_AIR_23",
> >> >     "nextgenas.sdk.editor": "/usr/local/lib/node_modules/flexjs"
> >> > }
> >> >
> >> >
> >> > On Fri, Mar 17, 2017 at 8:03 PM, Clint M <cm...@gmail.com> wrote:
> >> >
> >> >> trying to get it setup… do I need both the flexjs and flexswf sdks?
> >> >>
> >> >> On Fri, Mar 17, 2017 at 4:36 PM, Josh Tynjala <joshtynjala@gmail.com
> >
> >> >> wrote:
> >> >>
> >> >>> Hello, Flex community!
> >> >>>
> >> >>> I hope you don't mind if I take a moment to plug one of my projects
> >> that
> >> >>> I
> >> >>> think many Flex developers here will find useful.
> >> >>>
> >> >>> As you may recall, I created an ActionScript and MXML extension for
> >> >>> Visual
> >> >>> Studio Code a while back. Originally, my main focus was on creating
> a
> >> >>> development environment for FlexJS. Popular IDEs like Flash Builder
> >> and
> >> >>> IntelliJ IDEA require jumping through some hoops to work with
> FlexJS,
> >> >>> and I
> >> >>> wanted to make sure the community has an editor where FlexJS is
> >> >>> considered
> >> >>> a first-class citizen.
> >> >>>
> >> >>> Well, I know many of you who are interested in FlexJS are also still
> >> >>> targeting Adobe AIR and Flash Player with the original Apache Flex
> >> SDK.
> >> >>> With that in mind, I've been working on ensuring that you can build
> >> >>> projects for these runtimes in Visual Studio Code too! Earlier this
> >> >>> week, I
> >> >>> released a big, new update to the extension that adds support for
> SWF
> >> >>> debugging in AIR and Flash Player.
> >> >>>
> >> >>> When you debug a SWF project in VSCode you'll be able to add
> >> breakpoints,
> >> >>> pause and step through your code, see trace() output in the console,
> >> >>> navigate the call stack, and inspect variables. It's a debugger with
> >> all
> >> >>> the bells and whistles that we've come to expect.
> >> >>>
> >> >>> For more information about the Visual Studio Code extension, please
> >> visit
> >> >>> the website:
> >> >>>
> >> >>> https://nextgenactionscript.com/vscode/
> >> >>>
> >> >>> For instructions about how to create a new project, set up the
> >> compiler,
> >> >>> and debug any type of Apache Flex app in Adobe AIR and Flash Player,
> >> >>> visit
> >> >>> the Github wiki:
> >> >>>
> >> >>> https://github.com/BowlerHatLLC/vscode-nextgenas/wiki
> >> >>>
> >> >>> With the community's help, I can continue working on useful
> developer
> >> >>> tools
> >> >>> for ActionScript and MXML. Please join my Patreon campaign to lend a
> >> >>> hand!
> >> >>>
> >> >>> https://www.patreon.com/josht
> >> >>>
> >> >>> Thank you, and happy coding!
> >> >>>
> >> >>> Josh Tynjala
> >> >>> NextGen ActionScript
> >> >>>
> >> >>> Note: I am an Apache Flex committer and PMC member, but this VSCode
> >> >>> extension is not an Apache project. Today, I am simply posting as a
> >> >>> member
> >> >>> of the community who wants to share a cool, independent project that
> >> >>> others
> >> >>> might enjoy.
> >> >>>
> >> >>
> >> >>
> >> >
> >>
> >
> >
>

Re: SWF Debugging in Visual Studio Code

Posted by Clint M <cm...@gmail.com>.
is fcsh on your radar? I just got it to work with java 7 and
adding -Djava.util.Arrays.useLegacyMergeSort=true|
couldn't get it to work with java 8… getting Error: null on recompile

On Fri, Mar 17, 2017 at 10:39 PM, Clint M <cm...@gmail.com> wrote:

> Ha… it works!!!
>
> I just checked it again… and this was my launch config (with duplicate
> keys??)
> I'm not sure if this was me or vs code but after I removed the duplicate
> keys (type, request, name, program) it worked just fine.
>
> Thanks Josh :)
>
> {
>     // Use IntelliSense to learn about possible SWF debug attributes.
>     // Hover to view descriptions of existing attributes.
>     // For more information, visit: https://go.microsoft.com/
> fwlink/?linkid=830387
>     "version": "0.2.0",
>     "preLaunchTask": "asconfigc",
>     "configurations": [
>         {
>             "type": "swf",
>             "request": "launch",
>             "name": "Launch SWF",
>             "program": "bin/GreenMaps-app.xml",
>             "type": "swf",
>             "request": "launch",
>             "name": "Launch SWF",
>             "program": "bin/MyProject-app.xml",
>             "profile": "mobileDevice",
>             "screensize": "iPhoneRetina",
>             "screenDPI": 326,
>             "versionPlatform": "IOS"
>         }
>     ]
> }
>
> On Fri, Mar 17, 2017 at 10:32 PM, Josh Tynjala <jo...@gmail.com>
> wrote:
>
>> When you debug with AIR, the error code will come from ADL, rather than
>> ADT, so it's meaning is going to be different. Looks like it is:
>>
>> The application descriptor file cannot be found.
>>
>> http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-6fa
>> 6d7e0128cca93d31-8000.html#WS5b3ccc516d4fbf351e63e3d118666ade46-7f62
>>
>> Make sure that you point to your AIR assocation descriptor in the
>> "application" field in asconfig.json. You'll also need an output path for
>> the SWF under the compilerOptions.
>>
>> In the launch.json, you want the program to be the AIR application
>> descriptor instead of the SWF.
>>
>> - Josh
>>
>> On Mar 17, 2017 9:04 PM, "Clint M" <cm...@gmail.com> wrote:
>>
>> got it to build… can't get it to launch the debugger… the error is:
>> Error launching SWF debug session. Process exited with code: 6
>>
>> Which according to this [1] means I can't write to the output dir (but I'm
>> not specifying it). How do I do that?
>>
>> I wonder if I need to change where I installed the FlexJS sdk?
>>
>> Here's what the launch config looks like in Flash Bungler.
>> https://www.dropbox.com/s/8f6kllihuoc3kol/Screen%20Shot%
>> 202017-03-17%20at%208.55.31%20PM.png?dl=0
>>
>>
>> [1] https://helpx.adobe.com/air/kb/air-developer-tool-adt-error.html
>> Exit codes
>> ADT exits with one of the following exit codes. For error conditions (code
>> > 1), ADT also prints a diagnostic message to stderr.
>> Exit Code Meaning
>> 0 Successful primary launch [1]
>> 2 Usage error (incorrect arguments)
>> 5 Unknown error
>> 6 Could not write to output directory
>>
>> On Fri, Mar 17, 2017 at 8:25 PM, Clint M <cm...@gmail.com> wrote:
>>
>> > ha… got it to compile my flex mobile project with a couple of
>> workarounds…
>> >
>> > - "library-path": [ "libs" ], didn't work… I had to do:
>> "additionalOptions":
>> > "-library-path+=libs/",
>> > - I had to install both the flex sdk and the flexjs sdk… my
>> > ./.vscode/settings.json looks like:
>> > // Place your settings in this file to overwrite default and user
>> settings.
>> > {
>> >     "nextgenas.sdk.framework": "/Users/clint/code/Flex/SDK/
>> > flex_sdk_4.15.0_AIR_23",
>> >     "nextgenas.sdk.editor": "/usr/local/lib/node_modules/flexjs"
>> > }
>> >
>> >
>> > On Fri, Mar 17, 2017 at 8:03 PM, Clint M <cm...@gmail.com> wrote:
>> >
>> >> trying to get it setup… do I need both the flexjs and flexswf sdks?
>> >>
>> >> On Fri, Mar 17, 2017 at 4:36 PM, Josh Tynjala <jo...@gmail.com>
>> >> wrote:
>> >>
>> >>> Hello, Flex community!
>> >>>
>> >>> I hope you don't mind if I take a moment to plug one of my projects
>> that
>> >>> I
>> >>> think many Flex developers here will find useful.
>> >>>
>> >>> As you may recall, I created an ActionScript and MXML extension for
>> >>> Visual
>> >>> Studio Code a while back. Originally, my main focus was on creating a
>> >>> development environment for FlexJS. Popular IDEs like Flash Builder
>> and
>> >>> IntelliJ IDEA require jumping through some hoops to work with FlexJS,
>> >>> and I
>> >>> wanted to make sure the community has an editor where FlexJS is
>> >>> considered
>> >>> a first-class citizen.
>> >>>
>> >>> Well, I know many of you who are interested in FlexJS are also still
>> >>> targeting Adobe AIR and Flash Player with the original Apache Flex
>> SDK.
>> >>> With that in mind, I've been working on ensuring that you can build
>> >>> projects for these runtimes in Visual Studio Code too! Earlier this
>> >>> week, I
>> >>> released a big, new update to the extension that adds support for SWF
>> >>> debugging in AIR and Flash Player.
>> >>>
>> >>> When you debug a SWF project in VSCode you'll be able to add
>> breakpoints,
>> >>> pause and step through your code, see trace() output in the console,
>> >>> navigate the call stack, and inspect variables. It's a debugger with
>> all
>> >>> the bells and whistles that we've come to expect.
>> >>>
>> >>> For more information about the Visual Studio Code extension, please
>> visit
>> >>> the website:
>> >>>
>> >>> https://nextgenactionscript.com/vscode/
>> >>>
>> >>> For instructions about how to create a new project, set up the
>> compiler,
>> >>> and debug any type of Apache Flex app in Adobe AIR and Flash Player,
>> >>> visit
>> >>> the Github wiki:
>> >>>
>> >>> https://github.com/BowlerHatLLC/vscode-nextgenas/wiki
>> >>>
>> >>> With the community's help, I can continue working on useful developer
>> >>> tools
>> >>> for ActionScript and MXML. Please join my Patreon campaign to lend a
>> >>> hand!
>> >>>
>> >>> https://www.patreon.com/josht
>> >>>
>> >>> Thank you, and happy coding!
>> >>>
>> >>> Josh Tynjala
>> >>> NextGen ActionScript
>> >>>
>> >>> Note: I am an Apache Flex committer and PMC member, but this VSCode
>> >>> extension is not an Apache project. Today, I am simply posting as a
>> >>> member
>> >>> of the community who wants to share a cool, independent project that
>> >>> others
>> >>> might enjoy.
>> >>>
>> >>
>> >>
>> >
>>
>
>

Re: SWF Debugging in Visual Studio Code

Posted by Clint M <cm...@gmail.com>.
Ha… it works!!!

I just checked it again… and this was my launch config (with duplicate
keys??)
I'm not sure if this was me or vs code but after I removed the duplicate
keys (type, request, name, program) it worked just fine.

Thanks Josh :)

{
    // Use IntelliSense to learn about possible SWF debug attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit:
https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "preLaunchTask": "asconfigc",
    "configurations": [
        {
            "type": "swf",
            "request": "launch",
            "name": "Launch SWF",
            "program": "bin/GreenMaps-app.xml",
            "type": "swf",
            "request": "launch",
            "name": "Launch SWF",
            "program": "bin/MyProject-app.xml",
            "profile": "mobileDevice",
            "screensize": "iPhoneRetina",
            "screenDPI": 326,
            "versionPlatform": "IOS"
        }
    ]
}

On Fri, Mar 17, 2017 at 10:32 PM, Josh Tynjala <jo...@gmail.com>
wrote:

> When you debug with AIR, the error code will come from ADL, rather than
> ADT, so it's meaning is going to be different. Looks like it is:
>
> The application descriptor file cannot be found.
>
> http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-
> 6fa6d7e0128cca93d31-8000.html#WS5b3ccc516d4fbf351e63e3d118666ade46-7f62
>
> Make sure that you point to your AIR assocation descriptor in the
> "application" field in asconfig.json. You'll also need an output path for
> the SWF under the compilerOptions.
>
> In the launch.json, you want the program to be the AIR application
> descriptor instead of the SWF.
>
> - Josh
>
> On Mar 17, 2017 9:04 PM, "Clint M" <cm...@gmail.com> wrote:
>
> got it to build… can't get it to launch the debugger… the error is:
> Error launching SWF debug session. Process exited with code: 6
>
> Which according to this [1] means I can't write to the output dir (but I'm
> not specifying it). How do I do that?
>
> I wonder if I need to change where I installed the FlexJS sdk?
>
> Here's what the launch config looks like in Flash Bungler.
> https://www.dropbox.com/s/8f6kllihuoc3kol/Screen%20Shot%
> 202017-03-17%20at%208.55.31%20PM.png?dl=0
>
>
> [1] https://helpx.adobe.com/air/kb/air-developer-tool-adt-error.html
> Exit codes
> ADT exits with one of the following exit codes. For error conditions (code
> > 1), ADT also prints a diagnostic message to stderr.
> Exit Code Meaning
> 0 Successful primary launch [1]
> 2 Usage error (incorrect arguments)
> 5 Unknown error
> 6 Could not write to output directory
>
> On Fri, Mar 17, 2017 at 8:25 PM, Clint M <cm...@gmail.com> wrote:
>
> > ha… got it to compile my flex mobile project with a couple of
> workarounds…
> >
> > - "library-path": [ "libs" ], didn't work… I had to do:
> "additionalOptions":
> > "-library-path+=libs/",
> > - I had to install both the flex sdk and the flexjs sdk… my
> > ./.vscode/settings.json looks like:
> > // Place your settings in this file to overwrite default and user
> settings.
> > {
> >     "nextgenas.sdk.framework": "/Users/clint/code/Flex/SDK/
> > flex_sdk_4.15.0_AIR_23",
> >     "nextgenas.sdk.editor": "/usr/local/lib/node_modules/flexjs"
> > }
> >
> >
> > On Fri, Mar 17, 2017 at 8:03 PM, Clint M <cm...@gmail.com> wrote:
> >
> >> trying to get it setup… do I need both the flexjs and flexswf sdks?
> >>
> >> On Fri, Mar 17, 2017 at 4:36 PM, Josh Tynjala <jo...@gmail.com>
> >> wrote:
> >>
> >>> Hello, Flex community!
> >>>
> >>> I hope you don't mind if I take a moment to plug one of my projects
> that
> >>> I
> >>> think many Flex developers here will find useful.
> >>>
> >>> As you may recall, I created an ActionScript and MXML extension for
> >>> Visual
> >>> Studio Code a while back. Originally, my main focus was on creating a
> >>> development environment for FlexJS. Popular IDEs like Flash Builder and
> >>> IntelliJ IDEA require jumping through some hoops to work with FlexJS,
> >>> and I
> >>> wanted to make sure the community has an editor where FlexJS is
> >>> considered
> >>> a first-class citizen.
> >>>
> >>> Well, I know many of you who are interested in FlexJS are also still
> >>> targeting Adobe AIR and Flash Player with the original Apache Flex SDK.
> >>> With that in mind, I've been working on ensuring that you can build
> >>> projects for these runtimes in Visual Studio Code too! Earlier this
> >>> week, I
> >>> released a big, new update to the extension that adds support for SWF
> >>> debugging in AIR and Flash Player.
> >>>
> >>> When you debug a SWF project in VSCode you'll be able to add
> breakpoints,
> >>> pause and step through your code, see trace() output in the console,
> >>> navigate the call stack, and inspect variables. It's a debugger with
> all
> >>> the bells and whistles that we've come to expect.
> >>>
> >>> For more information about the Visual Studio Code extension, please
> visit
> >>> the website:
> >>>
> >>> https://nextgenactionscript.com/vscode/
> >>>
> >>> For instructions about how to create a new project, set up the
> compiler,
> >>> and debug any type of Apache Flex app in Adobe AIR and Flash Player,
> >>> visit
> >>> the Github wiki:
> >>>
> >>> https://github.com/BowlerHatLLC/vscode-nextgenas/wiki
> >>>
> >>> With the community's help, I can continue working on useful developer
> >>> tools
> >>> for ActionScript and MXML. Please join my Patreon campaign to lend a
> >>> hand!
> >>>
> >>> https://www.patreon.com/josht
> >>>
> >>> Thank you, and happy coding!
> >>>
> >>> Josh Tynjala
> >>> NextGen ActionScript
> >>>
> >>> Note: I am an Apache Flex committer and PMC member, but this VSCode
> >>> extension is not an Apache project. Today, I am simply posting as a
> >>> member
> >>> of the community who wants to share a cool, independent project that
> >>> others
> >>> might enjoy.
> >>>
> >>
> >>
> >
>

Re: SWF Debugging in Visual Studio Code

Posted by Josh Tynjala <jo...@gmail.com>.
When you debug with AIR, the error code will come from ADL, rather than
ADT, so it's meaning is going to be different. Looks like it is:

The application descriptor file cannot be found.

http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-6fa6d7e0128cca93d31-8000.html#WS5b3ccc516d4fbf351e63e3d118666ade46-7f62

Make sure that you point to your AIR assocation descriptor in the
"application" field in asconfig.json. You'll also need an output path for
the SWF under the compilerOptions.

In the launch.json, you want the program to be the AIR application
descriptor instead of the SWF.

- Josh

On Mar 17, 2017 9:04 PM, "Clint M" <cm...@gmail.com> wrote:

got it to build… can't get it to launch the debugger… the error is:
Error launching SWF debug session. Process exited with code: 6

Which according to this [1] means I can't write to the output dir (but I'm
not specifying it). How do I do that?

I wonder if I need to change where I installed the FlexJS sdk?

Here's what the launch config looks like in Flash Bungler.
https://www.dropbox.com/s/8f6kllihuoc3kol/Screen%20Shot%
202017-03-17%20at%208.55.31%20PM.png?dl=0


[1] https://helpx.adobe.com/air/kb/air-developer-tool-adt-error.html
Exit codes
ADT exits with one of the following exit codes. For error conditions (code
> 1), ADT also prints a diagnostic message to stderr.
Exit Code Meaning
0 Successful primary launch [1]
2 Usage error (incorrect arguments)
5 Unknown error
6 Could not write to output directory

On Fri, Mar 17, 2017 at 8:25 PM, Clint M <cm...@gmail.com> wrote:

> ha… got it to compile my flex mobile project with a couple of workarounds…
>
> - "library-path": [ "libs" ], didn't work… I had to do:
"additionalOptions":
> "-library-path+=libs/",
> - I had to install both the flex sdk and the flexjs sdk… my
> ./.vscode/settings.json looks like:
> // Place your settings in this file to overwrite default and user
settings.
> {
>     "nextgenas.sdk.framework": "/Users/clint/code/Flex/SDK/
> flex_sdk_4.15.0_AIR_23",
>     "nextgenas.sdk.editor": "/usr/local/lib/node_modules/flexjs"
> }
>
>
> On Fri, Mar 17, 2017 at 8:03 PM, Clint M <cm...@gmail.com> wrote:
>
>> trying to get it setup… do I need both the flexjs and flexswf sdks?
>>
>> On Fri, Mar 17, 2017 at 4:36 PM, Josh Tynjala <jo...@gmail.com>
>> wrote:
>>
>>> Hello, Flex community!
>>>
>>> I hope you don't mind if I take a moment to plug one of my projects that
>>> I
>>> think many Flex developers here will find useful.
>>>
>>> As you may recall, I created an ActionScript and MXML extension for
>>> Visual
>>> Studio Code a while back. Originally, my main focus was on creating a
>>> development environment for FlexJS. Popular IDEs like Flash Builder and
>>> IntelliJ IDEA require jumping through some hoops to work with FlexJS,
>>> and I
>>> wanted to make sure the community has an editor where FlexJS is
>>> considered
>>> a first-class citizen.
>>>
>>> Well, I know many of you who are interested in FlexJS are also still
>>> targeting Adobe AIR and Flash Player with the original Apache Flex SDK.
>>> With that in mind, I've been working on ensuring that you can build
>>> projects for these runtimes in Visual Studio Code too! Earlier this
>>> week, I
>>> released a big, new update to the extension that adds support for SWF
>>> debugging in AIR and Flash Player.
>>>
>>> When you debug a SWF project in VSCode you'll be able to add
breakpoints,
>>> pause and step through your code, see trace() output in the console,
>>> navigate the call stack, and inspect variables. It's a debugger with all
>>> the bells and whistles that we've come to expect.
>>>
>>> For more information about the Visual Studio Code extension, please
visit
>>> the website:
>>>
>>> https://nextgenactionscript.com/vscode/
>>>
>>> For instructions about how to create a new project, set up the compiler,
>>> and debug any type of Apache Flex app in Adobe AIR and Flash Player,
>>> visit
>>> the Github wiki:
>>>
>>> https://github.com/BowlerHatLLC/vscode-nextgenas/wiki
>>>
>>> With the community's help, I can continue working on useful developer
>>> tools
>>> for ActionScript and MXML. Please join my Patreon campaign to lend a
>>> hand!
>>>
>>> https://www.patreon.com/josht
>>>
>>> Thank you, and happy coding!
>>>
>>> Josh Tynjala
>>> NextGen ActionScript
>>>
>>> Note: I am an Apache Flex committer and PMC member, but this VSCode
>>> extension is not an Apache project. Today, I am simply posting as a
>>> member
>>> of the community who wants to share a cool, independent project that
>>> others
>>> might enjoy.
>>>
>>
>>
>

Re: SWF Debugging in Visual Studio Code

Posted by Clint M <cm...@gmail.com>.
got it to build… can't get it to launch the debugger… the error is:
Error launching SWF debug session. Process exited with code: 6

Which according to this [1] means I can't write to the output dir (but I'm
not specifying it). How do I do that?

I wonder if I need to change where I installed the FlexJS sdk?

Here's what the launch config looks like in Flash Bungler.
https://www.dropbox.com/s/8f6kllihuoc3kol/Screen%20Shot%202017-03-17%20at%208.55.31%20PM.png?dl=0


[1] https://helpx.adobe.com/air/kb/air-developer-tool-adt-error.html
Exit codes
ADT exits with one of the following exit codes. For error conditions (code
> 1), ADT also prints a diagnostic message to stderr.
Exit Code Meaning
0 Successful primary launch [1]
2 Usage error (incorrect arguments)
5 Unknown error
6 Could not write to output directory

On Fri, Mar 17, 2017 at 8:25 PM, Clint M <cm...@gmail.com> wrote:

> ha… got it to compile my flex mobile project with a couple of workarounds…
>
> - "library-path": [ "libs" ], didn't work… I had to do: "additionalOptions":
> "-library-path+=libs/",
> - I had to install both the flex sdk and the flexjs sdk… my
> ./.vscode/settings.json looks like:
> // Place your settings in this file to overwrite default and user settings.
> {
>     "nextgenas.sdk.framework": "/Users/clint/code/Flex/SDK/
> flex_sdk_4.15.0_AIR_23",
>     "nextgenas.sdk.editor": "/usr/local/lib/node_modules/flexjs"
> }
>
>
> On Fri, Mar 17, 2017 at 8:03 PM, Clint M <cm...@gmail.com> wrote:
>
>> trying to get it setup… do I need both the flexjs and flexswf sdks?
>>
>> On Fri, Mar 17, 2017 at 4:36 PM, Josh Tynjala <jo...@gmail.com>
>> wrote:
>>
>>> Hello, Flex community!
>>>
>>> I hope you don't mind if I take a moment to plug one of my projects that
>>> I
>>> think many Flex developers here will find useful.
>>>
>>> As you may recall, I created an ActionScript and MXML extension for
>>> Visual
>>> Studio Code a while back. Originally, my main focus was on creating a
>>> development environment for FlexJS. Popular IDEs like Flash Builder and
>>> IntelliJ IDEA require jumping through some hoops to work with FlexJS,
>>> and I
>>> wanted to make sure the community has an editor where FlexJS is
>>> considered
>>> a first-class citizen.
>>>
>>> Well, I know many of you who are interested in FlexJS are also still
>>> targeting Adobe AIR and Flash Player with the original Apache Flex SDK.
>>> With that in mind, I've been working on ensuring that you can build
>>> projects for these runtimes in Visual Studio Code too! Earlier this
>>> week, I
>>> released a big, new update to the extension that adds support for SWF
>>> debugging in AIR and Flash Player.
>>>
>>> When you debug a SWF project in VSCode you'll be able to add breakpoints,
>>> pause and step through your code, see trace() output in the console,
>>> navigate the call stack, and inspect variables. It's a debugger with all
>>> the bells and whistles that we've come to expect.
>>>
>>> For more information about the Visual Studio Code extension, please visit
>>> the website:
>>>
>>> https://nextgenactionscript.com/vscode/
>>>
>>> For instructions about how to create a new project, set up the compiler,
>>> and debug any type of Apache Flex app in Adobe AIR and Flash Player,
>>> visit
>>> the Github wiki:
>>>
>>> https://github.com/BowlerHatLLC/vscode-nextgenas/wiki
>>>
>>> With the community's help, I can continue working on useful developer
>>> tools
>>> for ActionScript and MXML. Please join my Patreon campaign to lend a
>>> hand!
>>>
>>> https://www.patreon.com/josht
>>>
>>> Thank you, and happy coding!
>>>
>>> Josh Tynjala
>>> NextGen ActionScript
>>>
>>> Note: I am an Apache Flex committer and PMC member, but this VSCode
>>> extension is not an Apache project. Today, I am simply posting as a
>>> member
>>> of the community who wants to share a cool, independent project that
>>> others
>>> might enjoy.
>>>
>>
>>
>

Re: SWF Debugging in Visual Studio Code

Posted by Clint M <cm...@gmail.com>.
ha… got it to compile my flex mobile project with a couple of workarounds…

- "library-path": [ "libs" ], didn't work… I had to do: "additionalOptions":
"-library-path+=libs/",
- I had to install both the flex sdk and the flexjs sdk… my
./.vscode/settings.json looks like:
// Place your settings in this file to overwrite default and user settings.
{
    "nextgenas.sdk.framework":
"/Users/clint/code/Flex/SDK/flex_sdk_4.15.0_AIR_23",
    "nextgenas.sdk.editor": "/usr/local/lib/node_modules/flexjs"
}


On Fri, Mar 17, 2017 at 8:03 PM, Clint M <cm...@gmail.com> wrote:

> trying to get it setup… do I need both the flexjs and flexswf sdks?
>
> On Fri, Mar 17, 2017 at 4:36 PM, Josh Tynjala <jo...@gmail.com>
> wrote:
>
>> Hello, Flex community!
>>
>> I hope you don't mind if I take a moment to plug one of my projects that I
>> think many Flex developers here will find useful.
>>
>> As you may recall, I created an ActionScript and MXML extension for Visual
>> Studio Code a while back. Originally, my main focus was on creating a
>> development environment for FlexJS. Popular IDEs like Flash Builder and
>> IntelliJ IDEA require jumping through some hoops to work with FlexJS, and
>> I
>> wanted to make sure the community has an editor where FlexJS is considered
>> a first-class citizen.
>>
>> Well, I know many of you who are interested in FlexJS are also still
>> targeting Adobe AIR and Flash Player with the original Apache Flex SDK.
>> With that in mind, I've been working on ensuring that you can build
>> projects for these runtimes in Visual Studio Code too! Earlier this week,
>> I
>> released a big, new update to the extension that adds support for SWF
>> debugging in AIR and Flash Player.
>>
>> When you debug a SWF project in VSCode you'll be able to add breakpoints,
>> pause and step through your code, see trace() output in the console,
>> navigate the call stack, and inspect variables. It's a debugger with all
>> the bells and whistles that we've come to expect.
>>
>> For more information about the Visual Studio Code extension, please visit
>> the website:
>>
>> https://nextgenactionscript.com/vscode/
>>
>> For instructions about how to create a new project, set up the compiler,
>> and debug any type of Apache Flex app in Adobe AIR and Flash Player, visit
>> the Github wiki:
>>
>> https://github.com/BowlerHatLLC/vscode-nextgenas/wiki
>>
>> With the community's help, I can continue working on useful developer
>> tools
>> for ActionScript and MXML. Please join my Patreon campaign to lend a hand!
>>
>> https://www.patreon.com/josht
>>
>> Thank you, and happy coding!
>>
>> Josh Tynjala
>> NextGen ActionScript
>>
>> Note: I am an Apache Flex committer and PMC member, but this VSCode
>> extension is not an Apache project. Today, I am simply posting as a member
>> of the community who wants to share a cool, independent project that
>> others
>> might enjoy.
>>
>
>

Re: SWF Debugging in Visual Studio Code

Posted by Josh Tynjala <jo...@gmail.com>.
Yeah, you need both SDKs. The editor is powered by the Falcon compiler in
FlexJS, but you need the original Flex SDK to provide the framework.

- Josh

On Mar 17, 2017 8:03 PM, "Clint M" <cm...@gmail.com> wrote:

trying to get it setup… do I need both the flexjs and flexswf sdks?

On Fri, Mar 17, 2017 at 4:36 PM, Josh Tynjala <jo...@gmail.com> wrote:

> Hello, Flex community!
>
> I hope you don't mind if I take a moment to plug one of my projects that I
> think many Flex developers here will find useful.
>
> As you may recall, I created an ActionScript and MXML extension for Visual
> Studio Code a while back. Originally, my main focus was on creating a
> development environment for FlexJS. Popular IDEs like Flash Builder and
> IntelliJ IDEA require jumping through some hoops to work with FlexJS, and
I
> wanted to make sure the community has an editor where FlexJS is considered
> a first-class citizen.
>
> Well, I know many of you who are interested in FlexJS are also still
> targeting Adobe AIR and Flash Player with the original Apache Flex SDK.
> With that in mind, I've been working on ensuring that you can build
> projects for these runtimes in Visual Studio Code too! Earlier this week,
I
> released a big, new update to the extension that adds support for SWF
> debugging in AIR and Flash Player.
>
> When you debug a SWF project in VSCode you'll be able to add breakpoints,
> pause and step through your code, see trace() output in the console,
> navigate the call stack, and inspect variables. It's a debugger with all
> the bells and whistles that we've come to expect.
>
> For more information about the Visual Studio Code extension, please visit
> the website:
>
> https://nextgenactionscript.com/vscode/
>
> For instructions about how to create a new project, set up the compiler,
> and debug any type of Apache Flex app in Adobe AIR and Flash Player, visit
> the Github wiki:
>
> https://github.com/BowlerHatLLC/vscode-nextgenas/wiki
>
> With the community's help, I can continue working on useful developer
tools
> for ActionScript and MXML. Please join my Patreon campaign to lend a hand!
>
> https://www.patreon.com/josht
>
> Thank you, and happy coding!
>
> Josh Tynjala
> NextGen ActionScript
>
> Note: I am an Apache Flex committer and PMC member, but this VSCode
> extension is not an Apache project. Today, I am simply posting as a member
> of the community who wants to share a cool, independent project that
others
> might enjoy.
>

Re: SWF Debugging in Visual Studio Code

Posted by Clint M <cm...@gmail.com>.
trying to get it setup… do I need both the flexjs and flexswf sdks?

On Fri, Mar 17, 2017 at 4:36 PM, Josh Tynjala <jo...@gmail.com> wrote:

> Hello, Flex community!
>
> I hope you don't mind if I take a moment to plug one of my projects that I
> think many Flex developers here will find useful.
>
> As you may recall, I created an ActionScript and MXML extension for Visual
> Studio Code a while back. Originally, my main focus was on creating a
> development environment for FlexJS. Popular IDEs like Flash Builder and
> IntelliJ IDEA require jumping through some hoops to work with FlexJS, and I
> wanted to make sure the community has an editor where FlexJS is considered
> a first-class citizen.
>
> Well, I know many of you who are interested in FlexJS are also still
> targeting Adobe AIR and Flash Player with the original Apache Flex SDK.
> With that in mind, I've been working on ensuring that you can build
> projects for these runtimes in Visual Studio Code too! Earlier this week, I
> released a big, new update to the extension that adds support for SWF
> debugging in AIR and Flash Player.
>
> When you debug a SWF project in VSCode you'll be able to add breakpoints,
> pause and step through your code, see trace() output in the console,
> navigate the call stack, and inspect variables. It's a debugger with all
> the bells and whistles that we've come to expect.
>
> For more information about the Visual Studio Code extension, please visit
> the website:
>
> https://nextgenactionscript.com/vscode/
>
> For instructions about how to create a new project, set up the compiler,
> and debug any type of Apache Flex app in Adobe AIR and Flash Player, visit
> the Github wiki:
>
> https://github.com/BowlerHatLLC/vscode-nextgenas/wiki
>
> With the community's help, I can continue working on useful developer tools
> for ActionScript and MXML. Please join my Patreon campaign to lend a hand!
>
> https://www.patreon.com/josht
>
> Thank you, and happy coding!
>
> Josh Tynjala
> NextGen ActionScript
>
> Note: I am an Apache Flex committer and PMC member, but this VSCode
> extension is not an Apache project. Today, I am simply posting as a member
> of the community who wants to share a cool, independent project that others
> might enjoy.
>

Re: SWF Debugging in Visual Studio Code

Posted by OK <po...@olafkrueger.net>.
Makes sense Piotr, thanks for explanation ;-)

Olaf



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-Code-tp14853p14890.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: SWF Debugging in Visual Studio Code

Posted by piotrz <pi...@gmail.com>.
Hi Olaf,

 "settings.json:" The deal is that I'm developing SDK itself - Once I do
some changes let's say in MDL library I would like to have it ASAP in my
application - That's why I'm pointing here to distribution folder which is
results of build by Maven FlexJS SDK.

tasks.json: 
"--flexHome=d:/flex_sdk/flexjs_nightly" - If I would like to build my
application not by Maven or Ant scripts, but just using Josh's plugin I need
to point valid SDK which allows me for it. - Distribution folder probably do
not contains enough things to do this. - 

This path was just tests whether everything is working fine with Josh's
plugin in most cases I'm building my end application by Maven.

Piotr




-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-Code-tp14853p14889.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: SWF Debugging in Visual Studio Code

Posted by OK <po...@olafkrueger.net>.
Hi Piotr,
I have also some issues with VSCode but I saw that you've passed different
SDK paths in your tasks.json and settings.json[1]. Is that right or should
it be like [2]?
Olaf


[1]:
settings.json:
 "nextgenas.sdk.editor":
"d:/flex_sdk/Sources/flex-asjs/distribution/distribution-flexjs" 

tasks.json:
"--flexHome=d:/flex_sdk/flexjs_nightly"

[2]
settings.json:
"nextgenas.sdk.editor": "d:/flex_sdk/flexjs_nightly" 






--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-Code-tp14853p14886.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: SWF Debugging in Visual Studio Code

Posted by Clint M <cm...@gmail.com>.
No… can't seem to make either work.

On Sat, Mar 18, 2017 at 6:53 PM, Josh Tynjala <jo...@gmail.com> wrote:

> Do other features like completion or the hover tooltip work?
>
> - Josh
>
> On Sat, Mar 18, 2017 at 5:09 PM, piotrz <pi...@gmail.com> wrote:
>
> > In ActionScript it also do not work. I've tried to jump from one
> > ActionScript
> > class to another - same result.
> >
> > I've tried jump to some field in class but same result:
> > <http://apache-flex-users.2333346.n4.nabble.com/file/
> > n14874/jump_to_var.png>
> >
> > But there was some reaction when I've tried to click on EventDispatcher
> > class, although it also didn't jump to that class.
> > <http://apache-flex-users.2333346.n4.nabble.com/file/
> > n14874/jump_event_disp.png>
> >
> > Piotr
> >
> >
> >
> >
> >
> > -----
> > Apache Flex PMC
> > piotrzarzycki21@gmail.com
> > --
> > View this message in context: http://apache-flex-users.
> > 2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-
> > Code-tp14853p14874.html
> > Sent from the Apache Flex Users mailing list archive at Nabble.com.
> >
>

Re: SWF Debugging in Visual Studio Code

Posted by piotrz <pi...@gmail.com>.
Josh,

Hoover tooltips and auto completion are working fine.
<http://apache-flex-users.2333346.n4.nabble.com/file/n14888/tooltip_ok.png> 

Piotr





-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-Code-tp14853p14888.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: SWF Debugging in Visual Studio Code

Posted by Josh Tynjala <jo...@gmail.com>.
Do other features like completion or the hover tooltip work?

- Josh

On Sat, Mar 18, 2017 at 5:09 PM, piotrz <pi...@gmail.com> wrote:

> In ActionScript it also do not work. I've tried to jump from one
> ActionScript
> class to another - same result.
>
> I've tried jump to some field in class but same result:
> <http://apache-flex-users.2333346.n4.nabble.com/file/
> n14874/jump_to_var.png>
>
> But there was some reaction when I've tried to click on EventDispatcher
> class, although it also didn't jump to that class.
> <http://apache-flex-users.2333346.n4.nabble.com/file/
> n14874/jump_event_disp.png>
>
> Piotr
>
>
>
>
>
> -----
> Apache Flex PMC
> piotrzarzycki21@gmail.com
> --
> View this message in context: http://apache-flex-users.
> 2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-
> Code-tp14853p14874.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>

Re: SWF Debugging in Visual Studio Code

Posted by piotrz <pi...@gmail.com>.
In ActionScript it also do not work. I've tried to jump from one ActionScript
class to another - same result.

I've tried jump to some field in class but same result:
<http://apache-flex-users.2333346.n4.nabble.com/file/n14874/jump_to_var.png> 

But there was some reaction when I've tried to click on EventDispatcher
class, although it also didn't jump to that class.
<http://apache-flex-users.2333346.n4.nabble.com/file/n14874/jump_event_disp.png> 

Piotr





-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-Code-tp14853p14874.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: SWF Debugging in Visual Studio Code

Posted by Josh Tynjala <jo...@gmail.com>.
Strange. Can you try to see if it works in an ActionScript file? Also, try
Ctrl+click instead of F12. I wouldn't expect that to make a difference, but
I never tried it with the F12 keyboard shortcut, so who knows!

- Josh

On Sat, Mar 18, 2017 at 2:15 PM, piotrz <pi...@gmail.com> wrote:

> Josh,
>
> It is not working for me. I cannot even jump to other file which is part of
> MDLExample. I'm hitting F12.
>
> <http://apache-flex-users.2333346.n4.nabble.com/file/
> n14872/mdl_example.png>
>
> Piotr
>
>
>
> -----
> Apache Flex PMC
> piotrzarzycki21@gmail.com
> --
> View this message in context: http://apache-flex-users.
> 2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-
> Code-tp14853p14872.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>

Re: SWF Debugging in Visual Studio Code

Posted by piotrz <pi...@gmail.com>.
Josh,

It is not working for me. I cannot even jump to other file which is part of
MDLExample. I'm hitting F12.

<http://apache-flex-users.2333346.n4.nabble.com/file/n14872/mdl_example.png> 

Piotr



-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-Code-tp14853p14872.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: SWF Debugging in Visual Studio Code

Posted by Josh Tynjala <jo...@gmail.com>.
You don't need to do anything to enable that! The original source file path
of each class is saved when a SWC is created. If the source file path
contains "frameworks/projects", the extension will modify the original path
to point to a local path on your computer inside your framework SDK.

- Josh

On Mar 18, 2017 12:18 PM, "piotrz" <pi...@gmail.com> wrote:

Hi Josh,

Thanks for the release! I just tried it and our MDLExample compiled like a
charm. There is one thing which interested me in release notes:

"Goto definition now finds framework classes in the SDK, even if they are
compiled into a SWC."

How can I achieve this one ? Apart of standard configuration which looks
like that [1][2][3] for me what I have to do ?

[1] settings.json: https://paste.apache.org/5hwb
[2] asconfig.json: https://paste.apache.org/Cl5A
[3] tasks.json: https://paste.apache.org/b968

Piotr



-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-users.
2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-Code-tp14853p14867.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: SWF Debugging in Visual Studio Code

Posted by piotrz <pi...@gmail.com>.
Hi Josh,

Thanks for the release! I just tried it and our MDLExample compiled like a
charm. There is one thing which interested me in release notes:

"Goto definition now finds framework classes in the SDK, even if they are
compiled into a SWC."

How can I achieve this one ? Apart of standard configuration which looks
like that [1][2][3] for me what I have to do ?

[1] settings.json: https://paste.apache.org/5hwb
[2] asconfig.json: https://paste.apache.org/Cl5A
[3] tasks.json: https://paste.apache.org/b968

Piotr



-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-Code-tp14853p14867.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: SWF Debugging in Visual Studio Code

Posted by Josh Tynjala <jo...@gmail.com>.
That sounds like a bug. It should always give precedence to
nextgenas.sdk.editor. I'll take a look after the weekend!

- Josh

On Mar 18, 2017 11:46 AM, "PKumar" <pr...@gmail.com> wrote:

> Regarding nightly build use, if flex_home and nextgenas.sdk.editor  both
> are used then VCode gives preference to flex_home. Ideally it should
> compile the application with user defined ask not global one. Please
> suggest.
>
> On 18-Mar-2017 10:39 PM, "Josh Tynjala [via Apache Flex Users]" <
> ml-node+s2333346n14865h0@n4.nabble.com> wrote:
>
> > I tested with a nightly build immediately before the release on both
> macOS
> > and Windows (along with 0.7.0 and a Maven distribution). Unless there was
> > a
> > major change in the last day or two that I missed, the extension should
> be
> > able to handle a nightly. What happens when you try to use a nightly that
> > makes you think it doesn't work?
> >
> > I'm not sure I'll be able to help with the misleading errors without
> > actually seeing them. Can you share the error messages and maybe some of
> > the relevant code?
> >
> > I can double-check the completion in the <fx:Script> block when I'm back
> > to
> > work on Monday, but I have not encountered this issue before. Considering
> > your other issues, I wonder if this is simply a side effect of another
> > issue.
> >
> > - Josh
> >
> >
> > On Mar 18, 2017 9:34 AM, "PKumar" <[hidden email]
> > <http:///user/SendEmail.jtp?type=node&node=14865&i=0>> wrote:
> >
> > Josh,
> >
> > I am using VCode for FlexJS app & library development but I am following
> > issues:
> >
> > Not getting intelligence for <fx:script> tag
> > Compile time issues are misleading
> > Can not use FlexJS nightly build
> >
> > Please suggest.
> >
> > On 18-Mar-2017 5:32 AM, "Josh Tynjala [via Apache Flex Users]" <
> > [hidden email] <http:///user/SendEmail.jtp?type=node&node=14865&i=1>>
> > wrote:
> >
> > > Hello, Flex community!
> > >
> > > I hope you don't mind if I take a moment to plug one of my projects
> that
> > I
> > > think many Flex developers here will find useful.
> > >
> > > As you may recall, I created an ActionScript and MXML extension for
> > Visual
> > > Studio Code a while back. Originally, my main focus was on creating a
> > > development environment for FlexJS. Popular IDEs like Flash Builder and
> > > IntelliJ IDEA require jumping through some hoops to work with FlexJS,
> > and
> > > I
> > > wanted to make sure the community has an editor where FlexJS is
> > considered
> > > a first-class citizen.
> > >
> > > Well, I know many of you who are interested in FlexJS are also still
> > > targeting Adobe AIR and Flash Player with the original Apache Flex SDK.
> > > With that in mind, I've been working on ensuring that you can build
> > > projects for these runtimes in Visual Studio Code too! Earlier this
> > week,
> > > I
> > > released a big, new update to the extension that adds support for SWF
> > > debugging in AIR and Flash Player.
> > >
> > > When you debug a SWF project in VSCode you'll be able to add
> > breakpoints,
> > > pause and step through your code, see trace() output in the console,
> > > navigate the call stack, and inspect variables. It's a debugger with
> all
> > > the bells and whistles that we've come to expect.
> > >
> > > For more information about the Visual Studio Code extension, please
> > visit
> > > the website:
> > >
> > > https://nextgenactionscript.com/vscode/
> > >
> > > For instructions about how to create a new project, set up the
> compiler,
> > > and debug any type of Apache Flex app in Adobe AIR and Flash Player,
> > visit
> > > the Github wiki:
> > >
> > > https://github.com/BowlerHatLLC/vscode-nextgenas/wiki
> > >
> > > With the community's help, I can continue working on useful developer
> > > tools
> > > for ActionScript and MXML. Please join my Patreon campaign to lend a
> > hand!
> > >
> > > https://www.patreon.com/josht
> > >
> > > Thank you, and happy coding!
> > >
> > > Josh Tynjala
> > > NextGen ActionScript
> > >
> > > Note: I am an Apache Flex committer and PMC member, but this VSCode
> > > extension is not an Apache project. Today, I am simply posting as a
> > member
> > > of the community who wants to share a cool, independent project that
> > > others
> > > might enjoy.
> > >
> > >
> > > ------------------------------
> > > If you reply to this email, your message will be added to the
> discussion
> > > below:
> > > http://apache-flex-users.2333346.n4.nabble.com/SWF-
> > > Debugging-in-Visual-Studio-Code-tp14853.html
> > > To start a new topic under Apache Flex Users, email
> > > [hidden email] <http:///user/SendEmail.jtp?type=node&node=14865&i=2>
> > > To unsubscribe from Apache Flex Users, click here
> > > <http://apache-flex-users.2333346.n4.nabble.com/
> template/NamlServlet.jtp?
> >
> > macro=unsubscribe_by_code&node=1&code=cHJhc2hha3VtYXJAZ21haWwuY29tfD
> > F8LTU0MTcyMzE2NA==>
> > > .
> > > NAML
> > > <http://apache-flex-users.2333346.n4.nabble.com/
> template/NamlServlet.jtp?
> >
> > macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&
> > base=nabble.naml.namespaces.BasicNamespace-nabble.view.
> > web.template.NabbleNamespace-nabble.view.web.template.
> > NodeNamespace&breadcrumbs=notify_subscribers%21nabble%
> > 3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_
> > instant_email%21nabble%3Aemail.naml>
> > >
> >
> >
> >
> >
> > -----
> > Regards,
> > Prashant
> > --
> > View this message in context: http://apache-flex-users.
> > 2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-
> > Code-tp14853p14863.html
> > Sent from the Apache Flex Users mailing list archive at Nabble.com.
> >
> >
> > ------------------------------
> > If you reply to this email, your message will be added to the discussion
> > below:
> > http://apache-flex-users.2333346.n4.nabble.com/SWF-
> > Debugging-in-Visual-Studio-Code-tp14853p14865.html
> > To start a new topic under Apache Flex Users, email
> > ml-node+s2333346n1h16@n4.nabble.com
> > To unsubscribe from Apache Flex Users, click here
> > <http://apache-flex-users.2333346.n4.nabble.com/
> template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1&code=
> cHJhc2hha3VtYXJAZ21haWwuY29tfDF8LTU0MTcyMzE2NA==>
> > .
> > NAML
> > <http://apache-flex-users.2333346.n4.nabble.com/
> template/NamlServlet.jtp?macro=macro_viewer&id=instant_
> html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.
> BasicNamespace-nabble.view.web.template.NabbleNamespace-
> nabble.view.web.template.NodeNamespace&breadcrumbs=
> notify_subscribers%21nabble%3Aemail.naml-instant_emails%
> 21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> >
>
>
>
>
> -----
> Regards,
> Prashant
> --
> View this message in context: http://apache-flex-users.
> 2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-
> Code-tp14853p14866.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>

Re: SWF Debugging in Visual Studio Code

Posted by PKumar <pr...@gmail.com>.
Regarding nightly build use, if flex_home and nextgenas.sdk.editor  both
are used then VCode gives preference to flex_home. Ideally it should
compile the application with user defined ask not global one. Please
suggest.

On 18-Mar-2017 10:39 PM, "Josh Tynjala [via Apache Flex Users]" <
ml-node+s2333346n14865h0@n4.nabble.com> wrote:

> I tested with a nightly build immediately before the release on both macOS
> and Windows (along with 0.7.0 and a Maven distribution). Unless there was
> a
> major change in the last day or two that I missed, the extension should be
> able to handle a nightly. What happens when you try to use a nightly that
> makes you think it doesn't work?
>
> I'm not sure I'll be able to help with the misleading errors without
> actually seeing them. Can you share the error messages and maybe some of
> the relevant code?
>
> I can double-check the completion in the <fx:Script> block when I'm back
> to
> work on Monday, but I have not encountered this issue before. Considering
> your other issues, I wonder if this is simply a side effect of another
> issue.
>
> - Josh
>
>
> On Mar 18, 2017 9:34 AM, "PKumar" <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=14865&i=0>> wrote:
>
> Josh,
>
> I am using VCode for FlexJS app & library development but I am following
> issues:
>
> Not getting intelligence for <fx:script> tag
> Compile time issues are misleading
> Can not use FlexJS nightly build
>
> Please suggest.
>
> On 18-Mar-2017 5:32 AM, "Josh Tynjala [via Apache Flex Users]" <
> [hidden email] <http:///user/SendEmail.jtp?type=node&node=14865&i=1>>
> wrote:
>
> > Hello, Flex community!
> >
> > I hope you don't mind if I take a moment to plug one of my projects that
> I
> > think many Flex developers here will find useful.
> >
> > As you may recall, I created an ActionScript and MXML extension for
> Visual
> > Studio Code a while back. Originally, my main focus was on creating a
> > development environment for FlexJS. Popular IDEs like Flash Builder and
> > IntelliJ IDEA require jumping through some hoops to work with FlexJS,
> and
> > I
> > wanted to make sure the community has an editor where FlexJS is
> considered
> > a first-class citizen.
> >
> > Well, I know many of you who are interested in FlexJS are also still
> > targeting Adobe AIR and Flash Player with the original Apache Flex SDK.
> > With that in mind, I've been working on ensuring that you can build
> > projects for these runtimes in Visual Studio Code too! Earlier this
> week,
> > I
> > released a big, new update to the extension that adds support for SWF
> > debugging in AIR and Flash Player.
> >
> > When you debug a SWF project in VSCode you'll be able to add
> breakpoints,
> > pause and step through your code, see trace() output in the console,
> > navigate the call stack, and inspect variables. It's a debugger with all
> > the bells and whistles that we've come to expect.
> >
> > For more information about the Visual Studio Code extension, please
> visit
> > the website:
> >
> > https://nextgenactionscript.com/vscode/
> >
> > For instructions about how to create a new project, set up the compiler,
> > and debug any type of Apache Flex app in Adobe AIR and Flash Player,
> visit
> > the Github wiki:
> >
> > https://github.com/BowlerHatLLC/vscode-nextgenas/wiki
> >
> > With the community's help, I can continue working on useful developer
> > tools
> > for ActionScript and MXML. Please join my Patreon campaign to lend a
> hand!
> >
> > https://www.patreon.com/josht
> >
> > Thank you, and happy coding!
> >
> > Josh Tynjala
> > NextGen ActionScript
> >
> > Note: I am an Apache Flex committer and PMC member, but this VSCode
> > extension is not an Apache project. Today, I am simply posting as a
> member
> > of the community who wants to share a cool, independent project that
> > others
> > might enjoy.
> >
> >
> > ------------------------------
> > If you reply to this email, your message will be added to the discussion
> > below:
> > http://apache-flex-users.2333346.n4.nabble.com/SWF-
> > Debugging-in-Visual-Studio-Code-tp14853.html
> > To start a new topic under Apache Flex Users, email
> > [hidden email] <http:///user/SendEmail.jtp?type=node&node=14865&i=2>
> > To unsubscribe from Apache Flex Users, click here
> > <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?
>
> macro=unsubscribe_by_code&node=1&code=cHJhc2hha3VtYXJAZ21haWwuY29tfD
> F8LTU0MTcyMzE2NA==>
> > .
> > NAML
> > <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?
>
> macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&
> base=nabble.naml.namespaces.BasicNamespace-nabble.view.
> web.template.NabbleNamespace-nabble.view.web.template.
> NodeNamespace&breadcrumbs=notify_subscribers%21nabble%
> 3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_
> instant_email%21nabble%3Aemail.naml>
> >
>
>
>
>
> -----
> Regards,
> Prashant
> --
> View this message in context: http://apache-flex-users.
> 2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-
> Code-tp14853p14863.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-flex-users.2333346.n4.nabble.com/SWF-
> Debugging-in-Visual-Studio-Code-tp14853p14865.html
> To start a new topic under Apache Flex Users, email
> ml-node+s2333346n1h16@n4.nabble.com
> To unsubscribe from Apache Flex Users, click here
> <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1&code=cHJhc2hha3VtYXJAZ21haWwuY29tfDF8LTU0MTcyMzE2NA==>
> .
> NAML
> <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




-----
Regards,
Prashant
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-Code-tp14853p14866.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: SWF Debugging in Visual Studio Code

Posted by Josh Tynjala <jo...@gmail.com>.
I tested with a nightly build immediately before the release on both macOS
and Windows (along with 0.7.0 and a Maven distribution). Unless there was a
major change in the last day or two that I missed, the extension should be
able to handle a nightly. What happens when you try to use a nightly that
makes you think it doesn't work?

I'm not sure I'll be able to help with the misleading errors without
actually seeing them. Can you share the error messages and maybe some of
the relevant code?

I can double-check the completion in the <fx:Script> block when I'm back to
work on Monday, but I have not encountered this issue before. Considering
your other issues, I wonder if this is simply a side effect of another
issue.

- Josh


On Mar 18, 2017 9:34 AM, "PKumar" <pr...@gmail.com> wrote:

Josh,

I am using VCode for FlexJS app & library development but I am following
issues:

Not getting intelligence for <fx:script> tag
Compile time issues are misleading
Can not use FlexJS nightly build

Please suggest.

On 18-Mar-2017 5:32 AM, "Josh Tynjala [via Apache Flex Users]" <
ml-node+s2333346n14853h28@n4.nabble.com> wrote:

> Hello, Flex community!
>
> I hope you don't mind if I take a moment to plug one of my projects that I
> think many Flex developers here will find useful.
>
> As you may recall, I created an ActionScript and MXML extension for Visual
> Studio Code a while back. Originally, my main focus was on creating a
> development environment for FlexJS. Popular IDEs like Flash Builder and
> IntelliJ IDEA require jumping through some hoops to work with FlexJS, and
> I
> wanted to make sure the community has an editor where FlexJS is considered
> a first-class citizen.
>
> Well, I know many of you who are interested in FlexJS are also still
> targeting Adobe AIR and Flash Player with the original Apache Flex SDK.
> With that in mind, I've been working on ensuring that you can build
> projects for these runtimes in Visual Studio Code too! Earlier this week,
> I
> released a big, new update to the extension that adds support for SWF
> debugging in AIR and Flash Player.
>
> When you debug a SWF project in VSCode you'll be able to add breakpoints,
> pause and step through your code, see trace() output in the console,
> navigate the call stack, and inspect variables. It's a debugger with all
> the bells and whistles that we've come to expect.
>
> For more information about the Visual Studio Code extension, please visit
> the website:
>
> https://nextgenactionscript.com/vscode/
>
> For instructions about how to create a new project, set up the compiler,
> and debug any type of Apache Flex app in Adobe AIR and Flash Player, visit
> the Github wiki:
>
> https://github.com/BowlerHatLLC/vscode-nextgenas/wiki
>
> With the community's help, I can continue working on useful developer
> tools
> for ActionScript and MXML. Please join my Patreon campaign to lend a hand!
>
> https://www.patreon.com/josht
>
> Thank you, and happy coding!
>
> Josh Tynjala
> NextGen ActionScript
>
> Note: I am an Apache Flex committer and PMC member, but this VSCode
> extension is not an Apache project. Today, I am simply posting as a member
> of the community who wants to share a cool, independent project that
> others
> might enjoy.
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-flex-users.2333346.n4.nabble.com/SWF-
> Debugging-in-Visual-Studio-Code-tp14853.html
> To start a new topic under Apache Flex Users, email
> ml-node+s2333346n1h16@n4.nabble.com
> To unsubscribe from Apache Flex Users, click here
> <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?
macro=unsubscribe_by_code&node=1&code=cHJhc2hha3VtYXJAZ21haWwuY29tfD
F8LTU0MTcyMzE2NA==>
> .
> NAML
> <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?
macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&
base=nabble.naml.namespaces.BasicNamespace-nabble.view.
web.template.NabbleNamespace-nabble.view.web.template.
NodeNamespace&breadcrumbs=notify_subscribers%21nabble%
3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_
instant_email%21nabble%3Aemail.naml>
>




-----
Regards,
Prashant
--
View this message in context: http://apache-flex-users.
2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-Code-tp14853p14863.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: SWF Debugging in Visual Studio Code

Posted by PKumar <pr...@gmail.com>.
Josh,

I am using VCode for FlexJS app & library development but I am following
issues:

Not getting intelligence for <fx:script> tag
Compile time issues are misleading
Can not use FlexJS nightly build

Please suggest.

On 18-Mar-2017 5:32 AM, "Josh Tynjala [via Apache Flex Users]" <
ml-node+s2333346n14853h28@n4.nabble.com> wrote:

> Hello, Flex community!
>
> I hope you don't mind if I take a moment to plug one of my projects that I
> think many Flex developers here will find useful.
>
> As you may recall, I created an ActionScript and MXML extension for Visual
> Studio Code a while back. Originally, my main focus was on creating a
> development environment for FlexJS. Popular IDEs like Flash Builder and
> IntelliJ IDEA require jumping through some hoops to work with FlexJS, and
> I
> wanted to make sure the community has an editor where FlexJS is considered
> a first-class citizen.
>
> Well, I know many of you who are interested in FlexJS are also still
> targeting Adobe AIR and Flash Player with the original Apache Flex SDK.
> With that in mind, I've been working on ensuring that you can build
> projects for these runtimes in Visual Studio Code too! Earlier this week,
> I
> released a big, new update to the extension that adds support for SWF
> debugging in AIR and Flash Player.
>
> When you debug a SWF project in VSCode you'll be able to add breakpoints,
> pause and step through your code, see trace() output in the console,
> navigate the call stack, and inspect variables. It's a debugger with all
> the bells and whistles that we've come to expect.
>
> For more information about the Visual Studio Code extension, please visit
> the website:
>
> https://nextgenactionscript.com/vscode/
>
> For instructions about how to create a new project, set up the compiler,
> and debug any type of Apache Flex app in Adobe AIR and Flash Player, visit
> the Github wiki:
>
> https://github.com/BowlerHatLLC/vscode-nextgenas/wiki
>
> With the community's help, I can continue working on useful developer
> tools
> for ActionScript and MXML. Please join my Patreon campaign to lend a hand!
>
> https://www.patreon.com/josht
>
> Thank you, and happy coding!
>
> Josh Tynjala
> NextGen ActionScript
>
> Note: I am an Apache Flex committer and PMC member, but this VSCode
> extension is not an Apache project. Today, I am simply posting as a member
> of the community who wants to share a cool, independent project that
> others
> might enjoy.
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-flex-users.2333346.n4.nabble.com/SWF-
> Debugging-in-Visual-Studio-Code-tp14853.html
> To start a new topic under Apache Flex Users, email
> ml-node+s2333346n1h16@n4.nabble.com
> To unsubscribe from Apache Flex Users, click here
> <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1&code=cHJhc2hha3VtYXJAZ21haWwuY29tfDF8LTU0MTcyMzE2NA==>
> .
> NAML
> <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




-----
Regards,
Prashant
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-Code-tp14853p14863.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: SWF Debugging in Visual Studio Code

Posted by Josh Tynjala <jo...@gmail.com>.
That's a debugger feature, right? No, I've not implemented that yet.

- Josh

On Sat, Mar 18, 2017 at 5:41 PM, Clint M <cm...@gmail.com> wrote:

> Are watches supposed to work? Just getting a "not available" when I add
> one.
>
> On Fri, Mar 17, 2017 at 4:36 PM, Josh Tynjala <jo...@gmail.com>
> wrote:
>
> > Hello, Flex community!
> >
> > I hope you don't mind if I take a moment to plug one of my projects that
> I
> > think many Flex developers here will find useful.
> >
> > As you may recall, I created an ActionScript and MXML extension for
> Visual
> > Studio Code a while back. Originally, my main focus was on creating a
> > development environment for FlexJS. Popular IDEs like Flash Builder and
> > IntelliJ IDEA require jumping through some hoops to work with FlexJS,
> and I
> > wanted to make sure the community has an editor where FlexJS is
> considered
> > a first-class citizen.
> >
> > Well, I know many of you who are interested in FlexJS are also still
> > targeting Adobe AIR and Flash Player with the original Apache Flex SDK.
> > With that in mind, I've been working on ensuring that you can build
> > projects for these runtimes in Visual Studio Code too! Earlier this
> week, I
> > released a big, new update to the extension that adds support for SWF
> > debugging in AIR and Flash Player.
> >
> > When you debug a SWF project in VSCode you'll be able to add breakpoints,
> > pause and step through your code, see trace() output in the console,
> > navigate the call stack, and inspect variables. It's a debugger with all
> > the bells and whistles that we've come to expect.
> >
> > For more information about the Visual Studio Code extension, please visit
> > the website:
> >
> > https://nextgenactionscript.com/vscode/
> >
> > For instructions about how to create a new project, set up the compiler,
> > and debug any type of Apache Flex app in Adobe AIR and Flash Player,
> visit
> > the Github wiki:
> >
> > https://github.com/BowlerHatLLC/vscode-nextgenas/wiki
> >
> > With the community's help, I can continue working on useful developer
> tools
> > for ActionScript and MXML. Please join my Patreon campaign to lend a
> hand!
> >
> > https://www.patreon.com/josht
> >
> > Thank you, and happy coding!
> >
> > Josh Tynjala
> > NextGen ActionScript
> >
> > Note: I am an Apache Flex committer and PMC member, but this VSCode
> > extension is not an Apache project. Today, I am simply posting as a
> member
> > of the community who wants to share a cool, independent project that
> others
> > might enjoy.
> >
>

Re: SWF Debugging in Visual Studio Code

Posted by Clint M <cm...@gmail.com>.
Are watches supposed to work? Just getting a "not available" when I add one.

On Fri, Mar 17, 2017 at 4:36 PM, Josh Tynjala <jo...@gmail.com> wrote:

> Hello, Flex community!
>
> I hope you don't mind if I take a moment to plug one of my projects that I
> think many Flex developers here will find useful.
>
> As you may recall, I created an ActionScript and MXML extension for Visual
> Studio Code a while back. Originally, my main focus was on creating a
> development environment for FlexJS. Popular IDEs like Flash Builder and
> IntelliJ IDEA require jumping through some hoops to work with FlexJS, and I
> wanted to make sure the community has an editor where FlexJS is considered
> a first-class citizen.
>
> Well, I know many of you who are interested in FlexJS are also still
> targeting Adobe AIR and Flash Player with the original Apache Flex SDK.
> With that in mind, I've been working on ensuring that you can build
> projects for these runtimes in Visual Studio Code too! Earlier this week, I
> released a big, new update to the extension that adds support for SWF
> debugging in AIR and Flash Player.
>
> When you debug a SWF project in VSCode you'll be able to add breakpoints,
> pause and step through your code, see trace() output in the console,
> navigate the call stack, and inspect variables. It's a debugger with all
> the bells and whistles that we've come to expect.
>
> For more information about the Visual Studio Code extension, please visit
> the website:
>
> https://nextgenactionscript.com/vscode/
>
> For instructions about how to create a new project, set up the compiler,
> and debug any type of Apache Flex app in Adobe AIR and Flash Player, visit
> the Github wiki:
>
> https://github.com/BowlerHatLLC/vscode-nextgenas/wiki
>
> With the community's help, I can continue working on useful developer tools
> for ActionScript and MXML. Please join my Patreon campaign to lend a hand!
>
> https://www.patreon.com/josht
>
> Thank you, and happy coding!
>
> Josh Tynjala
> NextGen ActionScript
>
> Note: I am an Apache Flex committer and PMC member, but this VSCode
> extension is not an Apache project. Today, I am simply posting as a member
> of the community who wants to share a cool, independent project that others
> might enjoy.
>

Re: SWF Debugging in Visual Studio Code

Posted by Josh Tynjala <jo...@gmail.com>.
Ha! You're right. That was my mistake after all. Sorry about that!

- Josh

On Mon, Mar 20, 2017 at 8:13 AM, OK <po...@olafkrueger.net> wrote:

> Josh Tynjala wrote
> > I found your issue, Olaf! You should import flash.text.TextField rather
> > than flash.display.TextField.
> >
> > - Josh
>
> Arrghh, good catch! I smash my head at the table... but you have to update
> your wiki [1] ;-)
> Thank you!
>
> Olaf
>
> [1] https://snag.gy/H2W9Ym.jpg
>
>
>
> --
> View this message in context: http://apache-flex-users.
> 2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-
> Code-tp14853p14895.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>

Re: SWF Debugging in Visual Studio Code

Posted by OK <po...@olafkrueger.net>.
Josh Tynjala wrote
> I found your issue, Olaf! You should import flash.text.TextField rather
> than flash.display.TextField.
> 
> - Josh

Arrghh, good catch! I smash my head at the table... but you have to update
your wiki [1] ;-)
Thank you!

Olaf

[1] https://snag.gy/H2W9Ym.jpg



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-Code-tp14853p14895.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: SWF Debugging in Visual Studio Code

Posted by Josh Tynjala <jo...@gmail.com>.
I found your issue, Olaf! You should import flash.text.TextField rather
than flash.display.TextField.

- Josh

On Mon, Mar 20, 2017 at 4:01 AM, OK <po...@olafkrueger.net> wrote:

> Hi Josh,
> thanks for working on this!!!!
>
> I've followed your instructions but get some "Type was not found..." [1]
> errors using Flex 4.16.0.
> Do I miss something [2][3]?
>
> Thanks!
>
> Olaf
>
> [1] Error: https://snag.gy/uq7VLr.jpg
> [2] settings.json: https://snag.gy/1w5fr0.jpg
> [3] tasks.json: https://snag.gy/4Q26Si.jpg
>
>
>
> --
> View this message in context: http://apache-flex-users.
> 2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-
> Code-tp14853p14887.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>

Re: SWF Debugging in Visual Studio Code

Posted by Silvije Mudri <mu...@gmail.com>.
Thank you! 

Silvije
‎
  Originalna poruka  
Šalje: Josh Tynjala
Poslano: četvrtak, 6. travnja 2017. 22:07
Prima: users@flex.apache.org
Odgovor za: users@flex.apache.org
Predmet: Re: Re: SWF Debugging in Visual Studio Code

I cannot say for sure when ANE support will be implemented. When I start
working on the next version of the extension, I'll keep in mind that people
in the community are waiting on it.

- Josh

On Wed, Apr 5, 2017 at 7:34 PM, Silvije Mudri <mu...@gmail.com>
wrote:

> ‎Ok. Thank you.
> Approx. how soon can we expect the plugin update with this feature
> included?
>
> Silvije
>
> Originalna poruka
> Šalje: Josh Tynjala
> Poslano: srijeda, 5. travnja 2017. 21:47
> Prima: users@flex.apache.org
> Odgovor za: users@flex.apache.org
> Predmet: Re: Odgovor: SWF Debugging in Visual Studio Code
>
> The VSCode extension does not currently support the -extdir option when
> running AIR apps in ADL.
>
> There is a feature request to add support for ANEs in a future version:
>
> https://github.com/BowlerHatLLC/vscode-nextgenas/issues/60
>
> - Josh
>
> On Wed, Apr 5, 2017 at 12:39 PM, Silvije Mudri <mu...@gmail.com>
> wrote:
>
> > Hi!
> > ‎
> > I've tried to debug a flex mobile application with profile
> > extendedMobileDevice, but got this error:
> >
> > "The content cannot be loaded because there was a problem loading an
> > extension: Error: Requested extension com.freshplanet.AirNetworkInfo
> could
> > not be found."
> >
> > Can someone tell me where can I specify -extdir parameter (required by
> > adl) in launch.json?
> >
> > Silvije
> > ‎
> > ‎
> > Originalna poruka
> > Šalje: piotrz
> > Poslano: utorak, 21. ožujka 2017. 23:02
> > Prima: users@flex.apache.org
> > Odgovor za: users@flex.apache.org
> > Predmet: Re: SWF Debugging in Visual Studio Code
> >
> > Hi Olaf,
> >
> > Once I modify some file I am able jump to the other files which are part
> of
> > my project. Unfortunately it wasn't help for the framework components - I
> > still cannot jump to any of them.
> >
> > Piotr
> >
> >
> >
> > -----
> > Apache Flex PMC
> > piotrzarzycki21@gmail.com
> > --
> > View this message in context: http://apache-flex-users.
> > 2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-
> > Code-tp14853p14913.html
> > Sent from the Apache Flex Users mailing list archive at Nabble.com.
> >
>

Re: Re: SWF Debugging in Visual Studio Code

Posted by Josh Tynjala <jo...@gmail.com>.
I cannot say for sure when ANE support will be implemented. When I start
working on the next version of the extension, I'll keep in mind that people
in the community are waiting on it.

- Josh

On Wed, Apr 5, 2017 at 7:34 PM, Silvije Mudri <mu...@gmail.com>
wrote:

> ‎Ok. Thank you.
> Approx. how soon can we expect the plugin update with this feature
> included?
>
> Silvije
>
>   Originalna poruka
> Šalje: Josh Tynjala
> Poslano: srijeda, 5. travnja 2017. 21:47
> Prima: users@flex.apache.org
> Odgovor za: users@flex.apache.org
> Predmet: Re: Odgovor: SWF Debugging in Visual Studio Code
>
> The VSCode extension does not currently support the -extdir option when
> running AIR apps in ADL.
>
> There is a feature request to add support for ANEs in a future version:
>
> https://github.com/BowlerHatLLC/vscode-nextgenas/issues/60
>
> - Josh
>
> On Wed, Apr 5, 2017 at 12:39 PM, Silvije Mudri <mu...@gmail.com>
> wrote:
>
> > Hi!
> > ‎
> > I've tried to debug a flex mobile application with profile
> > extendedMobileDevice, but got this error:
> >
> > "The content cannot be loaded because there was a problem loading an
> > extension: Error: Requested extension com.freshplanet.AirNetworkInfo
> could
> > not be found."
> >
> > Can someone tell me where can I specify -extdir parameter (required by
> > adl) in launch.json?
> >
> > Silvije
> > ‎
> > ‎
> > Originalna poruka
> > Šalje: piotrz
> > Poslano: utorak, 21. ožujka 2017. 23:02
> > Prima: users@flex.apache.org
> > Odgovor za: users@flex.apache.org
> > Predmet: Re: SWF Debugging in Visual Studio Code
> >
> > Hi Olaf,
> >
> > Once I modify some file I am able jump to the other files which are part
> of
> > my project. Unfortunately it wasn't help for the framework components - I
> > still cannot jump to any of them.
> >
> > Piotr
> >
> >
> >
> > -----
> > Apache Flex PMC
> > piotrzarzycki21@gmail.com
> > --
> > View this message in context: http://apache-flex-users.
> > 2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-
> > Code-tp14853p14913.html
> > Sent from the Apache Flex Users mailing list archive at Nabble.com.
> >
>

Re: Re: SWF Debugging in Visual Studio Code

Posted by Silvije Mudri <mu...@gmail.com>.
‎Ok. Thank you. 
Approx. how soon can we expect the plugin update with this feature included?

Silvije

  Originalna poruka  
Šalje: Josh Tynjala
Poslano: srijeda, 5. travnja 2017. 21:47
Prima: users@flex.apache.org
Odgovor za: users@flex.apache.org
Predmet: Re: Odgovor: SWF Debugging in Visual Studio Code

The VSCode extension does not currently support the -extdir option when
running AIR apps in ADL.

There is a feature request to add support for ANEs in a future version:

https://github.com/BowlerHatLLC/vscode-nextgenas/issues/60

- Josh

On Wed, Apr 5, 2017 at 12:39 PM, Silvije Mudri <mu...@gmail.com>
wrote:

> Hi!
> ‎
> I've tried to debug a flex mobile application with profile
> extendedMobileDevice, but got this error:
>
> "The content cannot be loaded because there was a problem loading an
> extension: Error: Requested extension com.freshplanet.AirNetworkInfo could
> not be found."
>
> Can someone tell me where can I specify -extdir parameter (required by
> adl) in launch.json?
>
> Silvije
> ‎
> ‎
> Originalna poruka
> Šalje: piotrz
> Poslano: utorak, 21. ožujka 2017. 23:02
> Prima: users@flex.apache.org
> Odgovor za: users@flex.apache.org
> Predmet: Re: SWF Debugging in Visual Studio Code
>
> Hi Olaf,
>
> Once I modify some file I am able jump to the other files which are part of
> my project. Unfortunately it wasn't help for the framework components - I
> still cannot jump to any of them.
>
> Piotr
>
>
>
> -----
> Apache Flex PMC
> piotrzarzycki21@gmail.com
> --
> View this message in context: http://apache-flex-users.
> 2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-
> Code-tp14853p14913.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>

Re: Odgovor: SWF Debugging in Visual Studio Code

Posted by Josh Tynjala <jo...@gmail.com>.
The VSCode extension does not currently support the -extdir option when
running AIR apps in ADL.

There is a feature request to add support for ANEs in a future version:

https://github.com/BowlerHatLLC/vscode-nextgenas/issues/60

- Josh

On Wed, Apr 5, 2017 at 12:39 PM, Silvije Mudri <mu...@gmail.com>
wrote:

> Hi!
> ‎
> I've tried to debug a flex mobile application with profile
> extendedMobileDevice, but got this error:
>
> "The content cannot be loaded because there was a problem loading an
> extension: Error: Requested extension com.freshplanet.AirNetworkInfo could
> not be found."
>
> Can someone tell me where can I specify -extdir parameter (required by
> adl) in launch.json?
>
> Silvije
> ‎
> ‎
>   Originalna poruka
> Šalje: piotrz
> Poslano: utorak, 21. ožujka 2017. 23:02
> Prima: users@flex.apache.org
> Odgovor za: users@flex.apache.org
> Predmet: Re: SWF Debugging in Visual Studio Code
>
> Hi Olaf,
>
> Once I modify some file I am able jump to the other files which are part of
> my project. Unfortunately it wasn't help for the framework components - I
> still cannot jump to any of them.
>
> Piotr
>
>
>
> -----
> Apache Flex PMC
> piotrzarzycki21@gmail.com
> --
> View this message in context: http://apache-flex-users.
> 2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-
> Code-tp14853p14913.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>

Odgovor: SWF Debugging in Visual Studio Code

Posted by Silvije Mudri <mu...@gmail.com>.
Hi!
‎
I've tried to debug a flex mobile application with profile extendedMobileDevice, but got this error:

"The content cannot be loaded because there was a problem loading an extension: Error: Requested extension com.freshplanet.AirNetworkInfo could not be found."

Can someone tell me where can I specify -extdir parameter (required by adl) in launch.json?

Silvije 
‎
‎
  Originalna poruka  
Šalje: piotrz
Poslano: utorak, 21. ožujka 2017. 23:02
Prima: users@flex.apache.org
Odgovor za: users@flex.apache.org
Predmet: Re: SWF Debugging in Visual Studio Code

Hi Olaf,

Once I modify some file I am able jump to the other files which are part of
my project. Unfortunately it wasn't help for the framework components - I
still cannot jump to any of them.

Piotr



-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-Code-tp14853p14913.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: SWF Debugging in Visual Studio Code

Posted by piotrz <pi...@gmail.com>.
Hi Olaf,

Once I modify some file I am able jump to the other files which are part of
my project. Unfortunately it wasn't help for the framework components - I
still cannot jump to any of them.

Piotr



-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-Code-tp14853p14913.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: SWF Debugging in Visual Studio Code

Posted by piotrz <pi...@gmail.com>.
Olaf,

Do you experience my issue?

Thanks,
Piotr



-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-Code-tp14853p14910.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: SWF Debugging in Visual Studio Code

Posted by OK <po...@olafkrueger.net>.
>I bet I know what it is. asconfigc 0.4.0 requires Node 6.0 or newer.

Josh, you're right! Node newer 6.0 is required:
I've updated from 5.x to the latest version and now I'm able to update to
asconfigc 0.4.0. :-)

Many thanks, keep up that great work!

Olaf



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-Code-tp14853p14908.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: SWF Debugging in Visual Studio Code

Posted by Josh Tynjala <jo...@gmail.com>.
I bet I know what it is. asconfigc 0.4.0 requires Node 6.0 or newer. You
probably have an older version of Node installed.

- Josh

On Mon, Mar 20, 2017 at 9:01 AM, OK <po...@olafkrueger.net> wrote:

> Josh Tynjala wrote
> > npm install -g asconfigc@0.4.0
>
> Strange, this returns an error to me with the hint that version 0.4.0 is
> not
> there [1].
> Will still give it another try after reboot...
>
> Thank you,
> Olaf
>
>
> [1] https://snag.gy/LgpUWx.jpg
>
>
>
> --
> View this message in context: http://apache-flex-users.
> 2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-
> Code-tp14853p14903.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>

Re: SWF Debugging in Visual Studio Code

Posted by OK <po...@olafkrueger.net>.
Josh Tynjala wrote
> npm install -g asconfigc@0.4.0

Strange, this returns an error to me with the hint that version 0.4.0 is not
there [1].
Will still give it another try after reboot...

Thank you,
Olaf


[1] https://snag.gy/LgpUWx.jpg



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-Code-tp14853p14903.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: SWF Debugging in Visual Studio Code

Posted by Josh Tynjala <jo...@gmail.com>.
Version 0.3.0 of asconfigc was still perfectly capable of compiling an
application. That version just doesn't have some of the new features in
0.4.0, like copying asset files to your output folder or populating an AIR
application descriptor's content field.

I should also point out that the fact that asconfigc's and the VSCode
extension's version numbers are both 0.4.0 is a coincidence. They are
separate projects and their version numbers are not required to match in
order to work.

I see from your screenshot that NPM is indeed installing 0.3.0, for some
reason. I don't know why it would do that when there's a new version. Maybe
you can try the following command to force it to install the correct
version:

npm install -g asconfigc@0.4.0

- Josh

On Mon, Mar 20, 2017 at 8:26 AM, OK <po...@olafkrueger.net> wrote:

> Forgot to mention:
> The example is working after fixing the typo.... but using version 0.3.0?!
>
> Olaf
>
>
>
> --
> View this message in context: http://apache-flex-users.
> 2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-
> Code-tp14853p14897.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>

Re: SWF Debugging in Visual Studio Code

Posted by OK <po...@olafkrueger.net>.
Forgot to mention:
The example is working after fixing the typo.... but using version 0.3.0?!

Olaf



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-Code-tp14853p14897.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: SWF Debugging in Visual Studio Code

Posted by OK <po...@olafkrueger.net>.
>Make sure to use the -g flag when you uninstall before you try to reinstall. 
Still version 0.3.0 is outputted [1]
But I have to say that I'm not so familiar with node modules.
I will reboot later and give it another try...

Thanks,
Olaf


[1] https://snag.gy/siD1un.jpg



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-Code-tp14853p14896.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: SWF Debugging in Visual Studio Code

Posted by Josh Tynjala <jo...@gmail.com>.
You should definitely see 0.4.0 when you run asconfigc -v.

Make sure to use the -g flag when you uninstall before you try to reinstall.

npm uninstall -g asconfigc
npm install -g asconfigc

- Josh

On Mon, Mar 20, 2017 at 7:59 AM, OK <po...@olafkrueger.net> wrote:

> Here it is [1].
>
> BTW:
> I've noticed that the npm package manager says that 0.4.0 is the latest
> version of asconfigc.
> I tried to update, uninstall, and install asconfigc on my local machine,
> but
> "asconfigc -v" always returns version "0.3.0"... is that my fault?
>
> Thanks!
>
> Olaf
>
> [1] asconfig.json: https://snag.gy/2haDCm.jpg
>
>
>
> --
> View this message in context: http://apache-flex-users.
> 2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-
> Code-tp14853p14892.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>

Re: SWF Debugging in Visual Studio Code

Posted by OK <po...@olafkrueger.net>.
Here it is [1].

BTW:
I've noticed that the npm package manager says that 0.4.0 is the latest
version of asconfigc.
I tried to update, uninstall, and install asconfigc on my local machine, but
"asconfigc -v" always returns version "0.3.0"... is that my fault?

Thanks!

Olaf

[1] asconfig.json: https://snag.gy/2haDCm.jpg



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-Code-tp14853p14892.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: SWF Debugging in Visual Studio Code

Posted by Josh Tynjala <jo...@gmail.com>.
Hi Olaf,

Can you share your asconfig.json too?

- Josh


On Mar 20, 2017 4:09 AM, "OK" <po...@olafkrueger.net> wrote:

Hi Josh,
thanks for working on this!!!!

I've followed your instructions but get some "Type was not found..." [1]
errors using Flex 4.16.0.
Do I miss something [2][3]?

Thanks!

Olaf

[1] Error: https://snag.gy/uq7VLr.jpg
[2] settings.json: https://snag.gy/1w5fr0.jpg
[3] tasks.json: https://snag.gy/4Q26Si.jpg



--
View this message in context: http://apache-flex-users.
2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-Code-tp14853p14887.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: SWF Debugging in Visual Studio Code

Posted by OK <po...@olafkrueger.net>.
Hi Josh,
thanks for working on this!!!!

I've followed your instructions but get some "Type was not found..." [1] 
errors using Flex 4.16.0.
Do I miss something [2][3]?

Thanks!

Olaf

[1] Error: https://snag.gy/uq7VLr.jpg
[2] settings.json: https://snag.gy/1w5fr0.jpg 
[3] tasks.json: https://snag.gy/4Q26Si.jpg



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/SWF-Debugging-in-Visual-Studio-Code-tp14853p14887.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.