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.
add_extensions/0
1 parent 7171403 commit 8bc3ffeCopy full SHA for 8bc3ffe
lib/spark/formatter.ex
@@ -304,8 +304,11 @@ if Code.ensure_loaded?(Sourceror) do
304
|> Enum.concat(config[:extensions] || [])
305
|> Enum.concat(type.default_extensions() || [])
306
|> Enum.flat_map(fn extension ->
307
- Code.ensure_compiled!(extension)
308
- [extension | extension.add_extensions()]
+ try do
+ [extension | extension.add_extensions()]
309
+ rescue
310
+ _ -> [extension]
311
+ end
312
end)
313
end
314
0 commit comments