Closed allenye0119 closed 3 years ago
I bet on a misconfiguration. Closing because of no steps to reproduce.
I got the same error : [Enter steps to reproduce below:]
Atom Version: 1.7.4 System: Unknown Windows Version Thrown From: markdown-themeable-pdf package, v1.0.1
Uncaught TypeError: Path must be a string. Received undefined
At path.js:8
TypeError: Path must be a string. Received undefined
at assertPath (path.js:8:11)
at Object.win32.join (path.js:221:5)
at Object.module.exports.markdownThemeablePdf.getConfigFilePath (C:\Users\Shark\.atom\packages\markdown-themeable-pdf\lib\markdown-themeable-pdf.js:551:28)
at C:\Users\Shark\.atom\packages\markdown-themeable-pdf\lib\markdown-themeable-pdf.js:348:44
at tryToString (fs.js:414:3)
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:401:12)
-2:04.6.0 core:move-right (atom-text-editor.editor.is-focused.autocomplete-active)
2x -2:02.3.0 editor:newline (atom-text-editor.editor.is-focused)
-1:53.1.0 core:move-right (atom-text-editor.editor.is-focused.autocomplete-active)
-1:50.7.0 core:paste (atom-text-editor.editor.is-focused)
2x -1:48.1.0 editor:newline (atom-text-editor.editor.is-focused)
-1:42.9.0 core:move-right (atom-text-editor.editor.is-focused.autocomplete-active)
2x -1:40.8.0 editor:newline (atom-text-editor.editor.is-focused)
2x -1:34.4.0 core:move-down (atom-text-editor.editor.is-focused.autocomplete-active)
-1:33 core:move-right (atom-text-editor.editor.is-focused.autocomplete-active)
-1:24.8.0 core:paste (atom-text-editor.editor.is-focused)
-1:22.8.0 core:save (atom-text-editor.editor.is-focused)
-0:52 markdown-themeable-pdf:export (atom-text-editor.editor.is-focused)
-0:36.1.0 markdown-preview:toggle (atom-text-editor.editor.is-focused)
-0:25.7.0 core:save-as (div.markdown-preview.native-key-bindings)
-0:16 pane:close (h1#projet-dir-exe.)
-0:02.7.0 markdown-themeable-pdf:export (atom-text-editor.editor.is-focused)
{
"core": {
"disabledPackages": [
"language-x86-64-assembly",
"language-assembly",
"pigments",
"markdown-scroll-sync"
]
}
}
# User
language-x86, v1.0.1
markdown-themeable-pdf, v1.0.1
# Dev
No dev packages
Resolved this by changing the md file name to not include () - perhaps it does not like other special chars that windows allows. I figured since the demo.md worked it was something with my file.
[Enter steps to reproduce:]
Atom: 1.36.0 x64 Electron: 2.0.18 OS: Unknown Windows version Thrown From: markdown-themeable-pdf package 1.2.1
Uncaught TypeError: Path must be a string. Received undefined
At path.js:28
TypeError: Path must be a string. Received undefined
at assertPath (path.js:28:11)
at Object.join (path.js:501:7)
at Object.getConfigFilePath (/packages/markdown-themeable-pdf/lib/markdown-themeable-pdf.js:575:28)
at /packages/markdown-themeable-pdf/lib/markdown-themeable-pdf.js:365:44
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:511:3)
-3:58.3.0 markdown-themeable-pdf:export (div.line)
2x -2:52.7.0 window:toggle-menu-bar (input.hidden-input)
2x -2:16.7.0 tree-view:toggle (ul.list-inline.tab-bar.inset-panel)
-2:06.5.0 symbols-view:toggle-project-symbols (input.hidden-input)
-2:02.6.0 core:select-all (input.hidden-input)
-1:29.6.0 application:new-file (ul.list-inline.tab-bar.inset-panel)
2x -0:25.1.0 find-and-replace:use-selection-as-replace-pattern (input.hidden-input)
-0:18.6.0 markdown-preview-enhanced:toggle (div.line.cursor-line)
-0:11.1.0 markdown-themeable-pdf:export (div.line)
atom-image-resize 0.3.0
document-outline 2.1.2
intentions 1.1.5
language-markdown 0.29.0
markdown-image-assistant 0.2.2
markdown-preview-enhanced 0.15.10
markdown-themeable-pdf 1.2.1
I got this issue on my Windows 10
My PDF conversion was working well for several weeks
But this issue happens after I reboot my PC, and now it cannot be fix by rebooting again
I've tried to delete all characters including "_" in my file path
I also tried to reopen atom several times, but none of the above solve this issue
Any ideas..? Should I change any setting of this package?
---------------Update
Okay now I think it's not the issue about this package
Because I found that the "Project Tab" in atom somehow disappeared
And it showed up again when I was trying to rename my .md files in atom
After the project tab showed up, the PDF conversion works again
It's sounds strange but at least everything is fine now xD
I had the same problem as cshu0520 and I can confirm after I was able to open the project pane, aka "tree view" using "Packages > Tree View > Toggle" (⌘/) the error went away. (edited to escape the slash w/ the macOS shortcut)
I had the same problem too.And I fund that I was not open the folder at atom, I just open the *.md at atom.So open all folder at atom,you can fix this problem.(From a Caiji programmer,2333)
(中文版解决方案) 我是在linux下用命令行打开的一个Markdown文件,然后右键Markdown to PDF的时候出的问题. 似乎是如果只打开了一个文件就会出现这个问题....请尽量打开文件夹吧...
I had the same problem on Windows 10 when I opened a .md file directly (from desktop or another folder). Opening the Tree View fixed it only if I added a Project folder. It didn't have to be the directory where the file was being held either, just any Project folder or it wouldn't work.
so,open it in folder(possiblity).
---Original--- From: "Anita Wu"notifications@github.com Date: Tue, Apr 30, 2019 02:54 AM To: "cakebake/markdown-themeable-pdf"markdown-themeable-pdf@noreply.github.com; Cc: "sumover"2638864855@qq.com;"Comment"comment@noreply.github.com; Subject: Re: [cakebake/markdown-themeable-pdf] Uncaught TypeError: Path must be a string. Received undefined (#37)
I had the same problem on Windows 10 when I opened a .md file directly (from desktop or another folder). Opening the Tree View fixed it only if I added a Project folder. It didn't have to be the directory where the file was being held either, just any Project folder or it wouldn't work.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
Is pending for re-examination
Is pending for re-examination
so....why pending for re-examination?just cd to folder and "atom ."
Hello, sorry, but I will no longer maintain the project.
It would be very good to find a new owner for this project, who will take care of updating and expanding the Atom package. A new version based on Chrome Headless has already been prepared in a feature branch.
[Enter steps to reproduce below:]
Atom Version: 1.5.4 System: Mac OS X 10.11 Thrown From: markdown-themeable-pdf package, v0.10.2
Stack Trace
Uncaught TypeError: Path must be a string. Received undefined
Commands
Config
Installed Packages