We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cc2290 commit 4b22d7eCopy full SHA for 4b22d7e
apps/language_server/lib/language_server/diagnostics.ex
@@ -492,7 +492,13 @@ defmodule ElixirLS.LanguageServer.Diagnostics do
492
]
493
494
{:error, %{description: description}} ->
495
- get_related_information_description(description, uri, source_file) ++
+ if String.valid?(description) do
496
+ get_related_information_description(description, uri, source_file)
497
+ else
498
+ # SyntaxError can contain invalid UTF8 binaries in `description`
499
+ # noticed on elixir 1.15.7
500
+ []
501
+ end ++
502
get_related_information_message(diagnostic.message, uri, source_file)
503
504
_ ->
0 commit comments