Skip to content

Commit

Permalink
docs(update docs and comments)
Browse files Browse the repository at this point in the history
  • Loading branch information
ckoch-cars committed Aug 23, 2022
1 parent f2dc801 commit b0778fe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/ex_factor/traces.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
defmodule ExFactor.Traces do
def setup do
Code.compiler_options(debug_info: true, parser_options: [columns: true, token_metadata: true])
Code.compiler_options(warnings_as_errors: false, debug_info: true, parser_options: [columns: true, token_metadata: true])

ExFactor.Server = Code.ensure_loaded!(ExFactor.Server)
ExFactor.Tracer = Code.ensure_loaded!(ExFactor.Tracer)

Expand Down
1 change: 1 addition & 0 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Compile Exfactor.Tracer so the compilation tracer is available when it's needed
Code.compile_file("support/tracer.ex")

defmodule ExFactor.MixProject do
Expand Down
5 changes: 2 additions & 3 deletions support/trace_task.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
defmodule Mix.Tasks.ExFactorRunner do
@moduledoc """
In order to run ExFactor on ExFactor, we need to make some files available "outside of" ExFactor, or more precisely along side of ExFactor.
In order to run ExFactor on ExFactor, we need to make some files available "outside of"
ExFactor, or more precisely along side of ExFactor.
We need to have a process running during compilation that can run the `ExFactor.Server` Agent.
Additionally we need the setup from `ExFactor.Traces`, we could replicate this here, but why
Expand All @@ -14,8 +15,6 @@ defmodule Mix.Tasks.ExFactorRunner do
Mix.raise("Elixir v1.13+ is required!")
end

Code.compiler_options(debug_info: true, parser_options: [columns: true, token_metadata: true])

Code.compile_file("./lib/ex_factor/server.ex", File.cwd!())
:timer.sleep(20)

Expand Down

0 comments on commit b0778fe

Please sign in to comment.