snowkit / atom-flow

atom.io support for haxe flow build tool
MIT License
6 stars 5 forks source link

Package causes Atom session to not be saved #15

Open undefinist opened 8 years ago

undefinist commented 8 years ago

It seems that the issue is caused by flow-state not serializing, and causing an error somewhere in Atom where it cannot store that data in a db. I've fixed it by changing flow.js to return state.serialize(), where state.serialize is the following

serialize:function() {
    return {
        project_path: this.project_path,
        target: this.target,
        system: this.system,
        is_consumer: this.is_consumer,

        flags: {
            debug: this.flags.debug,
            verbose: this.flags.verbose,
            build_only: this.flags.build_only,
            launch_only: this.flags.launch_only
        }
    }
},

Submitting as an issue because I'm not sure if anyone's facing these issues.

ruby0x1 commented 8 years ago

Will have a look thanks!