Skip to content

URL of a file with error must contain line number #19

@alexander-yevsyukov

Description

@alexander-yevsyukov

I'm having the following error when running embed-code:

Panic: failed to embed code fragment into doc file `file:///Users/sanders/Projects/Spine/validation/docs/content/docs/validation/developer/runtime-library.md:76`: failed to parse an embedding instruction. Context: ParsingContext[embedding=`<nil>`, file=`../content/docs/validation/developer/runtime-library.md`, line=`404`]

The problem is that the file: URL does not open by IntelliJ IDEA. It is probably so because of two things:

  • Backticks around the URL.
  • Missing column component in the URL. There is only line number in the URL.

I've tried opening the URL from Chrome. It opens when backticks and the line number are stripped out. The file is definitely there.

Please try adding the line number to the URL and see if it opens in IDEA. It should. That worked in Spine Compiler errors in console.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions