KosmosisDire / obsidian-webpage-export

Export html from single files, canvas pages, or whole vaults. Direct access to the exported HTML files allows you to publish your digital garden anywhere. Focuses on flexibility, features, and style parity.
https://docs.obsidianweb.net/
MIT License
886 stars 76 forks source link

[Bug] [1.8.01]: The popup became invisible, and generation become then impossible #473

Open iherman opened 4 months ago

iherman commented 4 months ago

What happened?

When starting the export the vault I do not see the usual pop up windows, but I see this:

Screenshot 2024-07-19 at 17 44 27

and, therefore, nothing works

Reproduction

See above

Last Working Version

I am not sure which version worked; what I know is that about a week ago it worked, and I did not touch the plugin since.

Version

1.8.01

Operating System

Mac OS Sonoma 14.5

Obsidian Version

1.6.7, installer 1.5.3

Which browsers can you reproduce this in?

No response

Relevant log output

Log:

Settings:
    settingsVersion ------------- 1.8.01
    makeOfflineCompatible         true
    inlineAssets ---------------- true
    includePluginCSS              1 plugins included
    includeSvelteCSS ------------ true
    titleProperty                 title
    customHeadContentPath -------
    faviconPath                   /Users/ivan/Pictures/Small Photos/Ivan/caricature.png
    documentWidth --------------- 50em
    sidebarWidth                  20em
    minOutlineCollapse ---------- 2
    startOutlineCollapsed         false
    allowFoldingHeadings -------- true
    allowFoldingLists             true
    allowResizingSidebars ------- true
    logLevel                      warning
    minifyHTML ------------------ true
    makeNamesWebStyle             false
    onlyExportModified ---------- false
    deleteOldFiles                false
    addThemeToggle -------------- true
    addOutline                    true
    addFileNav ------------------ true
    addSearchBar                  false
    addGraphView ---------------- false
    addTitle                      true
    addRSSFeed ------------------ false
    siteURL                       http://dashboard.ivan-herman.name/
    authorName ------------------ Ivan Herman
    vaultTitle                    Home
    exportPreset ---------------- documents
    openAfterExport               false
    graphAttractionForce -------- 1
    graphLinkLength               10
    graphRepulsionForce --------- 150
    graphCentralForce             3
    graphEdgePruning ------------ 100
    graphMinNodeSize              3
    graphMaxNodeSize ------------ 7
    showDefaultTreeIcons          true
    emojiStyle ------------------ Native
    defaultFileIcon               lucide//file
    defaultFolderIcon ----------- lucide//folder
    defaultMediaIcon              lucide//file-image
    exportPath ------------------ /Users/ivan/W3C/WWW/LocalData/Obsidian
    filesToExport                 1
    inlineCSS ------------------- false
    inlineJS                      false
    inlineImages ---------------- false
    sidebarsAlwaysCollapsible     false
    addFilenameTitle ------------ true
    customLineWidth              
    contentWidth ----------------
    incrementalExport             false
    deleteOldExportedFiles ------ true
    addDarkModeToggle             true
    includeOutline -------------- true
    includeGraphView              false
    includeFileTree ------------- true

Enabled Plugins:
    Advanced Tables
    Copy as HTML
    Image Context Menus
    Editor Syntax Highlight
    Webpage HTML Export
    Minimal Theme Settings
    Table of Contents
    Local REST API
    Homepage
    Natural Language Dates
    Recent Files
    Copy document as HTML
    Tag Wrangler
    LanguageTool Integration
    Change Case
    Symbols Prettifier
    Merge Notes
    markdown export
    Header Enhancer
    Omnisearch
    Text Extractor
    GitHub Link
    Dataview

Additional Info

No response

KosmosisDire commented 4 months ago

Hi this is probably due to you having some large folder with thousands of files in it. I had someone with this problem who had a node modules folder causing this.

If you use the beta version this should be improved

iherman commented 4 months ago

Hi this is probably due to you having some large folder with thousands of files in it. I had someone with this problem who had a node modules folder causing this.

