markdown-links: [Error] Command 'Markdown Links: Show Graph' resulted in an error ([UriError]: Scheme contains illegal characters.)

Since two days ago I get an error when commanding Markdown Links: Show Graph:

Command ‘Markdown Links: Show Graph’ resulted in an error ([UriError]: Scheme contains illegal characters.)

I use the "markdown-links.fileIdRegexp": "(?<=^#).+$", setting which I got from here. My folder has ~1.500 files

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 2
  • Comments: 16 (4 by maintainers)

Most upvoted comments

@tchayen yes exactly. If the error would point to the file and line in the files that is causing the parsing error that would be extremely helpful

Ok, so two things would help:

  • Checking what has changed since 0.6.0 in the way parsing happens.
  • Providing better error handling that wouldn’t let a parsing error blow the whole graph.

Just had this issue, searched for ages, then found @RyanPersson’s solution:

Used VSCode’s search for ](( and that found an instance of this glitch! Removed the extra brackets and BOOM! graph working again.

Thanks for the help.

Downgrading the extension to 0.60 makes the graph work again.