Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

wrong line number while interpreting the document #218

Open
AbrarNitk opened this issue Jun 17, 2022 · 1 comment
Open

wrong line number while interpreting the document #218

AbrarNitk opened this issue Jun 17, 2022 · 1 comment

Comments

@AbrarNitk
Copy link
Contributor

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.

@Heulitig
Copy link
Contributor

Heulitig commented Jul 6, 2022

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants