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]: Status bar has duplicated entries after error #45

Closed
3 tasks done
tobiasvl opened this issue Nov 26, 2022 · 5 comments
Closed
3 tasks done

[Bug]: Status bar has duplicated entries after error #45

tobiasvl opened this issue Nov 26, 2022 · 5 comments
Assignees

Comments

@tobiasvl
Copy link

tobiasvl commented Nov 26, 2022

Issue validation

Workflow

Obsidian plugin 💠

Describe the bug

My Obsidian status bar has multiple entries from this plugin.

There's also an error occurring with the plugin, but I'm not sure if that's related.

How to reproduce ?

Unsure.

Configuration

{
  "githubRepo": "blog-test",
  "githubName": "tobiasvl",
  "GhToken": "RETRACTED",
  "githubBranch": "master",
  "shareKey": "published",
  "ExcludedFolder": "",
  "fileMenu": false,
  "editorMenu": false,
  "downloadedFolder": "fixed",
  "folderDefaultName": "_posts",
  "yamlFolderKey": "",
  "rootFolder": "",
  "workflowName": "",
  "embedImage": true,
  "defaultImageFolder": "assets/images",
  "autoCleanUp": false,
  "autoCleanUpExcluded": "",
  "folderNote": false,
  "convertWikiLinks": true,
  "convertForGithub": false,
  "subFolder": "",
  "embedNotes": false,
  "copyLink": false,
  "mainLink": "",
  "linkRemover": "",
  "hardBreak": false,
  "logNotice": true,
  "convertDataview": true,
  "useFrontmatterTitle": false,
  "censorText": [],
  "inlineTags": false,
  "dataviewFields": [
    "jekyll-tags"
  ],
  "excludeDataviewValue": [],
  "metadataFileFields": [],
  "frontmatterTitleKey": "title",
  "shareExternalModified": false
}

Relevant log output

TypeError: Cannot read properties of undefined (reading 'commit')
    at GithubBranch.eval (plugin:obsidian-mkdocs-publisher:2625:40)
    at Generator.next (<anonymous>)
    at fulfilled (plugin:obsidian-mkdocs-publisher:47:24)

OS

No response

Anything else?

image

@tobiasvl tobiasvl added the bug label Nov 26, 2022
@Mara-Li
Copy link
Member

Mara-Li commented Nov 26, 2022

EDIT and remove your github token !!!

also : can i have the frontmatter of your shared file ? Do you use the beta ? This error occurs when it don't found the repo

@tobiasvl
Copy link
Author

tobiasvl commented Nov 26, 2022

Haha, thank you. Good looking out, I totally missed that, but the token was actually an old revoked one.

The fact that the token was revoked is the reason for the error. This bug report isn't about the error itself, but the duplicated status line.

@tobiasvl
Copy link
Author

Seems to be a duplicate of #6

@tobiasvl
Copy link
Author

Still happening:

image

@Mara-Li
Copy link
Member

Mara-Li commented Nov 27, 2022

I must try to understand how I can remove it before the end of the timer...

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