glavin001 / atom-coffeescript-preview Goto Github PK
View Code? Open in Web Editor NEWDEPRECATED: Preview what your CoffeeScript will look like as JavaScript
Home Page: https://atom.io/packages/coffeescript-preview
License: MIT License
DEPRECATED: Preview what your CoffeeScript will look like as JavaScript
Home Page: https://atom.io/packages/coffeescript-preview
License: MIT License
Hope for this feature.
Uncaught TypeError: undefined is not a function
Atom Version: 0.161.0
System: Mac OS X 10.10.1
Thrown From: coffeescript-preview package, v1.0.0
At /Users/Laboratory/.atom/packages/coffeescript-preview/lib/coffeescript-preview-view.coffee:146
TypeError: undefined is not a function
at CoffeePreviewView.module.exports.CoffeePreviewView.renderHTMLCode (/Users/Laboratory/.atom/packages/coffeescript-preview/lib/coffeescript-preview-view.coffee:146:18)
at CoffeePreviewView.renderHTMLCode (/Users/Laboratory/.atom/packages/coffeescript-preview/lib/coffeescript-preview-view.coffee:1:1)
at later (/Applications/Atom.app/Contents/Resources/app/node_modules/underscore-plus/node_modules/underscore/underscore.js:724:25)
/cc @atom/core
Continuation of #5
I'm just imagining some use-cases.. maybe we could modularize this atom plugin to work for any transpiler language.. CoffeeScript, LESS, SASS, etc..?
The context menu CSON format has changed. Please see
https://atom.io/docs/api/latest/ContextMenuManager
Enhancement request to implement a (configurable) delay for Update On Tab Change. I see too many compilation errors because I pause too long after typing an operator. Thanks.
In menus/context.cson: Use the atom-workspace
tag instead of the workspace
class.
previewPane
always has the value undefined
after line 73 in coffeescript-preview.coffee. I haven't been able to figure out how to fix it though.
Here's why it needs to be fixed:
I have a CoffeeScript file open, I open the command palette, and choose CoffeeScript Preview: Toggle. A CoffeeScript preview tab appears to the right of the CoffeeScript file. Perfect.
I run the CoffeeScript Preview: Toggle command again. A new CoffeeScript Preview tab appears on top of the current one.
I close both CoffeeScript Preview tabs, then run the Toggle command again. Now there are three CoffeeScript Preview tabs!
Repeat, now there's four! Eventually Atom stops responding after so many have opened.
I close Atom, re-open it, open my CoffeeScript file, run the Toggle command—only one CoffeeScript Preview tab opens...
Yet the cycle continues.
[Enter steps to reproduce below:]
Atom Version: 0.194.0
System: Mac OS X 10.10.3
Thrown From: coffeescript-preview package, v1.0.0
Failed to load the coffeescript-preview package
At Cannot read property 'prototype' of undefined
TypeError: Cannot read property 'prototype' of undefined
at __extends (/Users/vijay/.atom/packages/coffeescript-preview/lib/coffeescript-preview-view.coffee:5:199)
at /Users/vijay/.atom/packages/coffeescript-preview/lib/coffeescript-preview-view.coffee:8:3
at Object.<anonymous> (/Users/vijay/.atom/packages/coffeescript-preview/lib/coffeescript-preview-view.coffee:287:5)
at Object.<anonymous> (/Users/vijay/.atom/packages/coffeescript-preview/lib/coffeescript-preview-view.coffee:1:1)
at Module._compile (module.js:452:26)
at Object.requireCoffeeScript (/usr/local/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/node_modules/coffee-cash/lib/coffee-cash.js:85:19)
at Module.load (module.js:347:32)
at Function.Module._load (module.js:302:12)
at Module.require (module.js:357:17)
at require (module.js:376:17)
at Object.<anonymous> (/Users/vijay/.atom/packages/coffeescript-preview/lib/coffeescript-preview.coffee:10:21)
at Object.<anonymous> (/Users/vijay/.atom/packages/coffeescript-preview/lib/coffeescript-preview.coffee:1:1)
at Module._compile (module.js:452:26)
at Object.requireCoffeeScript (/usr/local/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/node_modules/coffee-cash/lib/coffee-cash.js:85:19)
at Module.load (module.js:347:32)
at Function.Module._load (module.js:302:12)
at Module.require (module.js:357:17)
at require (module.js:376:17)
at Package.module.exports.Package.requireMainModule (/usr/local/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/package.js:677:34)
at /usr/local/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/package.js:170:28
at Package.module.exports.Package.measure (/usr/local/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/package.js:147:15)
at Package.module.exports.Package.load (/usr/local/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/package.js:161:12)
at PackageManager.module.exports.PackageManager.loadPackage (/usr/local/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/package-manager.js:354:14)
at PackageManager.module.exports.PackageManager.loadPackages (/usr/local/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/package-manager.js:324:14)
at Atom.module.exports.Atom.startEditorWindow (/usr/local/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/atom.js:620:21)
at Object.<anonymous> (/usr/local/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/window-bootstrap.js:12:8)
at Object.<anonymous> (/usr/local/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/window-bootstrap.js:23:4)
at Module._compile (module.js:452:26)
at Object.loadFile [as .js] (/usr/local/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/babel.js:162:21)
at Module.load (module.js:347:32)
at Function.Module._load (module.js:302:12)
at Module.require (module.js:357:17)
at require (module.js:376:17)
at window.onload (file:///usr/local/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/static/index.js:54:25)
{
"core": {
"excludeVcsIgnoredPaths": false,
"followSymlinks": true,
"disabledPackages": [
"language-c",
"archive-view",
"welcome",
"jshint",
"language-clojure",
"language-coffee-script",
"language-gfm",
"language-make",
"language-mustache",
"language-objective-c",
"language-perl",
"language-php",
"language-python",
"language-toml",
"package-generator",
"save-session"
],
"ignoredNames": [
".git",
".hg",
".svn",
".DS_Store",
"coverage",
"tmp/",
"log/"
],
"themes": [
"atom-light-ui",
"one-dark-syntax"
]
},
"coffeescript-preview": {}
}
# User
auto-update-packages, v0.2.2
autocomplete-plus-async, v0.22.0
change-case, v0.5.1
clipboard-history, v0.6.4
coffee-compile, v0.13.0
coffeescript-preview, v1.0.0
file-icons, v1.5.4
git-blame, v0.4.0
git-tab-status, v1.7.0
highlight-line, v0.10.2
highlight-selected, v0.9.2
language-rspec, v0.3.0
linter, v0.12.1
linter-csslint, v0.0.11
linter-golint, v0.2.0
linter-jshint, v0.1.2
linter-less, v0.3.1
linter-rubocop, v0.2.2
linter-scss-lint, v0.0.14
minimap, v4.7.6
minimap-git-diff, v4.1.2
rails-rspec, v0.3.1
recent-files, v0.3.0
ruby-block-converter, v3.3.0
ruby-syntax-replacer, v0.3.2
search-all-keybindings, v0.1.1
symbols-tree-view, v0.9.2
syntax-settings, v0.7.1
tab-history, v0.4.0
tree-ignore, v0.2.5
# Dev
No dev packages
Since I have deprecated CoffeeScript Preview, there have been almost 100 more downloads. Those users must migrate over to Preview. Let's display a big message that will instruct users how and why to migrate over and see how that goes.
Follow scroll of CoffeeScript tab and sync to JS tab
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.