gangstead / atom-scala-format Goto Github PK
View Code? Open in Web Editor NEWAtom package to format scala files with standard scalariform library
License: MIT License
Atom package to format scala files with standard scalariform library
License: MIT License
The context menu CSON format has changed. Please see
https://atom.io/docs/api/latest/ContextMenuManager
Uncaught TypeError: Cannot read property 'endsWith' of undefined
Atom Version: 0.162.0
System: Mac OS X 10.10.1
Thrown From: scala-format package, v0.1.2
At /Users/fenix/.atom/packages/scala-format/lib/scala-format.js:61
TypeError: Cannot read property 'endsWith' of undefined
at Object.module.exports.format (/Users/fenix/.atom/packages/scala-format/lib/scala-format.js:61:17)
at atom-workspace.<anonymous> (/Users/fenix/.atom/packages/scala-format/lib/scala-format.js:23:22)
at atom-workspace.handler (/Applications/Atom-2.app/Contents/Resources/app/src/space-pen-extensions.js:115:32)
at atom-workspace.jQuery.event.dispatch (/Applications/Atom-2.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4681:9)
at atom-workspace.elemData.handle (/Applications/Atom-2.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4359:46)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom-2.app/Contents/Resources/app/src/command-registry.js:243:29)
at CommandRegistry.handleCommandEvent (/Applications/Atom-2.app/Contents/Resources/app/src/command-registry.js:3:61)
at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom-2.app/Contents/Resources/app/src/command-registry.js:156:19)
at Ipc.<anonymous> (/Applications/Atom-2.app/Contents/Resources/app/src/window-event-handler.js:65:30)
at Ipc.emit (events.js:107:17)
at process.<anonymous> (/Applications/Atom-2.app/Contents/Resources/atom/renderer/api/lib/ipc.js:22:29)
at process.emit (events.js:110:17)
/cc @atom/core
The context menu CSON format has changed. Please see
https://atom.io/docs/api/latest/ContextMenuManager
Nothing happens if I try to open a wrongly-formatted .scala
file.
Atom version: 0.194.0
I read the following deprecation calls:
Call ::getActiveTextEditor instead
Called 23 timesCreate Issue on scala-format repo
Workspace.getActiveEditor - /opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/workspace.js:999:12
atom-workspace.module.exports.format - /Users/jmcejuela/.atom/packages/scala-format/lib/scala-format.js:49:35
CommandRegistry.module.exports.CommandRegistry.handleCommandEvent - /opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/command-registry.js:238:29
<unknown> - /opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
Call ::getActiveTextEditor instead
Called 23 timesCreate Issue on scala-format repo
Workspace.getActiveEditor - /opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/workspace.js:999:12
atom-workspace.module.exports.format - /Users/jmcejuela/.atom/packages/scala-format/lib/scala-format.js:49:71
CommandRegistry.module.exports.CommandRegistry.handleCommandEvent - /opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/command-registry.js:238:29
<unknown> - /opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
In menus/context.json: Use the atom-workspace
tag instead of the workspace
class.
Hello,
It will be great if you could add an automatic format on file save.
Also, if you need someone to help you with this package, don't hesitate to ask...
Thank you.
[Enter steps to reproduce below:]
Atom Version: 0.174.0
System: linux 3.16.0-23-generic
Thrown From: scala-format package, v0.1.2
Uncaught TypeError: Cannot read property 'endsWith' of null
At /home/kael/.atom/packages/scala-format/lib/scala-format.js:61
TypeError: Cannot read property 'endsWith' of null
at Object.module.exports.format (/home/kael/.atom/packages/scala-format/lib/scala-format.js:61:17)
at atom-workspace.<anonymous> (/home/kael/.atom/packages/scala-format/lib/scala-format.js:23:22)
at atom-workspace.handler (/usr/share/atom/resources/app/src/space-pen-extensions.js:115:32)
at atom-workspace.jQuery.event.dispatch (/usr/share/atom/resources/app/node_modules/space-pen/vendor/jquery.js:4681:9)
at atom-workspace.elemData.handle (/usr/share/atom/resources/app/node_modules/space-pen/vendor/jquery.js:4359:46)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/src/command-registry.js:243:29)
at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/src/command-registry.js:3:61)
at CommandRegistry.module.exports.CommandRegistry.dispatch (/usr/share/atom/resources/app/src/command-registry.js:156:19)
at Ipc.<anonymous> (/usr/share/atom/resources/app/src/window-event-handler.js:65:30)
at Ipc.emit (events.js:107:17)
at process.<anonymous> (/usr/share/atom/resources/atom/renderer/api/lib/ipc.js:22:29)
at process.emit (events.js:110:17)
-0:00.0 scala-format:format (atom-text-editor.editor.is-focused)
{
"core": {
"themes": [
"atom-dark-ui",
"atom-dark-syntax"
]
}
}
# User
scala-format, v0.1.2
# Dev
No dev packages
/cc @atom/core
atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use atom.views.getView(atom.workspace)
,
which returns an HTMLElement.
Atom.Object.defineProperty.get (/usr/share/atom/resources/app/src/atom.js:55:11)
Object.activate (/home/kael/.atom/packages/scala-format/lib/scala-format.js:20:21)
In keymaps/main.json: Use the atom-workspace
tag instead of the workspace
class.
[Enter steps to reproduce below:]
Atom Version: 0.174.0
System: linux 3.16.0-23-generic
Thrown From: scala-format package, v0.1.2
Uncaught TypeError: Cannot read property 'endsWith' of null
At /home/kael/.atom/packages/scala-format/lib/scala-format.js:61
TypeError: Cannot read property 'endsWith' of null
at Object.module.exports.format (/home/kael/.atom/packages/scala-format/lib/scala-format.js:61:17)
at atom-workspace.<anonymous> (/home/kael/.atom/packages/scala-format/lib/scala-format.js:23:22)
at atom-workspace.handler (/usr/share/atom/resources/app/src/space-pen-extensions.js:115:32)
at atom-workspace.jQuery.event.dispatch (/usr/share/atom/resources/app/node_modules/space-pen/vendor/jquery.js:4681:9)
at atom-workspace.elemData.handle (/usr/share/atom/resources/app/node_modules/space-pen/vendor/jquery.js:4359:46)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/src/command-registry.js:243:29)
at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/src/command-registry.js:3:61)
at CommandRegistry.module.exports.CommandRegistry.dispatch (/usr/share/atom/resources/app/src/command-registry.js:156:19)
at Ipc.<anonymous> (/usr/share/atom/resources/app/src/window-event-handler.js:65:30)
at Ipc.emit (events.js:107:17)
at process.<anonymous> (/usr/share/atom/resources/atom/renderer/api/lib/ipc.js:22:29)
at process.emit (events.js:110:17)
-0:00.0 scala-format:format (atom-text-editor.editor.is-focused)
{
"core": {
"themes": [
"atom-dark-ui",
"atom-dark-syntax"
]
}
}
# User
scala-format, v0.1.2
# Dev
No dev packages
/cc @atom/core
In keymaps/main.json: Use the atom-workspace
tag instead of the workspace
class.
atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use atom.views.getView(atom.workspace)
,
which returns an HTMLElement.
Atom.Object.defineProperty.get (/Applications/Atom.app/Contents/Resources/app/src/atom.js:54:11)
Object.activate (/Users/francknouama/.atom/packages/scala-format/lib/scala-format.js:20:21)
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.