hu9o / brackets-es6-autocompile Goto Github PK
View Code? Open in Web Editor NEWAutomatic ES6 to ES5 compilation for Brackets
Automatic ES6 to ES5 compilation for Brackets
This extension its awesome and i think if its posible use path, compress and maps like stylus autocompile in this link: https://github.com/phoenix3008/stylus-autocompile
Originally, I renamed a .js file to .es6 and then compiling stopped. I had been creating files as .es6 and had accidentally done .js, so I was correcting that when it happened. What's odd is, if it happens and then I copy all the .es6 files to a fresh directory, open that folder in brackets, and click the file, it goes back to compiling just fine. I did several variations in fresh directories, and once it stops compiling, the only thing that would work was to move them to a fresh directory. I've also tried deleting the .js file and sometimes the compiling would stop. I'd say 70% of the time one of those two things will freeze the compiler. The other 30%, deleting the file or renaming did fine and it kept working.
This may be more Brackets related, but no errors are produced until the compiles stop. Here's what I keep seeing:
Exception in 'currentFileChange' listener on Object {on: function, off: function, one: function, trigger: function, _EventDispatcher: true…} TypeError: Cannot read property 'fullPath' of null TypeError: Cannot read property 'fullPath' of null
at fileChangeHandler (file:///C:/Users/ergose/AppData/Roaming/Brackets/extensions/user/vcfvct.brackets-file-format/main.js:85:56)
at Object.trigger (/utils/EventDispatcher.js:233:40)
at eval (/view/MainViewManager.js:1109:29)
at Pane.trigger (/utils/EventDispatcher.js:233:40)
at Pane._notifyCurrentViewChange (/view/Pane.js:893:14)
at Pane._reset (/view/Pane.js:1315:18)
at eval (/view/MainViewManager.js:1378:18)
at eval (/thirdparty/lodash.js:26:23)
at _t (/thirdparty/lodash.js:14:392)
at eval (/thirdparty/lodash.js:25:369)ErrorNotification.js:125 window.console.error/utils/EventDispatcher.js:235 trigger/view/MainViewManager.js:1109 (anonymous function)/utils/EventDispatcher.js:233 trigger/view/Pane.js:893 Pane._notifyCurrentViewChange/view/Pane.js:1315 Pane._reset/view/MainViewManager.js:1378 (anonymous function)/thirdparty/lodash.js:26 (anonymous function)/thirdparty/lodash.js:14 _t/thirdparty/lodash.js:25 (anonymous function)/thirdparty/lodash.js:30 (anonymous function)/view/MainViewManager.js:492 _forEachPaneOrPanes/view/MainViewManager.js:1372 _closeAll/project/ProjectManager.js:869 _loadProject/project/ProjectManager.js:1026 (anonymous function)/filesystem/impls/appshell/AppshellFileSystem.js:187 (anonymous function)
/utils/EventDispatcher.js:236 Assertion failed:/utils/EventDispatcher.js:236 trigger/view/MainViewManager.js:1109 (anonymous function)/utils/EventDispatcher.js:233 trigger/view/Pane.js:893 Pane._notifyCurrentViewChange/view/Pane.js:1315 Pane._reset/view/MainViewManager.js:1378 (anonymous function)/thirdparty/lodash.js:26 (anonymous function)/thirdparty/lodash.js:14 _t/thirdparty/lodash.js:25 (anonymous function)/thirdparty/lodash.js:30 (anonymous function)/view/MainViewManager.js:492 _forEachPaneOrPanes/view/MainViewManager.js:1372 _closeAll/project/ProjectManager.js:869 _loadProject/project/ProjectManager.js:1026 (anonymous function)/filesystem/impls/appshell/AppshellFileSystem.js:187 (anonymous function)
ScopeManager.js:1073 Worker: Error thrown in tern_worker:undefined is not a function
TypeError: undefined is not a function
at infer (file:///C:/Program%20Files%20(x86)/Brackets/www/extensions/default/JavaScriptCodeHints/thirdparty/tern/lib/infer.js:1100:39)
at file:///C:/Program%20Files%20(x86)/Brackets/www/extensions/default/JavaScriptCodeHints/thirdparty/tern/lib/infer.js:965:14
at Object.SequenceExpression (file:///C:/Program%20Files%20(x86)/Brackets/www/extensions/default/JavaScriptCodeHints/thirdparty/tern/lib/infer.js:906:15)
at infer (file:///C:/Program%20Files%20(x86)/Brackets/www/extensions/default/JavaScriptCodeHints/thirdparty/tern/lib/infer.js:1100:39)
at propName (file:///C:/Program%20Files%20(x86)/Brackets/www/extensions/default/JavaScriptCodeHints/thirdparty/tern/lib/infer.js:873:12)
at file:///C:/Program%20Files%20(x86)/Brackets/www/extensions/default/JavaScriptCodeHints/thirdparty/tern/lib/infer.js:994:17
at Object.AssignmentExpression (file:///C:/Program%20Files%20(x86)/Brackets/www/extensions/default/JavaScriptCodeHints/thirdparty/tern/lib/infer.js:906:15)
at infer (file:///C:/Program%20Files%20(x86)/Brackets/www/extensions/default/JavaScriptCodeHints/thirdparty/tern/lib/infer.js:1100:39)
at Object.walk.make.Expression (file:///C:/Program%20Files%20(x86)/Brackets/www/extensions/default/JavaScriptCodeHints/thirdparty/tern/lib/infer.js:1105:7)
at c (file:///C:/Program%20Files%20(x86)/Brackets/www/extensions/default/JavaScriptCodeHints/thirdparty/acorn/util/walk.js:60:37)
This is the other variation I keep seeing (event dispatcher only has 'trigger'):
Exception in 'currentFileChange' listener on Object TypeError: Cannot read property 'fullPath' of null TypeError: Cannot read property 'fullPath' of null
at fileChangeHandler (file:///C:/Users/ergose/AppData/Roaming/Brackets/extensions/user/vcfvct.brackets-file-format/main.js:85:56)
at Object.trigger (/utils/EventDispatcher.js:233:40)
at eval (/view/MainViewManager.js:1109:29)
at Pane.trigger (/utils/EventDispatcher.js:233:40)
at Pane._notifyCurrentViewChange (/view/Pane.js:893:14)
at Pane._reset (/view/Pane.js:1315:18)
at eval (/view/MainViewManager.js:1378:18)
at eval (/thirdparty/lodash.js:26:23)
at _t (/thirdparty/lodash.js:14:392)
at eval (/thirdparty/lodash.js:25:369)
/utils/EventDispatcher.js:236 Assertion failed:/utils/EventDispatcher.js:236 trigger
extensions/default/JavaScriptCodeHints/ScopeManager.js:1073 Worker: Error thrown in tern_worker:undefined is not a function
TypeError: undefined is not a function
at infer (file:///C:/Program%20Files%20(x86)/Brackets/www/extensions/default/JavaScriptCodeHints/thirdparty/tern/lib/infer.js:1100:39)
at file:///C:/Program%20Files%20(x86)/Brackets/www/extensions/default/JavaScriptCodeHints/thirdparty/tern/lib/infer.js:965:14
at Object.SequenceExpression (file:///C:/Program%20Files%20(x86)/Brackets/www/extensions/default/JavaScriptCodeHints/thirdparty/tern/lib/infer.js:906:15)
at infer (file:///C:/Program%20Files%20(x86)/Brackets/www/extensions/default/JavaScriptCodeHints/thirdparty/tern/lib/infer.js:1100:39)
at propName (file:///C:/Program%20Files%20(x86)/Brackets/www/extensions/default/JavaScriptCodeHints/thirdparty/tern/lib/infer.js:873:12)
at file:///C:/Program%20Files%20(x86)/Brackets/www/extensions/default/JavaScriptCodeHints/thirdparty/tern/lib/infer.js:994:17
at Object.AssignmentExpression (file:///C:/Program%20Files%20(x86)/Brackets/www/extensions/default/JavaScriptCodeHints/thirdparty/tern/lib/infer.js:906:15)
at infer (file:///C:/Program%20Files%20(x86)/Brackets/www/extensions/default/JavaScriptCodeHints/thirdparty/tern/lib/infer.js:1100:39)
at Object.walk.make.Expression (file:///C:/Program%20Files%20(x86)/Brackets/www/extensions/default/JavaScriptCodeHints/thirdparty/tern/lib/infer.js:1105:7)
at c (file:///C:/Program%20Files%20(x86)/Brackets/www/extensions/default/JavaScriptCodeHints/thirdparty/acorn/util/walk.js:60:37)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.