fastn-old icon indicating copy to clipboard operation
fastn-old copied to clipboard

wrong line number while interpreting the document

Open AbrarNitk opened this issue 3 years ago • 1 comments

Wrong line number is coming in error because we are pushing auto imports in the virtual document before parsing it.

Solution: We need auto-import in the document aliases, so while parsing the document we can push auto-imports in document aliases from package aliases.

AbrarNitk avatar Jun 17 '22 06:06 AbrarNitk

Just a thought, is it possible to attach auto-imports at the end of the document instead at the beginning since all imports are processed after traversing the entire document once. And in this way the original document wont get shifted downwards when we attach the autoimports at the beginning.

Heulitig avatar Jul 06 '22 09:07 Heulitig