Skip to content
This repository has been archived by the owner on Nov 12, 2018. It is now read-only.

Behaves badly when used in conjunction with a formatter. #188

Open
hickscorp opened this issue Apr 16, 2018 · 0 comments
Open

Behaves badly when used in conjunction with a formatter. #188

hickscorp opened this issue Apr 16, 2018 · 0 comments

Comments

@hickscorp
Copy link

hickscorp commented Apr 16, 2018

When using autocomplete-elixir in conjunction with atom-elixir-formatter, it behaves really badly.

Essentially, every time you save a file, it seems like the autocomplete daemon is restarted recursively because the formatter rewrote the file. After saving a few times, the process looks like this (Turn soft wrapping on to see what I'm talking about):

doodloo   1338  131  0.6 3629824 81480 pts/0   Sl   15:48   0:36 /home/doodloo/.local/opt/erlang_20.3/erts-9.3/bin/beam.smp -- -root /home/doodloo/.local/opt/erlang_20.3 -progname erl -- -home /home/doodloo -- -kernel shell_history enabled -pa /home/doodloo/.kiex/elixirs/elixir-1.6.4/lib/elixir/bin/../lib/eex/ebin /home/doodloo/.kiex/elixirs/elixir-1.6.4/lib/elixir/bin/../lib/elixir/ebin /home/doodloo/.kiex/elixirs/elixir-1.6.4/lib/elixir/bin/../lib/ex_unit/ebin /home/doodloo/.kiex/elixirs/elixir-1.6.4/lib/elixir/bin/../lib/iex/ebin /home/doodloo/.kiex/elixirs/elixir-1.6.4/lib/elixir/bin/../lib/logger/ebin /home/doodloo/.kiex/elixirs/elixir-1.6.4/lib/elixir/bin/../lib/mix/ebin -noshell -s elixir start_cli -extra /home/doodloo/.atom/packages/autocomplete-elixir/lib/alchemide/autocompleter/autocomplete.exs /home/doodloo/.atom/packages/autocomplete-elixir/lib/alchemide/autocompleter/autocomplete.exs /home/doodloo/.atom/packages/autocomplete-elixir/lib/alchemide/autocompleter/autocomplete.exs /home/doodloo/.atom/packages/autocomplete-elixir/lib/alchemide/autocompleter/autocomplete.exs /home/doodloo/.atom/packages/autocomplete-elixir/lib/alchemide/autocompleter/autocomplete.exs /home/doodloo/.atom/packages/autocomplete-elixir/lib/alchemide/autocompleter/autocomplete.exs /home/doodloo/.atom/packages/autocomplete-elixir/lib/alchemide/autocompleter/autocomplete.exs /home/doodloo/.atom/packages/autocomplete-elixir/lib/alchemide/autocompleter/autocomplete.exs /home/doodloo/.atom/packages/autocomplete-elixir/lib/alchemide/autocompleter/autocomplete.exs /home/doodloo/.atom/packages/autocomplete-elixir/lib/alchemide/autocompleter/autocomplete.exs /home/doodloo/.atom/packages/autocomplete-elixir/lib/alchemide/autocompleter/autocomplete.exs /home/doodloo/.atom/packages/autocomplete-elixir/lib/alchemide/autocompleter/autocomplete.exs /home/doodloo/.atom/packages/autocomplete-elixir/lib/alchemide/autocompleter/autocomplete.exs /home/doodloo/Documents/Development/Elixir/linky-api /home/doodloo/.atom/packages/autocomplete-elixir/lib/alchemide/autocompleter/autocomplete.exs /home/doodloo/.atom/packages/autocomplete-elixir/lib/alchemide/autocompleter/autocomplete.exs /home/doodloo/.atom/packages/autocomplete-elixir/lib/alchemide/autocompleter/autocomplete.exs /home/doodloo/.atom/packages/autocomplete-elixir/lib/alchemide/autocompleter/autocomplete.exs /home/doodloo/.atom/packages/autocomplete-elixir/lib/alchemide/autocompleter/autocomplete.exs /home/doodloo/.atom/packages/autocomplete-elixir/lib/alchemide/autocompleter/autocomplete.exs /home/doodloo/.atom/packages/autocomplete-elixir/lib/alchemide/autocompleter/autocomplete.exs /home/doodloo/.atom/packages/autocomplete-elixir/lib/alchemide/autocompleter/autocomplete.exs /home/doodloo/.atom/packages/autocomplete-elixir/lib/alchemide/autocompleter/autocomplete.exs /home/doodloo/.atom/packages/autocomplete-elixir/lib/alchemide/autocompleter/autocomplete.exs /home/doodloo/.atom/packages/autocomplete-elixir/lib/alchemide/autocompleter/autocomplete.exs /home/doodloo/.atom/packages/autocomplete-elixir/lib/alchemide/autocompleter/autocomplete.exs

The more this scenario reoccurs, the more CPU usage and the less responsive autocompletion becomes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant