Giter VIP home page Giter VIP logo

Comments (8)

lpil avatar lpil commented on June 2, 2024 1

This sounds like #110 , could you please try upgrading to the latest version? Thank you :)

Thank you for the detailed information, very useful!

from mix-test.watch.

smahi avatar smahi commented on June 2, 2024 1

@lpil Thank you so much
Upgrading to the latest version solved the issue.

from mix-test.watch.

lpil avatar lpil commented on June 2, 2024

Hi @smahi can you tell me more about your setup and the problem? I use this project with Ubuntu and VSCode without problem so there must be something in addition.

Is it slow to start after changes or is it slower to run the suite? Can you share more detailed system information? Does it happen in other editors? In the regular terminal? Is it slow if you use inotify directly rather than using it via mix test.watch?

Thank you

from mix-test.watch.

smahi avatar smahi commented on June 2, 2024

Hi @lpil
For example when i start it, it did not run the the suite it hangs displaying running tests..., this happen also after saving changes.
On the other hand the test command is fast as usual.

from mix-test.watch.

smahi avatar smahi commented on June 2, 2024

@lpil
I am using only VSCode as my main an only editor, and it's integrated Terminal where i run tests.

from mix-test.watch.

smahi avatar smahi commented on June 2, 2024

@lpil
The same behavior happen when running the test.watch command from gnome Terminal.
After saving changes it hangs displaying only running tests..., i have to save multiple time so that the test suite runs. and sometimes I have to interrupt the command then rerun it again.

from mix-test.watch.

smahi avatar smahi commented on June 2, 2024

@lpil
My development environment

$ elixir -v
Erlang/OTP 22 [erts-10.5.4] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe]

Elixir 1.9.4 (compiled with Erlang/OTP 22)
$ cat /etc/os-release 
NAME="Ubuntu"
VERSION="19.10 (Eoan Ermine)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 19.10"
VERSION_ID="19.10"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=eoan
 $ code -v
1.40.1
879xxxxxxxxxxxxxxxxxxxxxxxxxxxxa619
x64
// mix.exs

defmodule UnivPlatform.MixProject do
  use Mix.Project

  def project do
    [
      app: :univ_platform,
      version: "0.1.0",
      elixir: "~> 1.5",
      elixirc_paths: elixirc_paths(Mix.env()),
      compilers: [:phoenix, :gettext] ++ Mix.compilers(),
      start_permanent: Mix.env() == :prod,
      aliases: aliases(),
      deps: deps()
    ]
  end

  # Configuration for the OTP application.
  #
  # Type `mix help compile.app` for more information.
  def application do
    [
      mod: {UnivPlatform.Application, []},
      extra_applications: [:logger, :runtime_tools]
    ]
  end

  # Specifies which paths to compile per environment.
  defp elixirc_paths(:test), do: ["lib", "test/support"]
  defp elixirc_paths(_), do: ["lib"]

  # Specifies your project dependencies.
  #
  # Type `mix help deps` for examples and options.
  defp deps do
    [
      {:phoenix, "~> 1.4.11"},
      {:phoenix_pubsub, "~> 1.1"},
      {:phoenix_ecto, "~> 4.0"},
      {:ecto_sql, "~> 3.1"},
      {:postgrex, ">= 0.0.0"},
      {:gettext, "~> 0.11"},
      {:jason, "~> 1.0"},
      {:plug_cowboy, "~> 2.0"},
      {:mix_test_watch, "~> 1.0"},
      {:argon2_elixir, "~> 2.1"},
      {:ex_machina, "~> 2.3", only: :test}
    ]
  end

  # Aliases are shortcuts or tasks specific to the current project.
  # For example, to create, migrate and run the seeds file at once:
  #
  #     $ mix ecto.setup
  #
  # See the documentation for `Mix` for more info on aliases.
  defp aliases do
    [
      "ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
      "ecto.reset": ["ecto.drop", "ecto.setup"],
      test: ["ecto.create --quiet", "ecto.migrate", "test"]
    ]
  end
end

from mix-test.watch.

smahi avatar smahi commented on June 2, 2024

@lpil
Can you describe how to use inotify directly, please.

Thank you so much your help.

from mix-test.watch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.