Unfortunately, that is not my case. I took a quick look at the various directories, and the largest number of individual notes is around 170. Rough estimate is that the whole vault (I only have one) has around 300 notes in it, some with attachments in a separate directory.

If you use the beta version this should be improved

I will take a look later today.

KosmosisDire commented 4 months ago

This may be a different error then. Could you press Ctrl shift i. And then go to the console tab, and then open the export panel from the ribbon? There will probably be an error that pops up. And send a screenshot of the error

iherman commented 4 months ago

Hm. I tried that key combination and there was no reaction whatsoever. Actually, while those two windows were up, there was no reaction on any other key combination either.

B.t.w., and I should have done that before raising the issue: I deactivated all other plugins to see if there was a combination of issues. But it had no effect, the situation is unchanged.

KosmosisDire commented 4 months ago

Ah sorry it is different on Mac, Option + ⌘ + i should do the trick according to Google. Press the key combination before opening the plugin windows

iherman commented 4 months ago

Ah. I could dump the log, see below

I made a fresh start of obsidian before doing this, so the only thing that appears is related to your plugin.

app.js:1 Obsidian Developer Console
plugin:webpage-html-export:74719 Loading webpage-html-export plugin
plugin:table-editor-obsidian:28854 loading markdown-table-editor plugin
plugin:dataview:20327 Dataview: version 0.5.67 (requires obsidian 0.13.11)
plugin:obsidian-minimal-settings:67 Folding is on
plugin:obsidian-minimal-settings:81 Line numbers are off
plugin:obsidian-minimal-settings:91 Readable line length is off
plugin:recent-files-obsidian:265 Recent Files: Loading plugin v1.4.1
plugin:symbols-prettifier:287 loading symbols prettifier
plugin:obsidian-plugin-toc:20 Load Table of Contents plugin
plugin:dataview:12894 Dataview: all 277 files have been indexed in 0.129s (277 cached, 0 skipped).
plugin:omnisearch:103 Omnisearch - 301 files total
plugin:omnisearch:103 Omnisearch - Cache is enabled
plugin:obsidian-local-rest-api:49502 [REST API] Listening on https://127.0.0.1:27124/
plugin:obsidian-local-rest-api:49511 [REST API] Listening on http://127.0.0.1:27123/
plugin:omnisearch:103 Omnisearch - Loading index from cache: 650.05029296875 ms
plugin:omnisearch:103 Omnisearch - Indexing total time: 651.0009765625 ms
plugin:webpage-html-export:69202 Uncaught (in promise) TypeError: title.endsWith is not a function
    at Website.getTitleAndIcon (plugin:webpage-html-export:69202:17)
    at FilePickerTree.populateTree (plugin:webpage-html-export:69401:39)
    at async FilePickerTree.generateTree (plugin:webpage-html-export:69310:5)
    at async FilePickerTree.generateTree (plugin:webpage-html-export:69420:5)
    at async _ExportModal.open (plugin:webpage-html-export:69609:7)
    at async _SettingsPage.updateSettings (plugin:webpage-html-export:70072:14)
    at async HTMLExporter.export (plugin:webpage-html-export:74670:16)
getTitleAndIcon @ plugin:webpage-html-export:69202
populateTree @ plugin:webpage-html-export:69401
await in populateTree (async)
eval @ plugin:webpage-html-export:74728
KosmosisDire commented 4 months ago

Ah I know what is wrong here. Somewhere in your vault you have an obsidian property called title and instead of being set to text, that title is set to some other thing like a number or something. I will fix this, but in the mean time it should be possible to track down that property in your vault and remove it or fix it

iherman commented 4 months ago

Ah I know what is wrong here. Somewhere in your vault you have an obsidian property called title and instead of being set to text, that title is set to some other thing like a number or something.

Yes, I had a title property, but it was set to be a text. The only change that had occurred lately is that I set up templates that used this property. For some reason, the templating system may have made a mistake in setting the property. If I changed the property for (the few) notes that were generated via those templates, then things worked again. You may want to dig into this a bit deeper.

To be on the safe side, I changed the title property to page-title everywhere I used it (there was a redundancy anyway) and, with that, things are in order now.

Thanks for your help, I consider this issue closed.