nitram
ElixirLS unable to start debugger in VS nif_not_loaded
Hello everibady,
I’m triing to run phoenix app in debug mode in visual studio and I keep getting this error
(Debugger) Task failed because an exception was raised:
** (Mix.Error) Could not start application app: App.Application.start(:normal, []) returned an error: shutdown: failed to start child: App.Endpoint
** (EXIT) an exception was raised:
** (ErlangError) Erlang error: {:nif_not_loaded, :module, :crypto, :line, 1344}
:erlang.nif_error({:nif_not_loaded, :module, :crypto, :line, 1344})
(crypto 4.6.5) crypto.erl:466: :crypto.nif_stub_error/1
(crypto 4.6.5) crypto.erl:1340: :crypto.strong_rand_bytes/1
(phoenix 1.5.4) Elixir.Phoenix.Endpoint.Supervisor.erl:81: Phoenix.Endpoint.Supervisor.init/1
(mix 1.10.4) lib/mix.ex:392: Mix.raise/1
(elixir 1.10.4) lib/enum.ex:783: Enum."-each/2-lists^foreach/1-0-"/2
(elixir 1.10.4) lib/enum.ex:783: Enum.each/2
(mix 1.10.4) lib/mix/tasks/app.start.ex:106: Mix.Tasks.App.Start.start/3
(mix 1.10.4) lib/mix/tasks/app.start.ex:91: Mix.Tasks.App.Start.run/1
(mix 1.10.4) lib/mix/task.ex:330: Mix.Task.run_task/3
(mix 1.10.4) lib/mix/tasks/run.ex:128: Mix.Tasks.Run.run/5
(mix 1.10.4) lib/mix/tasks/run.ex:85: Mix.Tasks.Run.run/1
(mix 1.10.4) lib/mix/task.ex:330: Mix.Task.run_task/3
(elixir_ls_debugger 0.6.0) lib/debugger/server.ex:658: ElixirLS.Debugger.Server.launch_task/2
I’m triing to start task mix -S phx.server, but same result I get when triing to start mix (Default task) from config
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "mix_task",
"name": "mix (Default task)",
"request": "launch",
"projectDir": "${workspaceRoot}"
},
{
"type": "mix_task",
"name": "mix -S phx.server",
"request": "launch",
"projectDir": "${workspaceRoot}"
},
{
"type": "mix_task",
"name": "mix test",
"request": "launch",
"task": "test",
"taskArgs": [
"--trace"
],
"startApps": true,
"projectDir": "${workspaceRoot}",
"requireFiles": [
"test/**/test_helper.exs",
"test/**/*_test.exs"
]
}
]
}
anybody managed to get it work?
Marked As Solved
lukaszsamson
ElixirLS Core Team
NIFs cannot be run in interpreted mode. You need to exclude them with "excludeModules": [":my_nif", "My.OtherNif"]. Look for warnings Module x cannot be interpreted. Consider adding it to excludeModules`.
4
Popular in Questions
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call th...
New
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
Hello all!
I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
Student & New to elixir. Nice language.
I want to convert a english character, e.g. “a”, which is stored in a variable, to it’s asci...
New
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: )
Hello all, this is ...
New
Mix format works fine if run from the cmd. I’ve followed this to facilitate the implementation into VSC which involves downloading an ext...
New
I’ve been re-reading swift book again and noticed that multiline strings there don’t have a trailing line break, unlike in elixir
iex(2)...
New
Other popular topics
I am trying to figure out how Mix knows whether the environment is test, dev, or prod -- where is this set?
Thanks.
New
In Ruby, I can go:
User.find_by(email: "foobar@email.com").update(email: "hello@email.com")
How can I do something similar in Elixir? ...
New
In the Dialyzer docs ( http://erlang.org/doc/man/dialyzer.html#requesting-or-suppressing-warnings-in-source-files ), there is a way to tu...
New
Hi there,
I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 record...
New
How to set Jason to encode all fields in ecto schema, I don’t care about security and implementing only is taking long list of attributes...
New
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
As many of you may have realized by now (sorry for all the posts here) I’ve been working on a db problem where I’m trying to aggregate a ...
New
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including.
What is Phoenix LiveV...
New







