vscode-markdownlint
vscode-markdownlint copied to clipboard
Does not work in vscode.dev/azurerepos
Hello!
I access git repos stored in Azure repos using the browser-only version of vscode, e.g. https://vscode.dev/azurerepos/myOrg....
I run in a few, i think related issues:
- After start and opening the first .md file, i get this MsgBox:
- Then the extension sometimes works
- ... until i make the first change or save the file. I get errors like this:
[9:43:32 AM] INFO: Linting for "vscode-vfs://azurerepos/myOrg/myProj/myProj.wiki/Administration/Automated-user-authorization-and-aided-project-creation.md" will be run "onType".
[9:43:33 AM] ERROR: Exception while linting with markdownlint-cli2:
Error: Unable to use configuration file '/\myOrg\myProj\myProj.wiki/.markdownlint-cli2.jsonc'; The current repository is invalid
stack:
at Ha (https://davidanson.vscode-unpkg.net/DavidAnson/vscode-markdownlint/0.58.2/extension/bundle.web.js#vscode-extension:49:39205)
at eval (https://davidanson.vscode-unpkg.net/DavidAnson/vscode-markdownlint/0.58.2/extension/bundle.web.js#vscode-extension:49:43570)
at async Promise.all (index 0)
at async eval (https://davidanson.vscode-unpkg.net/DavidAnson/vscode-markdownlint/0.58.2/extension/bundle.web.js#vscode-extension:49:47572)
at async tc (https://davidanson.vscode-unpkg.net/DavidAnson/vscode-markdownlint/0.58.2/extension/bundle.web.js#vscode-extension:49:47506)
cause:
Error (FileSystemError): The current repository is invalid
stack:
at wi.e (https://main.vscode-cdn.net/stable/cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba/out/vs/workbench/api/worker/extensionHostWorkerMain.js?vscode-coi=2:113:9857)
at Object.readFile (https://main.vscode-cdn.net/stable/cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba/out/vs/workbench/api/worker/extensionHostWorkerMain.js?vscode-coi=2:113:7584)
[9:43:33 AM] ERROR: Exception while linting with markdownlint-cli2:
Error (FileSystemError): The current repository is invalid
stack:
at wi.e (https://main.vscode-cdn.net/stable/cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba/out/vs/workbench/api/worker/extensionHostWorkerMain.js?vscode-coi=2:113:9857)
at Object.readFile (https://main.vscode-cdn.net/stable/cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba/out/vs/workbench/api/worker/extensionHostWorkerMain.js?vscode-coi=2:113:7584)
[9:43:33 AM] ERROR: Exception while linting with markdownlint-cli2:
Error (FileSystemError): The current repository is invalid
stack:
at wi.e (https://main.vscode-cdn.net/stable/cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba/out/vs/workbench/api/worker/extensionHostWorkerMain.js?vscode-coi=2:113:9857)
at Object.readFile (https://main.vscode-cdn.net/stable/cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba/out/vs/workbench/api/worker/extensionHostWorkerMain.js?vscode-coi=2:113:7584)
[9:43:34 AM] ERROR: Exception while linting with markdownlint-cli2:
Error (FileSystemError): The current repository is invalid
stack:
at wi.e (https://main.vscode-cdn.net/stable/cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba/out/vs/workbench/api/worker/extensionHostWorkerMain.js?vscode-coi=2:113:9857)
at Object.readFile (https://main.vscode-cdn.net/stable/cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba/out/vs/workbench/api/worker/extensionHostWorkerMain.js?vscode-coi=2:113:7584)
i use
| key | value |
|---|---|
| Identifier | davidanson.vscode-markdownlint |
| Version | 0.58.2 |
| Last Updated | 2025-01-31, 10:04:15 |
i tried adding .markdownlint-cli2.jsonc and .markdownlint.json but it had no influence on it.
Since the plugin has this warning
In virtual workspaces, JavaScript is blocked for custom rules, markdown-it plugins, and configuration files.
i realize that functionality may be limited, but then again it starts up properly, and only then stops to work. Thank you in advance :)
The message for 1 and the exception for 3 are coming from VS Code, not this extension. The part you show in 2 that works is this extension. :) I think we need to figure out why VS Code doesn't like your repository. Can you please provide a link I can use to reproduce this? Have you tried it on github.dev? That's a similar site that I know works. Also, I'd suggest trying this without any extensions loaded. I think you will still get the error from one which will confirm that that's coming from VS Code itself.
I've double-checked and confirm the scenario you describe works in github.dev with the Markdown files in this repository: https://github.dev/DavidAnson/vscode-markdownlint.
If you can provide a reproduction on vscode.dev or github.dev, I'll have a look. But I suspect your configuration or your repository are somehow invalid like VS Code reports.
Hello @DavidAnson ! Thanks for the fast reply, and sorry for my slow one ;) I created a public DevOps project, and can reproduce the same issue there. I hope you can access it... https://vscode.dev/azurerepos/wurstfried/wikilint/wikilint.wiki
I can't reproduce the problem with your link. The project appears empty to me, but I can add a new Markdown file and it lints successfully and without exceptions. The stack you show above has two frames and both are from VS Code, not markdownlint. Please copy+paste the content of the other Output categories when this happens - maybe there are clues there. I'd also recommend trying to reproduce this on gitHub.dev or on another machine or with another account.