Git Product home page Git Product logo

Comments (9)

benogle avatar benogle commented on May 30, 2024

From @50Wliu on February 4, 2015 15:2

/cc @benogle

from markdown-pdf.

benogle avatar benogle commented on May 30, 2024

I assume this is a issue with markdown-pdf.

from markdown-pdf.

benogle avatar benogle commented on May 30, 2024

Maybe some dir on the c:\devel\tools\cpdfer\ path doesnt exist?

from markdown-pdf.

travs avatar travs commented on May 30, 2024

@baskinomics

Do you still get this issue?

I am not quite sure what's going on here

from markdown-pdf.

travs avatar travs commented on May 30, 2024

@hdmi @baskinomics

Hey there, I'm still trying to reproduce this issue and cannot. Is the .md file saved before you attempt to convert it?
Also, it is informative that this occurs on different operating systems. Is there any more information you thin may be pertinent to resolving this?

Thanks for the reports! 🐛

from markdown-pdf.

hdmi avatar hdmi commented on May 30, 2024

I've done some tests (in linux) and here are the outputs:

Open atom from terminal with normal rights (no sudo):

  • Create a new document, write some markdown and save it as Document1.md
    • Output: ENOENT...
  • Create a new document, write some markdown and save it as Document2.markdown
    • Output: It generates the file correctly

I have renamed my files ending with .md to .markdown and all the problems with the pdf conversion disappeared.

from markdown-pdf.

baskinomics avatar baskinomics commented on May 30, 2024

Sorry I haven't been contributing to this, haven't really been using Atom in the day-to-day workplace (yet ;). I can't remember exactly what I was attempting to do, but I can confirm that the path c:\devel\tools\cpdfer\ does not exist on my machine.

from markdown-pdf.

atdrago avatar atdrago commented on May 30, 2024

@travs

I've gotten this issue and I think I know the problem. The directory is probably supposed to be c:\devel\tools\cmder\, but it's replacing "md" at the wrong spot, leading to "cpdfer".

I have the same problem. My username is "adamdrago" and I get this error:

Uncaught Error: ENOENT: no such file or directory, open '/Users/adapdfrago/Desktop/Notes/geo-pd/GEO-PD.md'

Notice how "adamdrago" betcomes "adapdfrago"?

Hopefully this helps solve the problem!!

from markdown-pdf.

hdmi avatar hdmi commented on May 30, 2024

Thanks @atdrago for your help, now I realize where the problem comes from.
As you said, the package was replacing in the path a substring composed by 'md' to 'pdf'.

I have modified the function which returns the path of the new pdf file, and it seems to work perfectly.
You can see the modifications in the commit d0c1faf

from markdown-pdf.

Related Issues (20)

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.