msaraiva / atom-elixir

An Atom package for Elixir
MIT License
408 stars 29 forks source link

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

Open JohnBat26 opened 7 years ago

JohnBat26 commented 7 years ago

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

msaraiva commented 7 years ago

Hi, @JohnBat26.

I afraid I'll need some more information:

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

Thanks!

JohnBat26 commented 7 years ago

Hi @msaraiva

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 commented 7 years ago

@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

msaraiva commented 7 years ago

@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!

JohnBat26 commented 7 years ago

@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 commented 7 years ago

@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 commented 7 years ago

@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"