Skip to content

Error positions for FFI related errors#3276

Merged
garyb merged 3 commits intopurescript:masterfrom
garyb:more-error-positions
Mar 11, 2018
Merged

Error positions for FFI related errors#3276
garyb merged 3 commits intopurescript:masterfrom
garyb:more-error-positions

Conversation

@garyb
Copy link
Copy Markdown
Member

@garyb garyb commented Mar 11, 2018

No description provided.

@kritzcreek
Copy link
Copy Markdown
Member

I looked at this before, does this PR just use the full PureScript module span for all the errors then? I looked into the JS parser and the JSAnnot constructor, but I guess we just want the error span to appear in the file that caused the rebuild?

@garyb
Copy link
Copy Markdown
Member Author

garyb commented Mar 11, 2018

They use the original PS module span yes.

We can always improve the spans later, just ensuring they have any sensible positions is the goal for now. MissingFFIImplementations is the only one we could give anything more specific than a module span for anyway, unless we were to start outputting positions for the JS files (which is also an option...)

@kritzcreek
Copy link
Copy Markdown
Member

Yeah I agree, just getting some sensible spans in there is the immediate goal.

@garyb garyb merged commit 80c671e into purescript:master Mar 11, 2018
@garyb garyb deleted the more-error-positions branch March 11, 2018 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants