Code Monkey home page Code Monkey logo

as3shebang's Issues

error line numbers is skewed

Because as3shebang wrap the main executing script into a custom wrapper
to allow nice colors and stuff

if an error occurs, the line number is skewed

verify errors are not colorized

When a script dynamically load definitions

for example

#!/usr/bin/env as3shebang -el -ec

import shell.*;

var person_loaded:Boolean = Runtime.load( "Person.swf" );
trace( "Person loaded: " + person_loaded );

import test.as3examples.*;

var p1:Person = new Person( "John Doe", 21 );
trace( "p1 = " + p1 );

because the definition is in "Person.swf"

the line

var p1:Person = new Person( "John Doe", 21 );

will generate a VerifyError

error with include directive

if you try to include a file
include "test.as";

you will receive the error
SyntaxError: (eval string):2: Syntax error: The 'include' directive is only allowed in programs whose origin is a file

syntax error are not caught

same for the verify errors, those errors occur in the outer scope of the script

for example

#!/usr/bin/env as3shebang -el -ec

import shell.*;

trace( "hello world" );

# something here

would generate the error

SyntaxError: (eval string):13: Syntax error: Illegal character in input: #
	at shell::Runtime$/returnEval()
	at corsaair.tools.as3shebang::App/main()
	at global$init()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.