atom / atom-dark-syntax

Atom Dark Syntax theme
MIT License
58 stars 97 forks source link

path.extname is deprecated. #40

Closed xiaxiaoyu1988 closed 7 years ago

xiaxiaoyu1988 commented 7 years ago

Argument to path.extname must be a string

path.extname (E:\tools\Atom\resources\app.asar\src\electron-shims.js:20:10)
ATPOutputView.getCwd (C:\Users\xiaxiaoyu\.atom\packages\atom-terminal-panel\lib\atp-view.coffee:1874:17)
BuiltinVariables.parseFull (C:\Users\xiaxiaoyu\.atom\packages\atom-terminal-panel\lib\atp-builtins-variables.coffee:188:77)
BuiltinVariables.parseHtml (C:\Users\xiaxiaoyu\.atom\packages\atom-terminal-panel\lib\atp-builtins-variables.coffee:111:16)
ATPOutputView.parseTemplate (C:\Users\xiaxiaoyu\.atom\packages\atom-terminal-panel\lib\atp-view.coffee:664:36)
ATPPanel.updateStatusBar (C:\Users\xiaxiaoyu\.atom\packages\atom-terminal-panel\lib\atp-panel.coffee:190:50)
winstliu commented 7 years ago

Thanks for contributing!

It appears that this is being caused by the atom-terminal-panel package, not Atom itself. It may be that there is still a bug in Atom. If so, we'll need the maintainer of the package that is causing the problem to help track that down. You should file this issue on their repository so they can either fix the problem or tell us where the problem is coming from. The Atom FAQ has information on how to contact the maintainers of any Atom community package or theme.

fireice009 commented 7 years ago

Atom core. Argument to path.extname must be a string

Object.extname - /private/var/folders/5b/zkcggsv16gqg7932sc9d8ld00000gn/T/AppTranslocation/468BACA6-1EAE-4385-9504-E58F0247069A/d/Atom.app/Contents/Resources/app.asar/src/electron-shims.js:20:10
DefaultFileIcons.iconClassForPath - /private/var/folders/5b/zkcggsv16gqg7932sc9d8ld00000gn/T/AppTranslocation/468BACA6-1EAE-4385-9504-E58F0247069A/d/Atom.app/Contents/Resources/app.asar/node_modules/tabs/lib/default-file-icons.js:16:24
MRUItemView.initialize - /private/var/folders/5b/zkcggsv16gqg7932sc9d8ld00000gn/T/AppTranslocation/468BACA6-1EAE-4385-9504-E58F0247069A/d/Atom.app/Contents/Resources/app.asar/node_modules/tabs/lib/mru-item-view.js:61:63
MRUListView.buildListView - /private/var/folders/5b/zkcggsv16gqg7932sc9d8ld00000gn/T/AppTranslocation/468BACA6-1EAE-4385-9504-E58F0247069A/d/Atom.app/Contents/Resources/app.asar/node_modules/tabs/lib/mru-list-view.js:176:18
MRUListView.show - /private/var/folders/5b/zkcggsv16gqg7932sc9d8ld00000gn/T/AppTranslocation/468BACA6-1EAE-4385-9504-E58F0247069A/d/Atom.app/Contents/Resources/app.asar/node_modules/tabs/lib/mru-list-view.js:99:36
MRUListView.choose - /private/var/folders/5b/zkcggsv16gqg7932sc9d8ld00000gn/T/AppTranslocation/468BACA6-1EAE-4385-9504-E58F0247069A/d/Atom.app/Contents/Resources/app.asar/node_modules/tabs/lib/mru-list-view.js:87:12
SeanJohn24 commented 7 years ago

your local init.coffee file (1 deprecation) Argument to path.extname must be a string

Object.extname - C:\Users\sworkm2\AppData\Local\atom\app-1.17.2\resources\app\src\electron-shims.js:20:10
<unknown> - C:\Users\sworkm2\.atom\init.coffee:9:14
<unknown> - <embedded>:23211:22
Function.module.exports.Emitter.simpleDispatch - <embedded>:63096:20
Emitter.emit - <embedded>:63212:34
<unknown> - <embedded>:23084:34

if path.extname(editor.getPath()) == '.phpi'