atom-terminal-panel
atom-terminal-panel copied to clipboard
path.extname is deprecated.
Argument to path.extname
must be a string
path.extname (/usr/share/atom/resources/app.asar/src/electron-shims.js:20:10)
ATPOutputView.getCwd (/home/sudhanshu/.atom/packages/atom-terminal-panel/lib/atp-view.coffee:1874:17)
BuiltinVariables.parseFull (/home/sudhanshu/.atom/packages/atom-terminal-panel/lib/atp-builtins-variables.coffee:188:77)
BuiltinVariables.parseHtml (/home/sudhanshu/.atom/packages/atom-terminal-panel/lib/atp-builtins-variables.coffee:111:16)
ATPOutputView.parseTemplate (/home/sudhanshu/.atom/packages/atom-terminal-panel/lib/atp-view.coffee:664:36)
ATPPanel.updateStatusBar (/home/sudhanshu/.atom/packages/atom-terminal-panel/lib/atp-panel.coffee:190:50)
atom-terminal-panel(1 deprecation)
i have the same deprecation
same problem
same problem
same here
+1
same
same here.
I have the same problem here... 😢
So I was able to temporarily fix this issue... it could also just be a workaround so please follow this at your own risk. It did however remove the "deprecation" message from atom for me.
On the deprecated call, click on the second path:
ATPOutputView.getCwd (/home/sudhanshu/.atom/packages/atom-terminal-panel/lib/atp-view.coffee:1874:17)
In the atp-view.coffee
file, for the getCwd
method, you will want to make the following edits to the extFile
and projectDir
variables:
extFile = extname atom.project.getPaths()[0] if typeof atom.project.getPaths()[0] is 'string'
projectDir = dirname atom.project.getPaths()[0] if typeof atom.project.getPaths()[0] is 'string'
these are lines 1318 and 1331 respectively.
getCwd` should look like this:
`getCwd: ->
if not atom.project?
return null
extFile = extname atom.project.getPaths()[0] if typeof atom.project.getPaths()[0] is 'string'
if extFile == ""
if atom.project.path
projectDir = atom.project.path
else
if process.env.HOME
projectDir = process.env.HOME
else if process.env.USERPROFILE
projectDir = process.env.USERPROFILE
else
projectDir = '/'
else
projectDir = dirname atom.project.getPaths()[0] if typeof atom.project.getPaths()[0] is 'string'
cwd = @cwd or projectDir or @userHome
return @correctFilePath cwd
I hope this helps. I was glad I no longer saw the deprecation message 😆
Created a Pull Request for this (#118) based on @AuggieMBP's comment
Same problem... When an updated to the package will be released? I like much this package but don't like to have deprecation alert in my atom :(
same problem
same issue
same issue
same issue
same issue
same issue
same issue
same issue
same issue
same issue
Solution from @AuggieMBP solve problem
same issue
I have an issue the charset codification of the console, look this text: "El n�mero de serie del volumen es: ECA4-13CE" How can i upgrade this charset tu UTF-8?
Thanks!
Yup, same here....
FYI here is a Deprecated calls I am getting
Argument to path.extname must be a string Report Issue path.extname - /Applications/Atom.app/Contents/Resources/app.asar/src/electron-shims.js:20:10 ATPOutputView.getCwd - /Users/stigadmin/.atom/packages/atom-terminal-panel/lib/atp-view.coffee:1874:17 BuiltinVariables.parseFull - /Users/stigadmin/.atom/packages/atom-terminal-panel/lib/atp-builtins-variables.coffee:188:77 BuiltinVariables.parseHtml - /Users/stigadmin/.atom/packages/atom-terminal-panel/lib/atp-builtins-variables.coffee:111:16 ATPOutputView.parseTemplate - /Users/stigadmin/.atom/packages/atom-terminal-panel/lib/atp-view.coffee:664:36 ATPPanel.updateStatusBar - /Users/stigadmin/.atom/packages/atom-terminal-panel/lib/atp-panel.coffee:190:50
+1
+1
+1
+1
same problem
Up
+1
+1
+1
I did as what @AuggieMBP had said.And the problem was solved.
+1
+1
+1
+1
I think this is dead
+1
@Encr1pt3d : please find a patch for charset issue https://github.com/styczynski/atom-terminal-panel/pull/175
@AuggieMBP Thanks man
+1
o.O3 ---> any update ?
+1
I have the same issue
Still not fixed?
still not fixed