an exception was raised:
** (UndefinedFunctionError) function SSLVerifyFun.Mixfile.project/0 is undefined (module SSLVerifyFun.Mixfile is not available)
SSLVerifyFun.Mixfile.project()
(mix 1.14.1) lib/mix/project.ex:838: Mix.Project.get_project_config/1
(mix 1.14.1) lib/mix/project.ex:141: Mix.Project.push/3
(mix 1.14.1) lib/mix/project.ex:785: Mix.Project.load_project/2
(mix 1.14.1) lib/mix/project.ex:389: Mix.Project.in_project/4
(elixir 1.14.1) lib/file.ex:1607: File.cd!/2
(language_server 0.14.6) lib/language_server/build.ex:83: anonymous fn/3 in ElixirLS.LanguageServer.Build.reload_project/0
(stdlib 4.2) maps.erl:411: :maps.fold_1/3
Have you tried the standard diagnostic steps (remove _build
, remove .elixir_ls
, restart all the things) yet?
If you try those and this keeps happening, you’ll need to provide more information about what’s triggering this behavior - what’s in your project’s mix.exs
?
I’ve got an identical error trace with a different library at the end of it:
** (UndefinedFunctionError) function OpentelemetryLoggerMetadata.MixProject.project/0 is undefined (module OpentelemetryLoggerMetadata.MixProject is not available)
OpentelemetryLoggerMetadata.MixProject.project()
(mix 1.14.3) lib/mix/project.ex:838: Mix.Project.get_project_config/1
(mix 1.14.3) lib/mix/project.ex:141: Mix.Project.push/3
(mix 1.14.3) lib/mix/project.ex:785: Mix.Project.load_project/2
(mix 1.14.3) lib/mix/project.ex:389: Mix.Project.in_project/4
(elixir 1.14.3) lib/file.ex:1607: File.cd!/2
(language_server 0.14.6) lib/language_server/build.ex:83: anonymous fn/3 in ElixirLS.LanguageServer.Build.reload_project/0
(stdlib 4.2) maps.erl:411: :maps.fold_1/3
The thing is that OpentelemetryLoggerMetadata.MixProject.project/0
absolutely does exist. Both on github (linked) and also in my deps file.
I’ve recently deleted both _build
and my .elixir_ls
directories.
Edit: I should say that this is only a problem for the language server - my project builds fine and passes all tests. This is some internal language server process - apparently in the reload_project/0
function.