Giter VIP home page Giter VIP logo

atom-coffeescript-preview's People

Contributors

glavin001 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

atom-coffeescript-preview's Issues

Uncaught TypeError: undefined is not a function

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

Steps To Reproduce

  1. ...
  2. ...

Stack Trace

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

Implement a delay for Update On Tab Change

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.

Failed to load the coffeescript-preview package

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 0.194.0 ⚠️ in 1.0 API Preview Mode ⚠️
System: Mac OS X 10.10.3
Thrown From: coffeescript-preview package, v1.0.0

Stack Trace

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)

Commands

Config

{
  "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": {}
}

Installed Packages

# 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

Possible modularity?

I'm just imagining some use-cases.. maybe we could modularize this atom plugin to work for any transpiler language.. CoffeeScript, LESS, SASS, etc..?

Toggle command opens a new preview tab instead of closing the current one

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.

Not using active syntax theme

Hi,

This is a great package.
One little issue to note would be that the preview doesn't seem to use the actual syntax theme, in terms of the font and colors:
image

Any chance this can be adopted?

Display Deprecation message on run

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.

Font size larger than editor

Great package, very useful.

When I trigger the preview, the font size is always bigger than the actual editor. I know there seems to have been an issue with this in the past with issue #5 and #6 but I'm not sure if this is related.

Let me know what you need to diagnose / fix this.

screen shot 2014-07-26 at 14 48 50

Package Loading slow

2014-07-09 9 44 22

considering use activationEvents to delay loading.

activationEvents (Optional): an Array of Strings identifying events that trigger your package's activation. You can delay the loading of your package until one of these events is triggered.

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.