Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not start application ibrowse #19

Closed
lsimoneau opened this issue Aug 3, 2014 · 2 comments
Closed

Could not start application ibrowse #19

lsimoneau opened this issue Aug 3, 2014 · 2 comments

Comments

@lsimoneau
Copy link
Contributor

When trying to run tests with Hound, I get the error:

=INFO REPORT==== 3-Aug-2014::09:17:59 ===
    application: jsex
    exited: stopped
    type: temporary

=INFO REPORT==== 3-Aug-2014::09:17:59 ===
    application: jsx
    exited: stopped
    type: temporary
** (Mix) Could not start application ibrowse: could not find application file: ibrowse.app

I can replicate this on a brand-new mix project:

$ mix new hound_test
$ cd hound_test

Edit mix.exs to contain:

defmodule HoundTest.Mixfile do
  use Mix.Project

  def project do
    [app: :hound_test,
     version: "0.0.1",
     elixir: "~> 0.14.3",
     deps: deps]
  end

  # Configuration for the OTP application
  #
  # Type `mix help compile.app` for more information
  def application do
    [applications: app_list(Mix.env)]
  end

  defp app_list(:test), do: [:hound | app_list]
  defp app_list(_),     do: app_list
  defp app_list,        do: [:jsex, :ibrowse]

  # Dependencies can be hex.pm packages:
  #
  #   {:mydep, "~> 0.3.0"}
  #
  # Or git/path repositories:
  #
  #   {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1"}
  #
  # Type `mix help deps` for more examples and options
  defp deps do
    [{:hound, "0.5.8"}]
  end
end

Run mix deps.get and mix test, and I get the error above.

If starting ibrowse is required for Hound, should it not have optional: true in hound's mix.exs maybe?

@lsimoneau
Copy link
Contributor Author

I can work around this issue by adding ibrowse as a dependency in the application itself without optional: true

@wkhere wkhere mentioned this issue Aug 13, 2014
@HashNuke
Copy link
Owner

HashNuke commented Jun 7, 2015

Thanks for reporting.
Closing issue as Hound now uses httpoison (which inturn uses hackney). And there's no need to specify anything as optional dependency anymore.

@HashNuke HashNuke closed this as completed Jun 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants