Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Error during publish because of a list in the category #97

Closed
3 tasks done
Valkann opened this issue Jan 30, 2023 · 4 comments
Closed
3 tasks done

[Bug]: Error during publish because of a list in the category #97

Valkann opened this issue Jan 30, 2023 · 4 comments
Assignees

Comments

@Valkann
Copy link

Valkann commented Jan 30, 2023

Issue validation

Workflow

Obsidian plugin 💠

Describe the bug

when I run a publish I get this error in the Obsidian console.

plugin:obsidian-mkdocs-publisher:32 Uncaught (in promise) TypeError: t.endsWith is not a function
    at Uu (plugin:obsidian-mkdocs-publisher:32:2995)
    at Hu (plugin:obsidian-mkdocs-publisher:32:3328)
    at Re (plugin:obsidian-mkdocs-publisher:32:4204)
    at Vt.getAllFileWithPath (plugin:obsidian-mkdocs-publisher:36:6728)
    at eval (plugin:obsidian-mkdocs-publisher:33:12439)
    at Generator.next (<anonymous>)
    at eval (plugin:obsidian-mkdocs-publisher:6:1359)
    at new Promise (<anonymous>)
    at D (plugin:obsidian-mkdocs-publisher:6:1179)
    at Qa (plugin:obsidian-mkdocs-publisher:33:12357)

How to reproduce ?

No response

Configuration

{
"githubRepo": "Obsidian",
"githubName": "Valkann",
"GhToken": "XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"githubBranch": "main",
"shareKey": "share",
"excludedFolder": [],
"fileMenu": true,
"editorMenu": true,
"downloadedFolder": "yaml",
"folderDefaultName": "docs/notes",
"yamlFolderKey": "category",
"rootFolder": "docs",
"workflowName": "",
"embedImage": true,
"defaultImageFolder": "",
"autoCleanUp": true,
"autoCleanUpExcluded": [],
"folderNote": false,
"folderNoteRename": "index.md",
"convertWikiLinks": true,
"convertForGithub": true,
"subFolder": "",
"embedNotes": true,
"copyLink": false,
"mainLink": "",
"linkRemover": "",
"hardBreak": false,
"logNotice": false,
"convertDataview": true,
"useFrontmatterTitle": false,
"censorText": [],
"inlineTags": false,
"dataviewFields": [],
"excludeDataviewValue": [],
"metadataFileFields": [],
"frontmatterTitleKey": "title",
"shareExternalModified": true,
"automaticallyMergePR": true,
"metadataExtractorPath": "",
"convertInternalNonShared": false,
"frontmatterTitleRegex": "",
"frontmatterTitleReplacement": "",
"ExcludedFolder": []
}

Relevant log output

No response

OS

Windows

Anything else?

No response

@Valkann Valkann added the bug label Jan 30, 2023
@Mara-Li
Copy link
Member

Mara-Li commented Jan 30, 2023

  • Plugin version
  • Commands tryed?

@Valkann
Copy link
Author

Valkann commented Jan 30, 2023

Version 4.11.16
Command : refresh published and upload new notes

@Valkann
Copy link
Author

Valkann commented Jan 30, 2023

Hum my bad

The problem was on my side, I mismanaged a category.

This notation returns the error I had earlier.

category: 
- projets/MOTW/MDF/monstre

I close the subject, sorry again

@Valkann Valkann closed this as completed Jan 30, 2023
@Mara-Li
Copy link
Member

Mara-Li commented Jan 30, 2023

Good to know anyway ! Maybe I can create a way to handle this (or prevent errors)

@Mara-Li Mara-Li reopened this Jan 30, 2023
@Mara-Li Mara-Li self-assigned this Feb 4, 2023
@Mara-Li Mara-Li changed the title [Bug]: Error during publish [Bug]: Error during publish because of a list in the category Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants