Skip to content

Conversation

@ahus1
Copy link
Contributor

@ahus1 ahus1 commented Oct 3, 2020

I'm backporting a change that I applied in the IntelliJ AsciiDoc plugin to highlight problems with the operation macro in the editor.

When using logger.warn with a cursor the output contains the file and line number where the problem occurred.

The unit tests will log an example output like this (from a unit test)

WARNING: <stdin>: line 1: Snippet missing-snippet not found at C:\Users\...\AppData\Local\Temp\junit8239829976219138844\gradle-project\build\generated-snippets/some-operation/missing-snippet.adoc for operation some-operation

@wilkinsona wilkinsona added type: bug A bug and removed status: waiting-for-triage Untriaged issue labels Oct 30, 2020
@wilkinsona wilkinsona added this to the 2.0.6.RELEASE milestone Oct 30, 2020
@wilkinsona wilkinsona changed the title operation macro should log the location where the problem occurred Warnings logged by the operation block macro lack context Nov 13, 2020
@wilkinsona
Copy link
Member

Thanks very much, @ahus1.

@ahus1 ahus1 deleted the add-line-numbers-to-warnings branch November 13, 2020 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants