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

Object.extname is deprecated. #9

Open
angryfrenchguy opened this issue Jul 24, 2017 · 8 comments
Open

Object.extname is deprecated. #9

angryfrenchguy opened this issue Jul 24, 2017 · 8 comments
Assignees
Labels

Comments

@angryfrenchguy
Copy link

Argument to path.extname must be a string

Object.extname (/private/var/folders/2v/g3nzkkfd2g71mf3_y35tly9w0000gn/T/AppTranslocation/DBC1DCF7-0BF0-4810-B058-8AD6B99946E1/d/Atom.app/Contents/Resources/app/src/electron-shims.js:20:10)
Object.process_file (/Users/amiral/.atom/packages/markdown-image-assistant/lib/main.coffee:133:23)
Object.handle_cp (/Users/amiral/.atom/packages/markdown-image-assistant/lib/main.coffee:128:19)
<unknown> (/Users/amiral/.atom/packages/markdown-image-assistant/lib/main.coffee:73:26)
Function.module.exports.Emitter.simpleDispatch (<embedded>:63093:20)
Emitter.emit (<embedded>:63209:34)
@tlnagy
Copy link
Owner

tlnagy commented Jul 24, 2017

When did this get deprecated?

@brayfe
Copy link

brayfe commented Apr 13, 2018

I'm receiving the same error:

Argument to path.extname must be a string

Object.extname - /Applications/Atom.app/Contents/Resources/app.asar/src/electron-shims.js:20:10
Object.process_file - ~/.atom/packages/markdown-image-assistant/lib/main.coffee:133:23
Object.handle_cp - ~/.atom/packages/markdown-image-assistant/lib/main.coffee:128:19
<unknown> - ~/.atom/packages/markdown-image-assistant/lib/main.coffee:73:26
Function.module.exports.Emitter.simpleDispatch - <embedded>:66277:20
Emitter.emit - <embedded>:66393:34

tlnagy added a commit that referenced this issue Apr 13, 2018
@tlnagy
Copy link
Owner

tlnagy commented Apr 13, 2018

@brayfe thanks for the report, what OS are you on?

@tlnagy tlnagy self-assigned this Apr 13, 2018
@tlnagy tlnagy added the bug label Apr 13, 2018
@brayfe
Copy link

brayfe commented Apr 13, 2018

I'm using a Mac with Sierra version 10.12.6. I'm happy to help debug in any other way possible!

@tlnagy
Copy link
Owner

tlnagy commented Apr 13, 2018

Awesome. Could you install Atom's shell commands via the Atom -> Install Shell Commands menu option? And then run

apm develop markdown-image-assistant

(this clones the latest version of the repo into ~/github/markdown-image-assistant`). Go to that folder and run

atom --dev .

And see if you still see the error.

@brayfe
Copy link

brayfe commented Apr 14, 2018

Hi @tlnagy, sorry for the delay in testing. I ran the commands as you've said, and when the new atom window opens, there are no deprecation errors. I couldn't find a way to run the deprecation cop in atom, so I assume it was run behind the scenes and passed. Hope that helps!

@ruizjme
Copy link

ruizjme commented Feb 22, 2019

This appears to happen when pasting an image into a file that hasn't been saved yet, which therefore doesn't have a name for the image path, nor a file extension to determine whether or not it should be pasted.

@filipsPL
Copy link

Atom version 1.36.1 complains about this Deprecated calls. Everything works fine, but the error icon appears with a comments:

Argument to path.extname must be a string
Object.extname - /usr/share/atom/resources/app.asar/src/electron-shims.js:20:10
Object.process_file - /home/xyz/.atom/packages/markdown-image-assistant/lib/main.coffee:137:23
Object.handle_cp - /home/xyz/.atom/packages/markdown-image-assistant/lib/main.coffee:132:19
<unknown> - /home/xyz/.atom/packages/markdown-image-assistant/lib/main.coffee:73:26
Function.simpleDispatch - <embedded>:11:1189979
Emitter.emit - <embedded>:11:1191420

I have the latest version of this package.

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

5 participants