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

Unresolved References Issue with Subdirectories in VSCode Plugin #203

Open
TieWay59 opened this issue Jan 7, 2025 · 4 comments
Open

Unresolved References Issue with Subdirectories in VSCode Plugin #203

TieWay59 opened this issue Jan 7, 2025 · 4 comments

Comments

@TieWay59
Copy link

TieWay59 commented Jan 7, 2025

Hello @Feel-ix-343 ,

Issue Description:
When using the markdown-oxide plugin in VSCode, any link (which translates to "bidirectional links" or "backlinks") that are located in subdirectories is marked as unresolved ("Unresolved Reference" as shown in the screenshot). This happens regardless of whether the links are correctly set up and the files exist.

Reproduction Steps:

  1. Install the markdown-oxide VSCode extension.
  2. Create a markdown file with a bidirectional link to a file located in a subdirectory.
  3. Observe that the link is marked as unresolved in the VSCode editor.

Expected Behavior:
The bidirectional links should be recognized and resolved correctly, even if they point to files within subdirectories.

Current Behavior:
The links are marked as unresolved, which is incorrect and disrupts the workflow for managing backlinks.

Environment:

  • markdown-oxide plugin version: 1.1.0
  • Operating System: win10 & ubuntu22

Additional Information:
I have ensured that the links are correctly formatted and that the files they reference exist. I have also checked the plugin settings and ensured that they are configured correctly.

Screenshot:
image

Thank you for your attention to this matter.

@Feel-ix-343
Copy link
Owner

(hey I am able to check this out this weekend)

@Feel-ix-343
Copy link
Owner

