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

Tag colours are case sensitive #3982

Open
1 of 7 tasks
JR-Mitchell opened this issue Mar 22, 2024 · 0 comments
Open
1 of 7 tasks

Tag colours are case sensitive #3982

JR-Mitchell opened this issue Mar 22, 2024 · 0 comments
Labels
scope.views Related to Preview, TreeView, UI Panels, and other webviews status.triage-needed type.bug Something isn't working

Comments

@JR-Mitchell
Copy link

Please select the area your bug applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)

  • Workspace. VSCode workspace, vaults, Intellisense/autocomplete, Dendron settings
  • Lookup. Dendron's Lookup Command
  • Views. Dendron Preview, Tree View, Side Panels in the UI
  • Schema. Dendron Schemas
  • Pod. Data import from / export to Dendron
  • Publish. External Site Publish
  • Markdown. Markdown features, such as syntax support and features

Describe the bug

The links provided by tags are case-insensitive (i.e writing #todo and #TODO will both redirect to tags.todo.md).
However, the colour displayed beside these tags are different, even if a colour for the tag is set in the frontmatter of the tag's file.

To Reproduce

Steps to reproduce the behavior:

  1. Create a new tag note, e.g tags.bugtest.md.
  2. Create a new note, and insert the tag #bugtest, and then the tag #BUGTEST
  3. Verify that both tags redirect to tags.bugtest.md
  4. See that the colour displayed for these two tags is different, both in the markdown editor and the preview
  5. Specify a colour in the frontmatter, e.g color: "#C62267"
  6. See that the issue is still occurring

Expected behavior

  • Two tags which refer to the same tag note display the same colour, independent of capitalisation
  • The colour specified in the frontmatter for a tag should be respected independent of capitalisation

Screenshots

Screenshot 2024-03-22 at 11 27 03
Screenshot 2024-03-22 at 11 26 26

Desktop (please complete the following information)

  • OS: macOS Sonoma 14.2.1
  • Browser (if with published websites; include version): N/A
  • Versions (all that apply to bug):
    • Dendron Extension: v0.123.0
    • VS Code version: v1.63.2
    • Dendron CLI: N/A

Additional context

Add any other context about the problem here.

Dendron Log file

{"level":30,"time":1711106427194,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"Logger:configure","msg":"exit","logLevel":"info"}
{"level":30,"time":1711106427253,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"_activate","stage":"prod","isDebug":false,"logLevel":"info","logPath":"/Users/jrmitchell/Library/Application Support/Code/logs/20240322T091033/exthost1/dendron.dendron","extensionPath":"/Users/jrmitchell/.vscode/extensions/dendron.dendron-0.123.0","extensionUri":"/Users/jrmitchell/.vscode/extensions/dendron.dendron-0.123.0","workspaceFile":"/Users/jrmitchell/Desktop/Notes/dendron.code-workspace","workspaceFolders":["/Users/jrmitchell/Desktop/Notes/notes"]}
{"level":30,"time":1711106427255,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"SegmentClient","msg":"No cache path for Segment specified. Failed event uploads will not be retried."}
{"level":30,"time":1711106427256,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"SegmentClient","msg":"user telemetry setting: disabled by command"}
{"level":30,"time":1711106427256,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"DendronExtension","msg":"initialized"}
{"level":30,"time":1711106427331,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"_activate","msg":"initializeWorkspace","wsType":"CODE","currentVersion":"0.123.0","previousGlobalVersion":"0.123.0","extensionInstallStatus":"NO_CHANGE"}
{"level":30,"time":1711106427332,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"WorkspaceActivator.init:postSetupTraits","wsRoot":"/Users/jrmitchell/Desktop/Notes"}
{"level":30,"time":1711106427338,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"runMigrationsIfNecessary","changes":[],"workspaceInstallStatus":"NO_CHANGE"}
{"level":30,"time":1711106427338,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"WorkspaceActivator.init:postMigration","wsRoot":"/Users/jrmitchell/Desktop/Notes"}
{"level":30,"time":1711106427347,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"WorkspaceActivator.init:postWsServiceInitialize","wsRoot":"/Users/jrmitchell/Desktop/Notes"}
{"level":30,"time":1711106427356,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"execServer","state":"enter"}
{"level":30,"time":1711106427358,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"execServer","state":"post:exec.node"}
{"level":30,"time":1711106428052,"pid":6536,"hostname":"JRs-MacBook-Pro.local","name":"SegmentClient","msg":"No cache path for Segment specified. Failed event uploads will not be retried."}
{"level":30,"time":1711106428052,"pid":6536,"hostname":"JRs-MacBook-Pro.local","name":"SegmentClient","msg":"user telemetry setting: disabled by command"}
{"level":30,"time":1711106428059,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"execServer","state":"message","message":"60796"}
{"level":30,"time":1711106428059,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"handleServerProcess","msg":"subprocess running","pid":6536}
{"level":30,"time":1711106428059,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"startServerProcess","msg":"post-start-server","port":60796,"durationStartServer":704}
{"level":30,"time":1711106428060,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"WorkspaceActivator.init:verifyOrStartServerProcess","port":60796}
{"level":30,"time":1711106428064,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"WorkspaceActivator.init:exit"}
{"level":30,"time":1711106428067,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"SegmentClient","msg":"user telemetry setting: disabled by command"}
{"level":30,"time":1711106428067,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","msg":"Telemetry is disabled? true"}
{"level":30,"time":1711106428067,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","msg":"Segment Residual Cache Path is at /Users/jrmitchell/Library/Application Support/Code/User/globalStorage/dendron.dendron/segmentresidualcache.log"}
{"level":30,"time":1711106428067,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"SegmentClient","msg":"Attempting to flush residual segment data from file."}
{"level":30,"time":1711106428071,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"_activate:postSetupWorkspace","platform":"darwin","extensions":[{"id":"dendron.dendron","version":"0.123.0","active":true},{"id":"dendron.dendron-paste-image","version":"1.1.1","active":false},{"id":"dendron.dendron-markdown-shortcuts"},{"id":"redhat.vscode-yaml"}],"vaults":[{"fsPath":".","selfContained":true,"name":"Notes"}]}
{"level":30,"time":1711106428073,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"dendron.reloadIndex:run","msg":"pre-execute"}
{"level":30,"time":1711106428073,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"ReloadIndex.execute","msg":"enter"}
{"level":30,"time":1711106428140,"pid":6536,"hostname":"JRs-MacBook-Pro.local","name":"logger","ctx":"parsingSchemas","fname":"meetings","root":{"fsPath":".","selfContained":true,"name":"Notes"},"imports":[]}
{"level":30,"time":1711106428201,"pid":6536,"hostname":"JRs-MacBook-Pro.local","name":"logger","ctx":"parsingSchemas","fname":"daily","root":{"fsPath":".","selfContained":true,"name":"Notes"},"imports":[]}
{"level":30,"time":1711106428203,"pid":6536,"hostname":"JRs-MacBook-Pro.local","name":"logger","ctx":"parsingSchemas","fname":"projects","root":{"fsPath":".","selfContained":true,"name":"Notes"},"imports":[]}
{"level":30,"time":1711106428207,"pid":6536,"hostname":"JRs-MacBook-Pro.local","name":"logger","ctx":"parsingSchemas","fname":"clients","root":{"fsPath":".","selfContained":true,"name":"Notes"},"imports":[]}
{"level":30,"time":1711106428209,"pid":6536,"hostname":"JRs-MacBook-Pro.local","name":"logger","ctx":"parsingSchemas","fname":"root","root":{"fsPath":".","selfContained":true,"name":"Notes"},"imports":[]}
{"level":30,"time":1711106428971,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"ReloadIndex.execute","durationEngineInit":896}
{"level":30,"time":1711106428971,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"ReloadIndex.execute","msg":"exit"}
{"level":30,"time":1711106428971,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"dendron.reloadIndex:run","msg":"post-execute"}
{"level":30,"time":1711106428972,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"reloadWorkspace","msg":"post-ws.reloadWorkspace"}
{"level":30,"time":1711106428972,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"reloadWorkspace","msg":"exit"}
{"level":30,"time":1711106428973,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"postReloadWorkspace","msg":"same wsVersion"}
{"level":30,"time":1711106428973,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"postReloadWorkspace","msg":"exit"}
{"level":30,"time":1711106428973,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"setupViews","msg":"init:treeViewV2"}
{"level":30,"time":1711106428973,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"setupBacklinkTreeView","msg":"init:backlinks"}
{"level":30,"time":1711106428983,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"WorkspaceActivator:activate","msg":"fin startClient","durationReloadWorkspace":905}
{"level":30,"time":1711106428983,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"activateWorkspace","stage":"prod","msg":"enter"}
{"level":30,"time":1711106428984,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"togglePluginActiveContext","state":"togglePluginActiveContext: true"}
{"level":30,"time":1711106429021,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"showWelcomeOrWhatsNew","version":"0.123.0","previousExtensionVersion":"0.0.0"}
{"level":30,"time":1711106429208,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"updateDecorations","msg":"decorating...","payload":{"decorationsLength":2,"diagnosticsLength":0}}
{"level":30,"time":1711106432851,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"WindowWatcher:onDidChangeVisibleTextEditors","editorPaths":[]}
{"level":30,"time":1711106432851,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"refreshBacklinksChangeActiveTextEditor"}
{"level":30,"time":1711106432863,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"WindowWatcher:onDidChangeVisibleTextEditors","editorPaths":["/Users/jrmitchell/Desktop/Notes/notes/tags.todo.md"]}
{"level":30,"time":1711106432863,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"refreshBacklinksChangeActiveTextEditor"}
{"level":30,"time":1711106432868,"pid":6526,"hostname":"JRs-MacBook-Pro.local","name":"dendron","ctx":"WorkspaceWatcher:onFirstOpen","msg":"enter","fname":"tags.todo"}
@github-actions github-actions bot added scope.views Related to Preview, TreeView, UI Panels, and other webviews status.triage-needed type.bug Something isn't working labels Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope.views Related to Preview, TreeView, UI Panels, and other webviews status.triage-needed type.bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant