Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Object.dirname is deprecated. #246

Open
Arcanemagus opened this issue Mar 16, 2018 · 1 comment
Open

Object.dirname is deprecated. #246

Arcanemagus opened this issue Mar 16, 2018 · 1 comment
Labels

Comments

@Arcanemagus
Copy link
Member

When the TextEditor has no path associated with it a deprecation notice is thrown.

Steps to Reproduce

  1. Open an unsaved (new) buffer
  2. Set the language to Python
  3. Trigger a lint() call

Expected

The editor is ignored until it is saved.

Actual

The following error is shown as a deprecation warning:

Argument to path.dirname must be a string

Object.dirname (C:\Users\abneyl\AppData\Local\atom\app-1.26.0-beta0\resources\app.asar\src\electron-shims.js:9:10)
<unknown> (C:\Users\abneyl\.atom\packages\linter-pylint\node_modules\lazy-req\index.js:22:26)
Object.<anonymous> (C:\Users\abneyl\.atom\packages\linter-pylint\lib\main.js:139:23)
Generator.next (null:null:null)
step (C:\Users\abneyl\.atom\packages\linter-pylint\lib\main.js:7:273)
<unknown> (C:\Users\abneyl\.atom\packages\linter-pylint\lib\main.js:7:443)

Versions

Atom

Atom: 1.26.0-beta0
Electron: 1.7.11
Chrome: 58.0.3029.110
Node: 7.9.0

apm

apm  1.19.0
npm  3.10.10
node 6.9.5 x64
atom 1.26.0-beta0
python 2.7.14
git 2.16.2.windows.1
visual studio 2015

OS

Microsoft Windows 10 Enterprise

Additional Info

Installed Packages
  • about
  • archive-view
  • atom-beautify
  • atom-dark-syntax
  • atom-dark-ui
  • atom-ide-ui
  • atom-light-syntax
  • atom-light-ui
  • atom-material-ui
  • autoclose-html
  • autocomplete-atom-api
  • autocomplete-css
  • autocomplete-html
  • autocomplete-lua
  • autocomplete-plus
  • autocomplete-snippets
  • autoflow
  • autosave
  • background-tips
  • base16-tomorrow-dark-theme
  • base16-tomorrow-light-theme
  • bookmarks
  • bracket-matcher
  • busy-signal
  • command-palette
  • dalek
  • deprecation-cop
  • dev-live-reload
  • docblockr
  • editorconfig
  • encoding-selector
  • exception-reporting
  • file-watcher
  • find-and-replace
  • fuzzy-finder
  • git-diff
  • github
  • go-to-line
  • grammar-selector
  • highlight-selected
  • ide-flowtype
  • ide-php
  • ide-python
  • ide-typescript
  • image-view
  • incompatible-packages
  • intentions
  • keybinding-resolver
  • language-ansible
  • language-batch
  • language-c
  • language-chef
  • language-cjson
  • language-clojure
  • language-coffee-script
  • language-csharp
  • language-css
  • language-docker
  • language-elixir
  • language-erlang
  • language-fortran
  • language-gettext
  • language-gfm
  • language-git
  • language-glsl
  • language-go
  • language-haml
  • language-haskell
  • language-html
  • language-hyperlink
  • language-icinga2
  • language-ini
  • language-java
  • language-javascript
  • language-jolie
  • language-json
  • language-kotlin
  • language-less
  • language-livescript
  • language-lua
  • language-make
  • language-moonscript
  • language-mustache
  • language-objective-c
  • language-perl
  • language-php
  • language-postcss
  • language-powershell
  • language-property-list
  • language-pug
  • language-puppet
  • language-python
  • language-reg
  • language-ruby
  • language-ruby-on-rails
  • language-rust
  • language-sass
  • language-shellscript
  • language-source
  • language-sql
  • language-swift
  • language-terraform
  • language-text
  • language-todo
  • language-toml
  • language-typescript
  • language-vue
  • language-xml
  • language-yaml
  • line-ending-selector
  • link
  • linter
  • linter-coffeelint
  • linter-eslint
  • linter-flake8
  • linter-htmlhint
  • linter-js-standard
  • linter-js-yaml
  • linter-jsonlint
  • linter-markdown
  • linter-perl
  • linter-perlcritic
  • linter-php
  • linter-phpcs
  • linter-phpmd
  • linter-proselint
  • linter-pylama
  • linter-pylint
  • linter-rails-best-practices
  • linter-reek
  • linter-rubocop
  • linter-ruby
  • linter-stylelint
  • linter-tidy
  • linter-ui-default
  • linter-ui-plus
  • mapfile-grammar
  • markdown-preview
  • metrics
  • minimap
  • minimap-git-diff
  • minimap-highlight-selected
  • minimap-linter
  • minimap-selection
  • notifications
  • one-dark-syntax
  • one-dark-ui
  • one-light-syntax
  • one-light-ui
  • open-on-github
  • package-generator
  • sequential-number
  • settings-view
  • snippets
  • solarized-dark-syntax
  • solarized-light-syntax
  • sort-lines
  • spell-check
  • status-bar
  • styleguide
  • symbols-view
  • sync-settings
  • tab-control
  • tabs
  • teletype
  • terminal-tab
  • timecop
  • toggle-quotes
  • town-crier
  • trailing-spaces
  • tree-view
  • update-package-dependencies
  • welcome
  • whitespace
  • wrap-guide
@ekoepplin
Copy link

same here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants