sethyuan / logseq-plugin-tocgen

Generate a TOC of any page anywhere to quickly access the page's content.
MIT License
144 stars 10 forks source link

the plugin load slowly + not working #53

Closed chs33 closed 1 year ago

chs33 commented 1 year ago

I am installing the plugin through "Load unpacked plugin"(didn't install through marketplace because of some network constrain). It is slow to load and logseq will gives warning:

This plugin #logseq-plugin-tocgen takes too long to load, affecting the application startup time and potentially causing other plugins to fail to load

And after installation, it is not working.

this is what you get after you type in 'toc' in console:

instrument.js:191 [frontend.handler] {:exception #object[ReferenceError ReferenceError: toc is not defined], :line 51}
(anonymous) @ instrument.js:191
$cljs$core$apply_to_simple$cljs$0core$0IFn$0_invoke$0arity$06$$ @ core.cljs:4014
$cljs$core$apply_to_simple$cljs$0core$0IFn$0_invoke$0arity$05$$ @ core.cljs:3955
$cljs$core$apply_to_simple$cljs$0core$0IFn$0_invoke$0arity$04$$ @ core.cljs:3949
$cljs$core$apply_to_simple$cljs$0core$0IFn$0_invoke$0arity$03$$ @ core.cljs:3943
$APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$ @ core.cljs:3972
(anonymous) @ console.cljs:35
$log_record_handler$$ @ glogi.cljs:196
(anonymous) @ log.js:700
$JSCompiler_StaticMethods_publish$$ @ log.js:704
$goog$log$publishLogRecord$$ @ log.js:1009
$lambdaisland$glogi$log$cljs$0core$0IFn$0_invoke$0arity$04$$ @ glogi.cljs:119
window.onerror @ handler.cljs:46
wa.onerror @ memo.js:44
instrument.js:191 [frontend.handler] ReferenceError: toc is not defined 
 ReferenceError: toc is not defined
    at <anonymous>:1:1
(anonymous) @ instrument.js:191
(anonymous) @ console.cljs:28
$log_record_handler$$ @ glogi.cljs:196
(anonymous) @ log.js:700
$JSCompiler_StaticMethods_publish$$ @ log.js:704
$goog$log$publishLogRecord$$ @ log.js:1009
$lambdaisland$glogi$log$cljs$0core$0IFn$0_invoke$0arity$04$$ @ glogi.cljs:119
window.onerror @ handler.cljs:46
wa.onerror @ memo.js:44
VM179:1 Uncaught ReferenceError: toc is not defined
    at <anonymous>:1:1

logseq: 0.8.16 plugin version: 2.0.0

sethyuan commented 1 year ago

The log you posted here is not relevant. Be sure you downloaded the zip file from the Releases page.

chs33 commented 1 year ago

The log you posted here is not relevant. Be sure you downloaded the zip file from the Releases page.

Thank you! not downloading from the release page is the problem.