You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that we have more fault tolerance in the module analysis, we have a number of cases where there can be type errors in a module but still have valid typed ASTs for those modules. Currently we are discarding those ASTs and bubbling up the error. We should instead update the compile step to use the new error filled ASTs and return without doing codegen https://github.com/gleam-lang/gleam/blob/main/compiler-core/src/build/package_compiler.rs#L140
By doing this, the language server should be able to use those modules and give a better editor experience when there are errors
Now that we have more fault tolerance in the module analysis, we have a number of cases where there can be type errors in a module but still have valid typed ASTs for those modules. Currently we are discarding those ASTs and bubbling up the error. We should instead update the compile step to use the new error filled ASTs and return without doing codegen https://github.com/gleam-lang/gleam/blob/main/compiler-core/src/build/package_compiler.rs#L140
By doing this, the language server should be able to use those modules and give a better editor experience when there are errors
The error is returned here. This can probably just be bubbled up into the return with a slight return type change
https://github.com/gleam-lang/gleam/blob/main/compiler-core/src/build/package_compiler.rs#L442
The text was updated successfully, but these errors were encountered: