GithubHelp home page GithubHelp logo

bh / atom-python-isort Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 10.0 96 KB

Atom.io plugin to sort Python imports

Home Page: https://atom.io/packages/python-isort

License: MIT License

CoffeeScript 100.00%
atom coffeescript isort python-isort sorting-imports

atom-python-isort's Introduction

atom-python-isort's People

Contributors

bh avatar jmfederico avatar lexicalunit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

atom-python-isort's Issues

Object.Object.defineProperty.get is deprecated.

Requiring $ from atom is no longer supported.
If you are using space-pen, please require $ from atom-space-pen-views. Otherwise require jquery instead:
{$} = require 'atom-space-pen-views'
or
$ = require 'jquery'
Add "atom-space-pen-views": "^2.0.3" to your package dependencies.
Or add "jquery": "^2" to your package dependencies.

Object.Object.defineProperty.get (/usr/share/atom/resources/app.asar/exports/atom.js:48:11)
Object.<anonymous> (/home/ryan/.atom/packages/python-isort/lib/python-isort.coffee:2:20)
Object.<anonymous> (/home/ryan/.atom/packages/python-isort/lib/python-isort.coffee:105:4)
Module._compile (module.js:452:26)
Object.requireCoffeeScript (/usr/share/atom/resources/app.asar/node_modules/coffee-cash/lib/coffee-cash.js:85:19)
Module.load (module.js:347:32)

Error when deactivating package

Occurs for me every time the package gets deactivated. Only tested in Atom 1.16.0 beta so far.

package.coffee:447 Error deactivating package 'atom-isort' TypeError: _ref1.dispose is not a function
    at Object.deactivate (/Users/me/.atom/packages/atom-isort/lib/index.coffee:53:14)
    at Package.module.exports.Package.deactivate (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/package.js:722:20)
    at PackageManager.module.exports.PackageManager.deactivatePackage (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/package-manager.js:643:12)
    at /Applications/Atom Beta.app/Contents/Resources/app.asar/src/package-manager.js:347:21
    at /Applications/Atom Beta.app/Contents/Resources/app.asar/src/config.js:635:20
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom Beta.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom Beta.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:129:28)
    at Config.module.exports.Config.emitChangeEvent (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/config.js:826:29)
    at Config.module.exports.Config.setRawValue (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/config.js:612:19)
    at Config.module.exports.Config.set (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/config.js:227:14)
    at Config.module.exports.Config.pushAtKeyPath (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/config.js:361:12)
    at Package.module.exports.Package.disable (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/package.js:85:26)
    at PackageManager.module.exports.PackageManager.disablePackage (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/package-manager.js:183:16)
    at HTMLButtonElement.enablementButtonClickHandler (/Applications/Atom Beta.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-card.js:336:23)

Uncaught Error: spawn EACCES

[Enter steps to reproduce below:]

  1. ... exec 'SortImports'
  2. ...

Atom Version: 1.3.2
System: Mac OS X 10.10.5
Thrown From: python-isort package, v0.0.7

Stack Trace

Uncaught Error: spawn EACCES

At internal/child_process.js:298

Error: spawn EACCES
    at exports._errnoException (util.js:837:11)
    at ChildProcess.spawn (internal/child_process.js:298:11)
    at Object.exports.spawn (child_process.js:351:9)
    at PythonIsort.module.exports.PythonIsort.sortImports (/Users/jasper/git/noblejasper/dotfiles/macosx/atom/packages/python-isort/lib/python-isort.coffee:76:20)
    at atom-workspace.<anonymous> (/Users/jasper/git/noblejasper/dotfiles/macosx/atom/packages/python-isort/lib/index.coffee:22:10)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
    at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/command-palette/lib/command-palette-view.js:183:32)
    at CommandPaletteView.module.exports.SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
    at space-pen-div.atom.commands.add.core:confirm (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:109:19)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260: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:536:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:359:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:97:36)
    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)

Commands

     -0:34.2.0 core:paste (input.hidden-input)
     -0:30.4.0 core:move-down (input.hidden-input)
     -0:30.1.0 core:backspace (input.hidden-input)
     -0:29.6.0 core:move-left (input.hidden-input)
  5x -0:27.7.0 core:backspace (input.hidden-input)
     -0:23.5.0 core:copy (input.hidden-input)
  2x -0:21.1.0 core:paste (input.hidden-input)
     -0:17.1.0 core:save (input.hidden-input)
     -0:13 pane:show-item-1 (input.hidden-input)
     -0:11.4.0 pane:show-next-item (input.hidden-input)
     -0:10.4.0 core:move-to-top (input.hidden-input)
     -0:07.3.0 command-palette:toggle (input.hidden-input)
     -0:01.7.0 core:confirm (input.hidden-input)
     -0:01.7.0 python-isort:sortImports (input.hidden-input)

Config

{
  "core": {
    "followSymlinks": true,
    "themes": [
      "seti-ui",
      "monokai"
    ],
    "ignoredNames": [
      ".git",
      ".bundle",
      ".sass-cache",
      "vendor"
    ],
    "disabledPackages": [
      "atom-alignment",
      "sort-lines",
      "atom-color-highlight",
      "linter-elixirc",
      "autocomplete-elixir",
      "color-picker",
      "pigments",
      "wercker-status",
      "alignment",
      "japanese-wrap"
    ]
  },
  "python-isort": {
    "isortPath": "/usr/local/opt/pyenv/versions/global2.7.9/bin/"
  }
}

Installed Packages

# User
Sublime-Style-Column-Selection, v1.3.0
aligner, v0.17.4
aligner-css, v1.2.0
aligner-python, v1.0.1
aligner-scss, v1.1.0
atom-jinja2, v0.5.0
autocomplete-python, v1.2.4
clipboard-plus, v0.5.1
compass, v0.9.1
disable-keybindings, v0.6.0
emacs-plus, v0.9.10
emmet, v2.3.17
gist-it, v0.8.0
javascript-snippets, v1.0.0
language-actionscript, v0.2.0
language-actionscript3, v0.3.0
language-csharp, v0.11.0
language-elixir, v0.5.2
linter, v1.11.3
linter-coffeescript, v1.0.0
linter-jshint, v1.2.1
linter-python-pep8, v0.2.0
linter-python-pyflakes, v0.1.0
monokai, v0.18.0
project-manager, v2.6.5
python-isort, v0.0.7
python-tools, v0.6.7
seti-ui, v0.8.1
symbols-tree-view, v0.11.0
visual-bell, v1.0.0

# Dev
No dev packages

Package.activateConfig is deprecated.

Use a config schema instead. See the configuration section
of https://atom.io/docs/latest/hacking-atom-package-word-count and
https://atom.io/docs/api/latest/Config for more details

Package.activateConfig (/usr/share/atom/resources/app.asar/src/package.js:263:11)
Package.activateNow (/usr/share/atom/resources/app.asar/src/package.js:234:14)
<unknown> (/usr/share/atom/resources/app.asar/src/package.js:219:30)
Package.measure (/usr/share/atom/resources/app.asar/src/package.js:163:15)
Package.activate (/usr/share/atom/resources/app.asar/src/package.js:211:14)
PackageManager.activatePackage (/usr/share/atom/resources/app.asar/src/package-manager.js:435:21)

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/davide/.atom/packages/python-isort/lib/index.coffee:12:9)

Workspace.getActiveEditor is deprecated.

Call ::getActiveTextEditor instead

Workspace.getActiveEditor (/opt/atom/resources/app.asar/src/workspace.js:1022:12)
PythonIsort.checkForPythonContext (/home/leitjohn/.atom/packages/python-isort/lib/python-isort.coffee:9:28)
PythonIsort.checkImports (/home/leitjohn/.atom/packages/python-isort/lib/python-isort.coffee:44:12)
<unknown> (/home/leitjohn/.atom/packages/python-isort/lib/index.coffee:41:25)
Emitter.emit (/opt/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
TextBuffer.saveAs (/opt/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1032:20)

Uncaught TypeError: undefined is not a function

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 0.176.0
System: Mac OS X 10.10.2
Thrown From: python-isort package, v0.0.5

Stack Trace

Uncaught TypeError: undefined is not a function

At /Users/davide/.atom/packages/python-isort/lib/index.coffee:19

TypeError: undefined is not a function
  at atom-workspace.<anonymous> (/Users/davide/.atom/packages/python-isort/lib/index.coffee:19:10)
  at atom-workspace.handler (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:115:32)
  at atom-workspace.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4681:9)
  at atom-workspace.elemData.handle (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4359:46)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
  at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
  at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/Applications/Atom.app/Contents/Resources/app/node_modules/command-palette/lib/command-palette-view.js:120:32)
  at CommandPaletteView.module.exports.SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app/node_modules/go-to-line/node_modules/atom-space-pen-views/lib/select-list-view.js:336:21)
  at space-pen-div.atom.commands.add.core:confirm (/Applications/Atom.app/Contents/Resources/app/node_modules/go-to-line/node_modules/atom-space-pen-views/lib/select-list-view.js:109:19)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
  at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:558:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:396:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:170:20)

