lexical-lsp / lexical

Lexical is a next-generation elixir language server
888 stars 82 forks source link

Convert all exceptions in config files into diagnostics #824

Closed zachallaun closed 2 months ago

zachallaun commented 2 months ago

Only some exceptions raised when evaluating a config file using Config.Reader.eval!/3 were being converted into diagnostics -- any others would result in a function clause error in the config compiler's private to_result/2. This function clause error would then be caught and result in another function clause error down the line, the eventual result of which was that diagnostics for config files would be incorrect.