Git Product home page Git Product logo

atom-scala-format's People

Contributors

gangstead avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

nazoking

atom-scala-format's Issues

Uncaught TypeError: Cannot read property 'endsWith' of undefined

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

Steps To Reproduce

  1. ...
  2. ...

Stack Trace

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

Not working for me

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

Format on save

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.

Uncaught TypeError: Cannot read property 'endsWith' of null

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 0.174.0
System: linux 3.16.0-23-generic
Thrown From: scala-format package, v0.1.2

Stack Trace

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)

Commands

     -0:00.0 scala-format:format (atom-text-editor.editor.is-focused)

Config

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

Installed Packages

# User
scala-format, v0.1.2

# Dev
No dev packages

/cc @atom/core

Atom.Object.defineProperty.get is deprecated.

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)

Uncaught TypeError: Cannot read property 'endsWith' of null

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 0.174.0
System: linux 3.16.0-23-generic
Thrown From: scala-format package, v0.1.2

Stack Trace

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)

Commands

     -0:00.0 scala-format:format (atom-text-editor.editor.is-focused)

Config

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

Installed Packages

# User
scala-format, v0.1.2

# Dev
No dev packages

/cc @atom/core

Atom.Object.defineProperty.get is deprecated.

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)

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.