Skip to content

Commit

Permalink
Extraneous logging releated fixes
Browse files Browse the repository at this point in the history
 * Removed import from config.exs
 * Handled default case for ports exiting, which was causing a log
   message
 * Added lexical_test to plugin_runner's deps so we can run tests in
   its app directory
  • Loading branch information
scohen committed Aug 11, 2023
1 parent e8bad0b commit 258f6c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/plugin_runner/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ defmodule Lexical.Plugin.Runner.MixProject do
defp deps do
[
{:common, in_umbrella: true},
{:lexical_test, path: "../../projects/lexical_test", only: :test},
{:lexical_plugin, path: "../../projects/lexical_plugin", only: :test}
]
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,11 @@ defmodule Lexical.RemoteControl.ProjectNode do
{:noreply, %State{state | port: nil}}
end

@impl true
def handle_info({:EXIT, port, _}, state) when is_port(port) do
{:noreply, state}
end

@impl true
def handle_info(:timeout, %State{} = state) do
state = State.halt(state)
Expand Down
1 change: 0 additions & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Config
alias Lexical.Server.JsonRpc.Backend, as: JsonRpcBackend

import_config("#{Mix.env()}.exs")

0 comments on commit 258f6c3

Please sign in to comment.