Skip to content

StringDocument title does not render with error log #2

@rikashore

Description

@rikashore

I have the following code

const string sourceCode = "<{%>";

var doc = new StringDocument("code.eol", sourceCode);
var highlightRegion = new SourceRegion(new SourceSpan(doc, err.Position.Offset, err.Position.Line));

log.Log(new LogEntry(Severity.Error, new Text(err.Message), new HighlightedSource(highlightRegion)));

And I get the following output

image

But unlike the example, I don't see the code.eol get rendered. Is there something I'm doing wrong? Would appreciate some help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions