Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: chain schema errors in Go for the LSP #1265

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

worstell
Copy link
Contributor

percolates errors up the chain of affected exports, e.g. if a type contains schema errors and is used in a verb schema, the errors will be highlighted in the type itself and the failing type will be highlighted in the verb that uses it

@worstell worstell requested a review from a team as a code owner April 15, 2024 20:48
@worstell worstell requested review from wesbillman and removed request for a team April 15, 2024 20:48
@alecthomas alecthomas mentioned this pull request Apr 15, 2024
@worstell worstell force-pushed the worstell/20240415-chain-go-errors branch 2 times, most recently from 2c6301b to 089fb1d Compare April 15, 2024 20:52
percolates errors up the chain of affected exports, e.g. if a type contains schema errors and is used in a verb schema, the errors will be highlighted in the type itself and the failing type will be highlighted in the verb that uses it
@worstell worstell force-pushed the worstell/20240415-chain-go-errors branch from 089fb1d to 4c09d6d Compare April 15, 2024 20:52
@worstell worstell merged commit c7d1b4d into main Apr 15, 2024
11 checks passed
@worstell worstell deleted the worstell/20240415-chain-go-errors branch April 15, 2024 20:56
Comment on lines +277 to +287
filename+":58:36-39: invalid request type \"ftl/failing.Request\"\n"+
filename+":62:1-1: invalid type \"ftl/failing.Request\"\n"+
filename+":62:35-38: invalid request type \"ftl/failing.Request\"\n"+
filename+":62:48-48: must return an error but is ftl/failing.Response\n"+
filename+":67:1-1: invalid type \"ftl/failing.Request\"\n"+
filename+":67:41-44: invalid request type \"ftl/failing.Request\"\n"+
filename+":67:55-55: first result must be a struct but is string\n"+
filename+":67:63-63: must return an error but is string\n"+
filename+":67:63-63: second result must not be ftl.Unit\n"+
filename+":74:1-1: verb \"WrongResponse\" already exported\n"+
filename+":79:6-6: invalid type \"ftl/failing.BadStruct\"\n"+
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So good!

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

Successfully merging this pull request may close these issues.

2 participants