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 d6b65bc commit ebb0511Copy full SHA for ebb0511
apps/language_server/lib/language_server/tracer.ex
@@ -206,6 +206,12 @@ defmodule ElixirLS.LanguageServer.Tracer do
206
207
{:ok, _} = :dets.open_file(table_name, opts)
208
209
+ {:error, {:cannot_repair, _} = reason} ->
210
+ Logger.warning("Unable to open DETS #{path}: #{inspect(reason)}")
211
+ File.rm_rf!(path)
212
+
213
+ {:ok, _} = :dets.open_file(table_name, opts)
214
215
{:error, {:not_a_dets_file, _} = reason} ->
216
Logger.warning("Unable to open DETS #{path}: #{inspect(reason)}")
217
File.rm_rf!(path)
0 commit comments