Closed tizpuppi closed 7 years ago
@tizpuppi can you give me the full function around state | workers: [pid|wokers]
? It will be needed for the regression test.
Dear Luke,
I was typing this https://github.com/benjamintanweihao/the-little-elixir-otp-guidebook-code/blob/master/chapter_7/pooly/version-1/lib/pooly/server.ex, specifically function:
def handle_cast({:checkin, worker}, %{workers: workers, monitors: monitors} = state) do case :ets.lookup(monitors, worker) do [{pid, ref}] -> true = Process.demonitor(ref) true = :ets.delete(monitors, pid) {:noreply, %{state | workers: [pid|workers]}} [] -> {:noreply, state} end end thank you
On Wed, Nov 16, 2016 at 4:21 AM, Luke Imhoff notifications@github.com wrote:
Assigned #517 https://github.com/KronicDeth/intellij-elixir/issues/517 to @tizpuppi https://github.com/tizpuppi.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/KronicDeth/intellij-elixir/issues/517#event-860445511, or mute the thread https://github.com/notifications/unsubscribe-auth/AQsPH5kzhCmNRjMOkziRPwFqmoEgXQv3ks5q-na0gaJpZM4KyfVw .
Tiziano Puppi
I can reproduce by deleted the r
in the worker
variable on https://github.com/benjamintanweihao/the-little-elixir-otp-guidebook-code/blob/master/chapter_7/pooly/version-1/lib/pooly/server.ex#L73. Thanks @tizpuppi
Version
4.6.0
Description
this message appears when writing this line of code: true = :ets.delete(monitors, pid)
Exception
Message
Don't know how to find variable use scope
Excerpt
Line(s) 67-67
Element Class Name
Stacktrace