Closed solariz closed 1 year ago
There is a console accessible via control shift i
Try checking that for errors. On 27 May 2022, 8:38 PM +0400, Marco G @.***>, wrote:
Hey, on my Windows Machine everyything works fine but on my Linux Desktop (popOS: GNOME + Ubuntu) unfortunately I can only use the Option "Print with retained formatting" no matter what If I click the Template Buttons just nothing happens. Is there a way to activate somekind of debug / logging to find what may cause that? Thank you — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>
ok, if I click on one of the Template buttons I immediatly receive this console error:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'replace')
at zl (index.0630bad3.js:140)
at Ac (index.0630bad3.js:142)
zl @ index.0630bad3.js:140
Ac @ index.0630bad3.js:142
async function (async)
Ac @ index.0630bad3.js:142
t @ index.0630bad3.js:50
mh @ index.0630bad3.js:39
vh @ index.0630bad3.js:39
yh @ index.0630bad3.js:39
mu @ index.0630bad3.js:39
Rp @ index.0630bad3.js:39
(anonymous) @ index.0630bad3.js:39
dp @ index.0630bad3.js:43
hh @ index.0630bad3.js:39
zp @ index.0630bad3.js:39
Kc @ index.0630bad3.js:39
Yc @ index.0630bad3.js:39
t.unstable_runWithPriority @ index.0630bad3.js:28
Mn @ index.0630bad3.js:39
pp @ index.0630bad3.js:43
Oh @ index.0630bad3.js:39
Following the Debug the line causing the exception is:
var n = t.replace(/:LOGBOOK:|collapsed:: true/gi, "");
Same problem occurs on Mac OSX version Logseq 0.7.6
@adxsoft this is a different error. What's happening is that you don't have a page open. Click the title of the journal page so that you can't scroll and it should work.
@solariz, it should work now
Hello @sawhney17 ,
i'm having the same behavior on linux. Cant use the templates. Here is what i got in the traceback.
Are you using the latest version of the plugin? Could you click the index.537 thing and send a screenshot of the highlighted line. On 26 Aug 2022, 10:15 AM +0400, Zodan Jodan @.***>, wrote:
Hello @sawhney17 , i'm having the same behavior on linux. Cant use the templates. Here is what i got in the traceback. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
Yes I'm running the latest version 2.2.5.
this is the file is in .logseq/plugins/logseq-pdf-export-plugin/dist/assets/index.537a73ae.js
its shasum is 88b07967841d1bbeed8d8275f35c96c9c14a7e53
the exact line that the error happen is
id:: `))}var $d=new KW().use(og).use(eZ);$d.inline.ruler.enable(["mark"]);async function Ac(t,e=void 0,n=void 0){var r;if(n!=null)throw oZ(),logseq.hideMainUI(),setTimeout(iZ,100),"No text to print";const o=await logseq.Editor.getCurrentPageBlocksTree();if(e!=null)Rf(await logseq.Editor.getBlock(e,{includeChildren:!0})),logseq.settings.blockExportHandling=="Keep title as name of page"?r=`# ${(await logseq.Editor.getCurrentPage()).originalName}`:logseq.settings.blockExportHandling=="Keep title as heading of block"?r=`# ${(await logseq.Editor.getBlock(e)).content}`:r="";else{for(const u in o)Rf(o[u]);r=`# ${(await logseq.Editor.getCurrentPage()).originalName}`}if(logseq.settings[`${t}Choice`]=="Bullets for non top level elements"){for(const u in Ue)if(console.log("Hi"),!(Ue[u].uuid==e&&logseq.settings.blockExportHandling=="Keep title as heading of block"&&e!=null)){var i=await zl(Ue[u][0],t);if(Ue[u][1]>1){i="- "+i;for(let k=1;k<Ue[u][1];k++)i=" "+i}console.log(i),r=`${r}
it happens in this part await zl(Ue[u][0],t)
and here is the start of the zl function
async function zl(t,e){var n=t.replaceAll(/:LOGBOOK:|collapsed:: true/gi,"");n...
note that i tried the same thing in windows and it gave the same error.
Cool. I’ve got my SATs tomorrow, will fix it on Sunday. On 26 Aug 2022, 10:38 AM +0400, Zodan Jodan @.***>, wrote:
Yes I'm running the latest version 2.2.5. this is the file is in .logseq/plugins/logseq-pdf-export-plugin/dist/assets/index.537a73ae.js its shasum is 88b07967841d1bbeed8d8275f35c96c9c14a7e53 the exact line that the error happen is id::
))}var $d=new KW().use(og).use(eZ);$d.inline.ruler.enable(["mark"]);async function Ac(t,e=void 0,n=void 0){var r;if(n!=null)throw oZ(),logseq.hideMainUI(),setTimeout(iZ,100),"No text to print";const o=await logseq.Editor.getCurrentPageBlocksTree();if(e!=null)Rf(await logseq.Editor.getBlock(e,{includeChildren:!0})),logseq.settings.blockExportHandling=="Keep title as name of page"?r=
# ${(await logseq.Editor.getCurrentPage()).originalName}:logseq.settings.blockExportHandling=="Keep title as heading of block"?r=
# ${(await logseq.Editor.getBlock(e)).content}:r="";else{for(const u in o)Rf(o[u]);r=
# ${(await logseq.Editor.getCurrentPage()).originalName}}if(logseq.settings[
${t}Choice]=="Bullets for non top level elements"){for(const u in Ue)if(console.log("Hi"),!(Ue[u].uuid==e&&logseq.settings.blockExportHandling=="Keep title as heading of block"&&e!=null)){var i=await zl(Ue[u][0],t);if(Ue[u][1]>1){i="- "+i;for(let k=1;k<Ue[u][1];k++)i=" "+i}console.log(i),r=
${r} it happens in this part await zl(Ue[u][0],t) and here is the start of the zl function async function zl(t,e){var n=t.replaceAll(/:LOGBOOK:|collapsed:: true/gi,"");n... note that i tried the same thing in windows and it gave the same error. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
Yep that did the trick..thanks
On Tue, 16 Aug 2022, 4:59 pm Aryan Sawhney, @.***> wrote:
@adxsoft https://github.com/adxsoft this is a different error. What's happening is that you don't have a page open. Click the title of the journal page so that you can't scroll and it should work.
— Reply to this email directly, view it on GitHub https://github.com/sawhney17/logseq-pdf-export/issues/25#issuecomment-1216226248, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF5V4HIR472CMNTVSJRIP73VZM36RANCNFSM5XEW3WJA . You are receiving this because you were mentioned.Message ID: @.***>
Hey,
on my Windows Machine everyything works fine but on my Linux Desktop (popOS: GNOME + Ubuntu) unfortunately I can only use the Option "Print with retained formatting" no matter what If I click the Template Buttons just nothing happens.
Is there a way to activate somekind of debug / logging to find what may cause that?
Thank you