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

Wikilinks pointing to their own page do not show alias in Note Preview #3994

Open
1 of 7 tasks
goldenstein64 opened this issue Jan 8, 2025 · 0 comments
Open
1 of 7 tasks
Labels
scope.views Related to Preview, TreeView, UI Panels, and other webviews status.triage-needed type.bug Something isn't working

Comments

@goldenstein64
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

Wikilinks of the form [[alias|#header]] or [[alias|#^anchor]] do not show the alias in Dendron's Note Preview and act like naked links.

To Reproduce

  1. Paste this content into a note
[[alias name|#example-header]]
[[alias name|#^anchor]]

## Example Header

example anchor ^anchor
  1. Open the note preview: Ctrl+K V

Expected behavior

The note preview should show aliases in place of the wikilinks.

Screenshots

Code_oFsbFjZcQT

Desktop (please complete the following information)

  • OS: Microsoft Windows NT 10.0.22631.0 x64
  • Versions (all that apply to bug):
    • Dendron Extension: 0.124.0
    • VS Code version: 1.96.2

Additional context

This problem does not occur when exported (dendron publish export), it shows aliases there like normal.

There are also a few workarounds, such as:

  • putting the note's path in the link portion
[[alias name|root#example-header]]
[[alias name|root#^anchor]]

## Example Header

example anchor ^anchor
  • using a Markdown link. To my surprise, block anchors work in the export as well.
[alias name](#example-header)
[alias name](#^anchor)

## Example Header

example anchor ^anchor

Dendron Log file

log file
{"level":30,"time":1736307520622,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"Logger:configure","msg":"exit","logLevel":"info"}
{"level":30,"time":1736307520700,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"_activate","stage":"prod","isDebug":false,"logLevel":"info","logPath":"c:\\Users\\james\\AppData\\Roaming\\Code\\logs\\20250107T223839\\window1\\exthost\\dendron.dendron","extensionPath":"c:\\Users\\james\\.vscode\\extensions\\dendron.dendron-0.124.0","extensionUri":"c:\\Users\\james\\.vscode\\extensions\\dendron.dendron-0.124.0","workspaceFolders":["c:\\Users\\james\\Documents\\Projects\\Dendron"]}
{"level":30,"time":1736307520718,"pid":10816,"hostname":"JAMES-DESKTOP","name":"SegmentClient","msg":"No cache path for Segment specified. Failed event uploads will not be retried."}
{"level":30,"time":1736307520718,"pid":10816,"hostname":"JAMES-DESKTOP","name":"SegmentClient","msg":"user telemetry setting: enabled by cli default"}
{"level":30,"time":1736307520718,"pid":10816,"hostname":"JAMES-DESKTOP","name":"SegmentClient","msg":"telemetry initializing"}
{"level":30,"time":1736307520718,"pid":10816,"hostname":"JAMES-DESKTOP","name":"SegmentClient","msg":"using existing id"}
{"level":30,"time":1736307520719,"pid":10816,"hostname":"JAMES-DESKTOP","name":"SegmentClient","msg":"anonymous id","anonymousId":"su1e3cosmux0mori9z7pdyz"}
{"level":30,"time":1736307520724,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"DendronExtension","msg":"initialized"}
{"level":30,"time":1736307520906,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"_activate","msg":"initializeWorkspace","wsType":"NATIVE","currentVersion":"0.124.0","previousGlobalVersion":"0.124.0","extensionInstallStatus":"NO_CHANGE"}
{"level":30,"time":1736307520967,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"WorkspaceActivator.init:postSetupTraits","wsRoot":"c:\\Users\\james\\Documents\\Projects\\Dendron"}
{"level":30,"time":1736307520972,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"runMigrationsIfNecessary","changes":[],"workspaceInstallStatus":"NO_CHANGE"}
{"level":30,"time":1736307520972,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"WorkspaceActivator.init:postMigration","wsRoot":"c:\\Users\\james\\Documents\\Projects\\Dendron"}
{"level":30,"time":1736307520976,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"WorkspaceActivator.init:postWsServiceInitialize","wsRoot":"c:\\Users\\james\\Documents\\Projects\\Dendron"}
{"level":30,"time":1736307520978,"pid":10816,"hostname":"JAMES-DESKTOP","name":"execServer","state":"enter"}
{"level":30,"time":1736307520986,"pid":10816,"hostname":"JAMES-DESKTOP","name":"execServer","state":"post:exec.node"}
{"level":30,"time":1736307521366,"pid":15116,"hostname":"JAMES-DESKTOP","name":"SegmentClient","msg":"No cache path for Segment specified. Failed event uploads will not be retried."}
{"level":30,"time":1736307521366,"pid":15116,"hostname":"JAMES-DESKTOP","name":"SegmentClient","msg":"user telemetry setting: enabled by cli default"}
{"level":30,"time":1736307521366,"pid":15116,"hostname":"JAMES-DESKTOP","name":"SegmentClient","msg":"telemetry initializing"}
{"level":30,"time":1736307521366,"pid":15116,"hostname":"JAMES-DESKTOP","name":"SegmentClient","msg":"using existing id"}
{"level":30,"time":1736307521366,"pid":15116,"hostname":"JAMES-DESKTOP","name":"SegmentClient","msg":"anonymous id","anonymousId":"su1e3cosmux0mori9z7pdyz"}
{"level":30,"time":1736307521377,"pid":10816,"hostname":"JAMES-DESKTOP","name":"execServer","state":"message","message":"51990"}
{"level":30,"time":1736307521377,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"handleServerProcess","msg":"subprocess running","pid":15116}
{"level":30,"time":1736307521377,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"startServerProcess","msg":"post-start-server","port":51990,"durationStartServer":400}
{"level":30,"time":1736307521378,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"WorkspaceActivator.init:verifyOrStartServerProcess","port":51990}
{"level":30,"time":1736307521380,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"WorkspaceActivator.init:exit"}
{"level":30,"time":1736307521381,"pid":10816,"hostname":"JAMES-DESKTOP","name":"SegmentClient","msg":"user telemetry setting: enabled by cli default"}
{"level":30,"time":1736307521382,"pid":10816,"hostname":"JAMES-DESKTOP","name":"SegmentClient","msg":"telemetry initializing"}
{"level":30,"time":1736307521382,"pid":10816,"hostname":"JAMES-DESKTOP","name":"SegmentClient","msg":"using existing id"}
{"level":30,"time":1736307521382,"pid":10816,"hostname":"JAMES-DESKTOP","name":"SegmentClient","msg":"anonymous id","anonymousId":"su1e3cosmux0mori9z7pdyz"}
{"level":30,"time":1736307521382,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","msg":"Telemetry is disabled? false"}
{"level":30,"time":1736307521382,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","msg":"Segment Residual Cache Path is at c:\\Users\\james\\AppData\\Roaming\\Code\\User\\globalStorage\\dendron.dendron\\segmentresidualcache.log"}
{"level":30,"time":1736307521382,"pid":10816,"hostname":"JAMES-DESKTOP","name":"SegmentClient","msg":"Attempting to flush residual segment data from file."}
{"level":30,"time":1736307521386,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"_activate:postSetupWorkspace","platform":"win32","extensions":[{"id":"dendron.dendron","version":"0.124.0","active":true},{"id":"dendron.dendron-paste-image","version":"1.1.1","active":false},{"id":"dendron.dendron-markdown-shortcuts","version":"0.12.1","active":true},{"id":"redhat.vscode-yaml","version":"1.15.0","active":false}],"vaults":[{"fsPath":".","selfContained":true,"name":"Dendron"}]}
{"level":30,"time":1736307521387,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"dendron.reloadIndex:run","msg":"pre-execute"}
{"level":30,"time":1736307521387,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"ReloadIndex.execute","msg":"enter"}
{"level":30,"time":1736307521476,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"ReloadIndex.execute","durationEngineInit":87}
{"level":30,"time":1736307521476,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"ReloadIndex.execute","msg":"exit"}
{"level":30,"time":1736307521476,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"dendron.reloadIndex:run","msg":"post-execute"}
{"level":30,"time":1736307521478,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"reloadWorkspace","msg":"post-ws.reloadWorkspace"}
{"level":30,"time":1736307521479,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"reloadWorkspace","msg":"exit"}
{"level":30,"time":1736307521487,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"postReloadWorkspace","msg":"same wsVersion"}
{"level":30,"time":1736307521487,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"postReloadWorkspace","msg":"exit"}
{"level":30,"time":1736307521487,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"setupViews","msg":"init:treeViewV2"}
{"level":30,"time":1736307521488,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"setupBacklinkTreeView","msg":"init:backlinks"}
{"level":30,"time":1736307521507,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"WorkspaceActivator:activate","msg":"fin startClient","durationReloadWorkspace":107}
{"level":30,"time":1736307521507,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"activateWorkspace","stage":"prod","msg":"enter"}
{"level":30,"time":1736307521510,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"togglePluginActiveContext","state":"togglePluginActiveContext: true"}
{"level":30,"time":1736307521576,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"showWelcomeOrWhatsNew","version":"0.124.0","previousExtensionVersion":"0.0.0"}
{"level":30,"time":1736307521623,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"updateDecorations","msg":"decorating...","payload":{"decorationsLength":1,"diagnosticsLength":0}}
{"level":30,"time":1736307523239,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"dendron.dev.openLogs:run","msg":"pre-execute"}
{"level":30,"time":1736307523240,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"execute","opts":{}}
{"level":30,"time":1736307523245,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"dendron.dev.openLogs:run","msg":"post-execute"}
{"level":30,"time":1736307523251,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"WindowWatcher:onDidChangeVisibleTextEditors","editorPaths":[]}
{"level":30,"time":1736307523251,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"refreshBacklinksChangeActiveTextEditor"}
{"level":30,"time":1736307523263,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"WindowWatcher:onDidChangeVisibleTextEditors","editorPaths":["c:\\Users\\james\\AppData\\Roaming\\Code\\logs\\20250107T223839\\window1\\exthost\\dendron.dendron\\dendron.log"]}
{"level":30,"time":1736307523264,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"refreshBacklinksChangeActiveTextEditor"}
{"level":30,"time":1736307523264,"pid":10816,"hostname":"JAMES-DESKTOP","name":"dendron","ctx":"WorkspaceWatcher:onFirstOpen","msg":"enter","fname":"dendron.log"}
@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 Jan 8, 2025
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