Commands

     -0:35.9 command-palette:toggle (atom-text-editor.editor)
     -0:31.8 core:confirm (atom-text-editor.editor.mini)
     -0:31.8 python-isort:sortImports (atom-text-editor.editor)
     -0:21.9 command-palette:toggle (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:19.3 core:confirm (atom-text-editor.editor.mini)
     -0:19.3 python-isort:sortImports (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:12.1 core:backspace (atom-text-editor.editor.is-focused)
     -0:10.7 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:08.2 core:confirm (atom-text-editor.editor.mini)
     -0:08.1 python-isort:sortImports (atom-text-editor.editor.is-focused)
     -0:07.3 emmet:insert-formatted-line-break-only (atom-text-editor.editor.is-focused)
     -0:07.3 editor:newline (atom-text-editor.editor.is-focused)
     -0:05.9 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:03.5 core:move-down (atom-text-editor.editor.mini)
     -0:03.0 core:confirm (atom-text-editor.editor.mini)
     -0:03.0 python-isort:checkImports (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "seti-ui",
      "atom-monokai"
    ],
    "projectHome": "/Users/davide/code"
  }
}

Installed Packages

# User
angularjs, v0.1.0
atom-beautify, v0.21.2
atom-django, v0.2.0
atom-monokai, v0.5.0
atom-python-debugger, v0.1.1
autocomplete-paths, v1.0.0
autocomplete-plus, v2.0.3
autocomplete-snippets, v1.0.0
emmet, v2.3.2
language-python-django-templates, v0.1.0
linter, v0.10.1
linter-csslint, v0.0.11
linter-jshint, v0.1.0
linter-less, v0.3.1
linter-pep257, v0.1.4
linter-pep8, v0.1.0
linter-scss-lint, v0.0.11
linter-xmllint, v0.0.5
minimap, v3.5.6
python-isort, v0.0.5
seti-ui, v0.6.3

# 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)
module.exports.PythonIsort.updateStatusbarText (/Users/davide/.atom/packages/python-isort/lib/python-isort.coffee:20:23)

'python-isort:sortImports' could not be spawned

installed python-isort 0.0.7, then again show this message

'python-isort:sortImports' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process.

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/davide/.atom/packages/python-isort/lib/index.coffee:15:9)

Deprecated Atom APIs will be removed June 1st

Atom will no longer load this package after June 1st without changes. There are a couple deprecations on the latest version (0.0.6) of this package:

  1. Use a config schema instead. See the configuration section of https://atom.io/docs/latest/hacking-atom-package-word-count and https://atom.io/docs/api/latest/Config for more details
  2. Requiring $ from atom is no longer supported. If you are using space-pen, please require $ from atom-space-pen-views. Otherwise require jquery instead: {$} = require 'atom-space-pen-views' or $ = require 'jquery' Add "atom-space-pen-views": "^2.0.3" to your package dependencies. Or add "jquery": "^2" to your package dependencies.
  3. Call ::getActiveTextEditor instead

Visit https://gist.github.com/benogle/6d09e295c84b717ef9b4 and search for your package name to see up-to-date deprecations.

If this package has been replaced by another package or functionality in core, please reply with this information.

See atom/atom#6867 for more info. Thanks!

isort not picked up from $PATH

I'm now forced to put the absolute path to the executable which I was not before, and I'd like to keep it out of the package settings to adapt to my conda environments automatically (which set the PATH automatically).

This seems to be the same issue as linter-flake8 is having right now, that some recent updates of Atom (or other things?) prevent picking up things from the path.
It was working fine for me until today, yesterday it was fine, so either it's Atom 1.0.3->4 update or updates that came in today. System: OSX 10.10.4

atom-python-isort runs on saved file, rather than editor content

The expected behavior of 'python-isort:sortImports' is that it runs on the current editor's contents, using isort to directly convert text.

eg:

new_contents = SortImports(file_contents=old_contents).output

Instead, the sortImports function runs isort on 'getFilePath', which means that isort doesn't appear to do anything if the file has not been saved immediately before running sortImports.

I think it's probably bad form to directly edit the focused .py file, rather than changing the editor's contents, because it doesn't allow for the user to view and/or revert the changes that isort makes.

I'd be happy to update this behavior, if nobody else wants to.

It is not working

Is there anything I miss up?
I have set the right path.
And this path is work when I toggled on terminal command.
However, it is not working on Atom editor.

When I triggered it by Ctrl+Shift+P: python sort: sortimports
Nothing happened!

Editor flush and lose focus

Editor flush after saving, lose focus and jump to the beginning of the file
It happens with enabled checkbox "Sort on save"

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)
PythonIsort.updateStatusbarText (/Users/davide/.atom/packages/python-isort/lib/python-isort.coffee:20:23)

Support dynamic location per-project

I don't install global python dependencies, they are all in virtualenvs. It would be really useful to be able to set a dynamic path to isort, something like:

~/.virtualenvs/$PROJECT_NAME/bin/isort

This means that the version of isort can be determined per-project.

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/davide/.atom/packages/python-isort/lib/index.coffee:18:9)

currently doesn't work

I don't know what changed, but currently isort does not work for me.
I have the explicit path set in the settings to

/Users/klay6683/miniconda3/envs/py35/bin/isort

and confirmed that isort works on the command line with this path.
I have activated check on save and sort on save for trying it out, usually I only sort via command-palette. But neither of these approaches work.

My versions:
atom: 1.5.3
python-isort: 0.0.7

Is there any thing I can debug on my end?

Uncaught Error: spawn isort ENOENT

python-isort:sortImports returns

'isort' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process.

Uncaught TypeError: Cannot read property 'getPath' of undefined

[Enter steps to reproduce below:]

  1. Open Atom
  2. Open Settings tab

Atom Version: 0.179.0
System: Mac OS X 10.10.2
Thrown From: python-isort package, v0.0.5

Stack Trace

Uncaught TypeError: Cannot read property 'getPath' of undefined

At /Users/fg/.atom/packages/python-isort/lib/python-isort.coffee:38

TypeError: Cannot read property 'getPath' of undefined
  at PythonIsort.module.exports.PythonIsort.getFilePath (/Users/fg/.atom/packages/python-isort/lib/python-isort.coffee:38:18)
  at PythonIsort.module.exports.PythonIsort.checkForUnsortedImports (/Users/fg/.atom/packages/python-isort/lib/python-isort.coffee:41:16)
  at /Users/fg/.atom/packages/python-isort/lib/index.coffee:34:16
  at TextBuffer.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/emitter.js:118:15)
  at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:977:19)
  at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:958:19)
  at TextEditor.module.exports.TextEditor.save (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:620:26)
  at Object.module.exports.autosavePaneItem (/Applications/Atom.app/Contents/Resources/app/node_modules/autosave/lib/autosave.js:56:80)
  at /Applications/Atom.app/Contents/Resources/app/node_modules/autosave/lib/autosave.js:27:26
  at atom-pane.PaneElement.activeItemChanged (/Applications/Atom.app/Contents/Resources/app/src/pane-element.js:125:25)
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
  at Pane.module.exports.Pane.setActiveItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:264:22)
  at Pane.module.exports.Pane.activateItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:328:21)
  at /Applications/Atom.app/Contents/Resources/app/src/workspace.js:524:16
  at _fulfilled (/Applications/Atom.app/Contents/Resources/app/node_modules/q/q.js:794:54)
  at self.promiseDispatch.done (/Applications/Atom.app/Contents/Resources/app/node_modules/q/q.js:823:30)
  at Promise.promise.promiseDispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/q/q.js:756:13)
  at /Applications/Atom.app/Contents/Resources/app/node_modules/q/q.js:817:14
  at flush (/Applications/Atom.app/Contents/Resources/app/node_modules/q/q.js:110:17)
  at process._tickCallback (node.js:364:11)

Commands

     -0:09.0 core:move-up (atom-text-editor.editor)
 31x -0:08.9 core:move-right (atom-text-editor.editor)
     -0:06.2 editor:select-to-first-character-of-line (atom-text-editor.editor)
     -0:04.4 core:move-down (atom-text-editor.editor)
 18x -0:04.3 core:move-right (atom-text-editor.editor)
     -0:02.0 editor:select-to-first-character-of-line (atom-text-editor.editor)
     -0:00.9 settings-view:open (atom-text-editor.editor)

Config

{
  "core": {},
  "python-isort": {
    "isortPath": "/Users/fg/.virtualenvs/isort/bin/isort"
  }
}

Installed Packages

# User
block-cursor, v0.7.5
cucumber, v0.4.0
ember-cli-helper, v0.4.0
ember-snippets, v1.0.0
emmet, v2.3.3
language-python-django-templates, v0.1.0
linter-flake8, v1.2.0
minimap, v3.4.9
python-isort, v0.0.5
react, v0.9.8

# Dev
No dev packages

atom-python-isort leaves behind abandoned status bar item

Running atom-python-isort successfully leaves behind a "isort: โœ“" status bar item, which provides no additional information to the user once isort has run.

Since the status bar is generally used for important, persistent information (such as filename, language, interpreter, etc) I recommend that the status bar icon be removed entirely, and that errors only be displayed using the more canonical 'atom.notifications'.

As with #34, I'd be happy to update the package if nobody else is interested.

Extension not working

Hello! When I run the command "Python Isort: SortImports" nothing happens. No sorting, no errors.

windows 10
atom 1.60.0
python 3.9.1
isort 5.10.1
python-isort 0.0.7

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 (c:\Users\scott.wilson\AppData\Local\atom\app-0.174.0\resources\app\src\atom.js:55:11)
Object.activate (c:\Users\scott.wilson\.atom\packages\python-isort\lib\index.coffee:12:9)

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.