Giter VIP home page Giter VIP logo

jade-beautify's People

Contributors

mattolde avatar vingorius avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mattolde sidbala

jade-beautify's Issues

Uncaught TypeError: Cannot read property 'getPath' of undefined

  1. Install git-projects
  2. Ctrl+Alt+O
  3. Jade Error appears

I know it sounds unrelated, but that's the reproducible steps

Atom Version: 1.0.19
System: Ubuntu 15.04
Thrown From: jade-beautify package, v0.0.11

Stack Trace

Uncaught TypeError: Cannot read property 'getPath' of undefined

At /home/andrew/.atom/packages/jade-beautify/lib/jade-beautify.js:37

TypeError: Cannot read property 'getPath' of undefined
  at Object.jadeBeautify.isJadeFile (/home/andrew/.atom/packages/jade-beautify/lib/jade-beautify.js:37:42)
  at atom-workspace.jadeBeautify.convert (/home/andrew/.atom/packages/jade-beautify/lib/jade-beautify.js:53:21)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app.asar/src/command-registry.js:245:29)
  at /usr/share/atom/resources/app.asar/src/command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/usr/share/atom/resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:524:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/usr/share/atom/resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:347:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/usr/share/atom/resources/app.asar/src/window-event-handler.js:184:20)

Commands

  3x -0:42.9.0 incompatible-packages:view (div.incompatible-packages-status.inline-block.text.text-error)
     -0:01.0 jade-beautify:convert (div.incompatible-packages.padded.native-key-bindings)

Config

{
  "core": {
    "autoHideMenuBar": true
  }
}

Installed Packages

# User
Stylus, v1.2.1
atom-jade, v0.3.0
color-picker, v2.0.13
editor-stats, v0.17.0
editorconfig, v1.2.0
emmet, v2.3.13
file-icons, v1.6.9
formatter-coffeescript, v0.1.1
grunt-runner, v0.11.0
highlight-line, v0.11.0
jade-beautify, v0.0.11
javascript-snippets, v1.0.0
linter, v1.8.1
linter-coffeescript, v1.0.0
linter-stylint, v2.0.1
markdown-preview-plus, v2.2.0
minimap, v4.13.4
minimap-pigments, v0.1.7
pigments, v0.15.0
terminal-status, v1.6.8

# Dev
No dev packages

Add auto beautify on save

Please add settings pane and auto beautify on save setting. This is useful, especially when you work in a team and someone forgets to beautify a file.

Uncaught TypeError: Cannot read property 'endsWith' of undefined

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.0.11
System: Mac OS X 10.10.5
Thrown From: jade-beautify package, v0.0.10

Stack Trace

Uncaught TypeError: Cannot read property 'endsWith' of undefined

At /Users/bmz/.atom/packages/jade-beautify/lib/jade-beautify.js:37

TypeError: Cannot read property 'endsWith' of undefined
    at Object.jadeBeautify.isJadeFile (/Users/bmz/.atom/packages/jade-beautify/lib/jade-beautify.js:37:56)
    at atom-workspace.jadeBeautify.handleSaveEvent (/Users/bmz/.atom/packages/jade-beautify/lib/jade-beautify.js:42:21)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:245:29)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:524:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:347:22)
    at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:184:20)

Commands

  2x -0:07.1.0 core:save (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "atom-dark-ui",
      "atom-dark-syntax"
    ]
  }
}

Installed Packages

# User
Stylus, v1.2.1
atom-jade, v0.3.0
atom-xsltransform, v0.8.0
compare-files, v0.6.2
editorconfig, v1.2.0
emmet, v2.3.12
jade-autocompile, v0.6.3
jade-beautify, v0.0.10
language-ace, v1.1.0
language-apache, v1.3.0
language-html-swig, v2.0.1
language-liquid, v0.4.0
language-swig, v0.1.4
language-twig, v1.6.2
minimap, v4.13.3

# Dev
No dev packages

Doesn't work with window:save-all

When editing multiple documents and then pressing Save All (command window:save-all) this package doesn't seems to execute, while normal Save (command core:save) does work.

Add support for visual studio code

Can you please add support to vscode so that we can type alt-shift-f to beautify jade code. Currently there are no good plugins to do this.

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.