atom-elixir icon indicating copy to clipboard operation
atom-elixir copied to clipboard

[atom-elixir] Plugin stop the work periodically and incidentally

Open JohnBat26 opened this issue 8 years ago • 7 comments

Hello. Thanks for great plugin ! But I get error after some time working in Atom:

[atom-elixir] Error: This socket has been ended by the other party -  elixir-sense-client.js:41

Last commit: 730944b4279eab30a1967db66795d43b25500979

JohnBat26 avatar Mar 28 '17 15:03 JohnBat26

Hi, @JohnBat26.

I afraid I'll need some more information:

  • What OS? Env (dev or test)?
  • Any other messages in the console?
  • Is there a stacktrace somewhere?
  • Can you identify after which action it happens? Autocomplete? From which module? Go to definition? From what file?

The more information I have, the easier it is to reproduce and solve the problem.

Thanks!

msaraiva avatar Mar 28 '17 23:03 msaraiva

Hi @msaraiva

  • atom-elixir: 0.2.2
  • ElixirSense server for environment "dev" (Elixir version 1.4.2)
  • OS: Gentoo Linux x86-64
  • Atom: 1.15.0
  • Electron: 1.3.13
  • Chrome : 52.0.2743.82
  • Node : 6.5.0

This sutiation reproduces periodically and incidentally. Especially reproduces after opening several projects in the same atom application. After restart of Atom plugin works good for some time.

And if I try use atom-elixir:goto-definition and it didn't work, then all plugin functional stop the work.

This is log: Atom-elixir issue log

This is my list atom packages: My atom packages

JohnBat26 avatar Mar 30 '17 17:03 JohnBat26

@msaraiva Todat I get this problem again. I install last git version of atom-elixir (commit: 4534a1c33fb5f2134e59d30eaf91f279e142872c) and just open clear phoenix project. Atom log

JohnBat26 avatar Mar 31 '17 05:03 JohnBat26

@JohnBat26, please try v0.2.3 and let me know how it goes. I'll fix on master during the weekend. BTW, what file from the new phoenix project have you opened and what was the first action you've tried to run before the error?

Thanks again!

msaraiva avatar Mar 31 '17 09:03 msaraiva

@msaraiva I've installed v.0.2.3 and it begin to work better but when I add two phoenix project into Atom I get error and plugin stop moving between modules with help Alt+Down.

My code: phoenix_commerce.ex

Error: Atom log for atom-elixir plugin

Can I add Elixir source code and use alt+down functional for Elixir modules and functions?

JohnBat26 avatar Mar 31 '17 09:03 JohnBat26

@msaraiva hello. Add new log with errors: Atom-elixir doesn't see controller

Example code into routes.ex:

  scope "/", Pxblog do
    pipe_through :browser # Use the default browser stack

    get "/", PageController, :index
    resources "/posts", PostController
  end

PostController exist, but plugin doesn't move to it with Alt+Down

JohnBat26 avatar Apr 03 '17 20:04 JohnBat26

@msaraiva and again:

[atom-elixir] Activating atom-elixir version 0.2.3
200 POST /atom/events response: {
  "decision": false, 
  "variant": {}
}

[atom-elixir] Initializing ElixirSense server for environment "dev" (Elixir version 1.4.2)

[atom-elixir] Working directory is "/home/johnbat26/projects/vuejs_projects/vuejs-poster-shop"

[atom-elixir] Setting environment to "dev"
[atom-elixir] Working directory is "/home/johnbat26/projects/elixir_projects/pxblog)"
Object
Can't find "PostController"
Pane changed
Can't find "PageController"
Can't find ":browser"
Can't find "PageController"
[atom-elixir] Setting environment to "test"
[atom-elixir] Working directory is "/home/johnbat26/projects/elixir_projects/pxblog)"
Object
Can't find "Pxblog.ModelCase"
Can't find "Pxblog.Post"
Object
Can't find "Post.changeset"
[atom-elixir] Setting environment to "dev"
[atom-elixir] Working directory is "/home/johnbat26/projects/elixir_projects/pxblog)"
Can't find "PageController"
[atom-elixir] Setting environment to "test"
[atom-elixir] Working directory is "/home/johnbat26/projects/elixir_projects/pxblog)"
[atom-elixir] Setting environment to "dev"
[atom-elixir] Working directory is "undefined)"
Server busy!
[atom-elixir] Setting environment to "dev"
[atom-elixir] Working directory is "undefined)"
Retrying last request when busy
[atom-elixir] Setting environment to "dev"
[atom-elixir] Working directory is "undefined)"
[atom-elixir] Setting environment to "test"
[atom-elixir] Working directory is "/home/johnbat26/projects/elixir_projects/pxblog)"
Object
Can't find "Pxblog.Post"

JohnBat26 avatar Apr 03 '17 20:04 JohnBat26