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

Does not work in vscode.dev/azurerepos #367

Open
SebastianRaffel opened this issue Jan 31, 2025 · 2 comments
Open

Does not work in vscode.dev/azurerepos #367

SebastianRaffel opened this issue Jan 31, 2025 · 2 comments
Labels

Comments

@SebastianRaffel
Copy link

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:

  1. After start and opening the first .md file, i get this MsgBox:
    Image
  2. Then the extension sometimes works
    Image
  3. ... 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 :)

@DavidAnson
Copy link
Owner

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.

@DavidAnson
Copy link
Owner

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.

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

No branches or pull requests

2 participants