(I didn't get to it sorry!)

@TieWay59
Copy link
Author

TieWay59 commented Feb 1, 2025

D:\PrjctRcyclst\tryout_test_demo_playgrounds\test_mdo
 ├──folder
 │  └──note2.md
 └──note1.md

PrjctRcyclst\tryout_test_demo_playgrounds\test_mdo took 3s
➜ cat .\note1.md           
# note 1 

[[note2]]

PrjctRcyclst\tryout_test_demo_playgrounds\test_mdo 
➜ cat .\folder\note2.md
# note 2

@Feel-ix-343 You can check this workspace, and you will find that the retrieval of file paths for bidirectional links in notes fails on the Windows 10 system.

@TieWay59
Copy link
Author

TieWay59 commented Feb 1, 2025

related logs I received:

2025-02-01 12:05:26.528 [warning] FelixZeller.markdown-oxide - Code actions of kind 'quickfix' requested but returned code action does not have a 'kind'. Code action will be dropped. Please set 'CodeAction.kind'.
2025-02-01 12:05:51.850 [warning] FelixZeller.markdown-oxide - Code actions of kind 'quickfix' requested but returned code action does not have a 'kind'. Code action will be dropped. Please set 'CodeAction.kind'.
[Warn  - 1:51:01 PM] Settings: Settings { dailynote: "%Y-%m-%d", new_file_folder_path: "", daily_notes_folder: "", heading_completions: true, title_headings: true, unresolved_diagnostics: true, semantic_tokens: true, tags_in_codeblocks: true, references_in_codeblocks: true, include_md_extension_md_link: false, include_md_extension_wikilink: false, hover: true, case_matching: Smart, inlay_hints: true, block_transclusion: true, block_transclusion_length: Full }
[Error - 1:51:01 PM] FILES Lock is good
Added file
[Warn  - 1:51:01 PM] Update Vault Started
[Error - 1:51:01 PM] VAULT Lock is good
[Warn  - 1:51:01 PM] Update Vault Done
[Warn  - 1:51:01 PM] Diagnostics Started
[Warn  - 1:51:01 PM] Diagnostics Done
[Warn  - 1:51:01 PM] Diagnostics Done took 0ms
[Info  - 1:51:01 PM] Recalculating inlayHints for InlayHintParams { work_done_progress_params: WorkDoneProgressParams { work_done_token: None }, text_document: TextDocumentIdentifier { uri: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/d%3A/PrjctRcyclst/tryout_test_demo_playgrounds/test_mdo/note1.md", query: None, fragment: None } }, range: Range { start: Position { line: 0, character: 0 }, end: Position { line: 3, character: 0 } } } Ok(Some([]))
[Warn  - 1:51:01 PM] Diagnostics Started
[Warn  - 1:51:01 PM] Diagnostics Done
[Warn  - 1:51:01 PM] Diagnostics Done took 0ms
[Warn  - 1:51:01 PM] Semantic Tokens Done took 0ms
[Info  - 1:51:07 PM] Recalculating inlayHints for InlayHintParams { work_done_progress_params: WorkDoneProgressParams { work_done_token: None }, text_document: TextDocumentIdentifier { uri: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/d%3A/PrjctRcyclst/tryout_test_demo_playgrounds/test_mdo/note1.md", query: None, fragment: None } }, range: Range { start: Position { line: 0, character: 0 }, end: Position { line: 3, character: 0 } } } Ok(Some([]))
[Warn  - 1:51:08 PM] Semantic Tokens Done took 0ms
[Info  - 1:51:08 PM] Recalculating inlayHints for InlayHintParams { work_done_progress_params: WorkDoneProgressParams { work_done_token: None }, text_document: TextDocumentIdentifier { uri: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/d%3A/PrjctRcyclst/tryout_test_demo_playgrounds/test_mdo/note1.md", query: None, fragment: None } }, range: Range { start: Position { line: 0, character: 0 }, end: Position { line: 3, character: 0 } } } Ok(Some([]))
[Info  - 1:51:09 PM] Recalculating inlayHints for InlayHintParams { work_done_progress_params: WorkDoneProgressParams { work_done_token: None }, text_document: TextDocumentIdentifier { uri: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/d%3A/PrjctRcyclst/tryout_test_demo_playgrounds/test_mdo/note1.md", query: None, fragment: None } }, range: Range { start: Position { line: 0, character: 0 }, end: Position { line: 3, character: 0 } } } Ok(Some([]))
[Info  - 1:51:09 PM] Recalculating inlayHints for InlayHintParams { work_done_progress_params: WorkDoneProgressParams { work_done_token: None }, text_document: TextDocumentIdentifier { uri: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/d%3A/PrjctRcyclst/tryout_test_demo_playgrounds/test_mdo/note1.md", query: None, fragment: None } }, range: Range { start: Position { line: 0, character: 0 }, end: Position { line: 3, character: 0 } } } Ok(Some([]))
[Info  - 1:54:23 PM] Recalculating inlayHints for InlayHintParams { work_done_progress_params: WorkDoneProgressParams { work_done_token: None }, text_document: TextDocumentIdentifier { uri: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/d%3A/PrjctRcyclst/tryout_test_demo_playgrounds/test_mdo/note1.md", query: None, fragment: None } }, range: Range { start: Position { line: 0, character: 0 }, end: Position { line: 3, character: 0 } } } Ok(Some([]))
[Warn  - 1:54:23 PM] Semantic Tokens Done took 0ms
[Info  - 1:54:24 PM] Recalculating inlayHints for InlayHintParams { work_done_progress_params: WorkDoneProgressParams { work_done_token: None }, text_document: TextDocumentIdentifier { uri: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/d%3A/PrjctRcyclst/tryout_test_demo_playgrounds/test_mdo/note1.md", query: None, fragment: None } }, range: Range { start: Position { line: 0, character: 0 }, end: Position { line: 3, character: 0 } } } Ok(Some([]))
[Warn  - 1:54:24 PM] Semantic Tokens Done took 0ms
[Info  - 2:11:21 PM] Recalculating inlayHints for InlayHintParams { work_done_progress_params: WorkDoneProgressParams { work_done_token: None }, text_document: TextDocumentIdentifier { uri: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/d%3A/PrjctRcyclst/tryout_test_demo_playgrounds/test_mdo/note1.md", query: None, fragment: None } }, range: Range { start: Position { line: 0, character: 0 }, end: Position { line: 3, character: 0 } } } Ok(Some([]))
[Info  - 2:11:26 PM] Recalculating inlayHints for InlayHintParams { work_done_progress_params: WorkDoneProgressParams { work_done_token: None }, text_document: TextDocumentIdentifier { uri: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/d%3A/PrjctRcyclst/tryout_test_demo_playgrounds/test_mdo/note1.md", query: None, fragment: None } }, range: Range { start: Position { line: 0, character: 0 }, end: Position { line: 3, character: 0 } } } Ok(Some([]))
[Info  - 2:11:26 PM] Recalculating inlayHints for InlayHintParams { work_done_progress_params: WorkDoneProgressParams { work_done_token: None }, text_document: TextDocumentIdentifier { uri: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/d%3A/PrjctRcyclst/tryout_test_demo_playgrounds/test_mdo/note1.md", query: None, fragment: None } }, range: Range { start: Position { line: 0, character: 0 }, end: Position { line: 3, character: 0 } } } Ok(Some([]))
[Info  - 2:11:27 PM] Recalculating inlayHints for InlayHintParams { work_done_progress_params: WorkDoneProgressParams { work_done_token: None }, text_document: TextDocumentIdentifier { uri: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/d%3A/PrjctRcyclst/tryout_test_demo_playgrounds/test_mdo/note1.md", query: None, fragment: None } }, range: Range { start: Position { line: 0, character: 0 }, end: Position { line: 3, character: 0 } } } Ok(Some([]))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

2 participants