How to show Error annotation?


#1

How to show Error annotation?
I want run language-processor in background, and show syntax error on EditorView.
I want to show the side of the line number.

My approach.
EditorView has a DisplayBuffer. DisplayBuffer has a markers.
I think I should make a custom EditorView. and implement text-processor and process error information to it.
I was try it. but create custom EditorView is very hard work. I could not get Editor instance in launch time of atom.

Does anyone knows how to show error annotation?


#2

Check out the Atom Lint package. It has a great implementation of showing code annotations.


#3

Cool! thanks a lot! I try to read immediately :smiley_cat: