vingorius / jade-beautify Goto Github PK
View Code? Open in Web Editor NEWJade beautify package for Atom Editor.
License: MIT License
Jade beautify package for Atom Editor.
License: MIT License
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
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)
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)
{
"core": {
"autoHideMenuBar": true
}
}
# 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
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.
[Enter steps to reproduce below:]
Atom Version: 1.0.11
System: Mac OS X 10.10.5
Thrown From: jade-beautify package, v0.0.10
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)
2x -0:07.1.0 core:save (atom-text-editor.editor.is-focused)
{
"core": {
"themes": [
"atom-dark-ui",
"atom-dark-syntax"
]
}
}
# 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
Jade has been renamed to pug, see: pugjs/pug#2184
Is there a way to make this package work with the .pug extension?
On saving a file the cursor is moved to the end of the file.
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.
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.
If you publish this package I can add support for it on Atom Beautify. See Glavin001/atom-beautify#199
Thank you and great work!
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.