Skip to content

Commit 269e78d

Browse files
authored
Fix dialyzer test when running locally (#271)
* Fix dialyzer test when running locally I'm testing running locally on arch linux. It appear that for me locally for the "reports diagnostics then clears them once problems are fixed" test I get the output I get the message: [ElixirLS Dialyzer] Analyzing 3 modules: [A, B, :erlang] Instead of: [ElixirLS Dialyzer] Analyzing 2 modules: [A, B] Adding a function definition in module C causes :erlang to not be detected as needing to be analyzed. * :lib.flush_receive() doesn't exist in the same place on supported erlang versions
1 parent 96f96ef commit 269e78d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

DEVELOPMENT.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,9 @@ Push the tag
1111
- `cd release`
1212
- `zip elixir-ls.zip *`
1313
- Attach elixir-ls.zip to the release on github https://github.com/elixir-lsp/elixir-ls/releases
14+
15+
# Debugging
16+
17+
If you're debugging a running server than `IO.inspect` is a good approach, any messages you create with it will be sent to your LSP client as a log message
18+
19+
To debug in tests you can use `IO.inspect(Process.whereis(:user), message, label: "message")` to send your output directly to the group leader of the test process.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
defmodule C do
2+
def myfun do
3+
1
4+
end
25
end

0 commit comments

Comments
 (0)