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

Don't know if Mix.Dep option organization is important for determining location of dependency #1424

Closed
jaegerpicker opened this issue Mar 27, 2019 · 0 comments · Fixed by #1448
Assignees
Labels
Milestone

Comments

@jaegerpicker
Copy link

Version

3.5.0.1

Exception

Message

*** exception class was changed or removed

Stacktrace

Don't know if Mix.Dep option `organization` is important for determining location of dependency

### Excerpt

{:minnow_events, "~> 0.1", organization: "minnow"}

 Line(s) 83-83 in /Users/shawn/Dropbox/Private/CODE/Kadabra/voyager/mix.exs


### Element Class Name

org.elixir_lang.psi.impl.ElixirTupleImpl



org.elixir_lang.errorreport.Logger.error(Logger.java:51)
org.elixir_lang.mix.Dep$Companion.from(Dep.kt:50)
org.elixir_lang.mix.Dep$Companion.from(Dep.kt:29)
org.elixir_lang.mix.DepGathererKt.deps(DepGatherer.kt:141)
org.elixir_lang.mix.DepGathererKt.deps(DepGatherer.kt:44)
org.elixir_lang.mix.DepGathererKt.access$deps(DepGatherer.kt:1)
org.elixir_lang.mix.DepGatherer$visitElement$1.invoke(DepGatherer.kt:36)
org.elixir_lang.mix.DepGatherer$visitElement$1.invoke(DepGatherer.kt:21)
org.elixir_lang.mix.DepGathererKt.foldDepsDefinersWhile(DepGatherer.kt:64)
org.elixir_lang.mix.DepGathererKt.access$foldDepsDefinersWhile(DepGatherer.kt:1)
org.elixir_lang.mix.DepGatherer.visitElement(DepGatherer.kt:35)
com.intellij.psi.impl.PsiElementBase.accept(PsiElementBase.java:274)
org.elixir_lang.psi.impl.ElixirUnmatchedUnqualifiedNoParenthesesCallImpl.accept(ElixirUnmatchedUnqualifiedNoParenthesesCallImpl.java:38)
com.intellij.psi.impl.source.tree.SharedImplUtil.acceptChildren(SharedImplUtil.java:200)
com.intellij.psi.impl.source.PsiFileImpl.acceptChildren(PsiFileImpl.java:730)
org.elixir_lang.mix.DepGatherer$visitFile$$inlined$runReadAction$1.compute(actions.kt:64)
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:959)
org.elixir_lang.mix.DepGatherer.visitFile(DepGatherer.kt:143)
com.intellij.extapi.psi.PsiFileBase.accept(PsiFileBase.java:70)
org.elixir_lang.mix.watcher.Resolution$Companion$packagePsiFileToDepSet$$inlined$runReadAction$1$lambda$1.compute(Resolution.kt:111)
com.intellij.psi.util.CachedValuesManager.lambda$getCachedValue$0(CachedValuesManager.java:140)
com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49)
com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:222)
com.intellij.psi.impl.PsiCachedValue.getValueWithLock(PsiCachedValue.java:60)
com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38)
com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:88)
com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:139)
org.elixir_lang.mix.watcher.Resolution$Companion$packagePsiFileToDepSet$$inlined$runReadAction$1.compute(actions.kt:64)
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:963)
org.elixir_lang.mix.watcher.Resolution$Companion.packagePsiFileToDepSet(Resolution.kt:122)
org.elixir_lang.mix.watcher.Resolution$Companion.packageVirtualFileToDepSet(Resolution.kt:97)
org.elixir_lang.mix.watcher.Resolution$Companion.rootVirtualFileToDepSet(Resolution.kt:80)
org.elixir_lang.mix.watcher.Resolution$Companion.resolution(Resolution.kt:38)
org.elixir_lang.mix.watcher.TransitiveResolution.transitiveResolution(TransitiveResolution.kt:17)
org.elixir_lang.mix.Watcher.syncLibraries(Watcher.kt:43)
org.elixir_lang.mix.Watcher$contentsChanged$1.run(Watcher.kt:56)
com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:727)
com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:164)
com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:582)
com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532)
com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:87)
com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:151)
com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:403)
com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:314)
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
java.util.concurrent.FutureTask.run(FutureTask.java:266)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
java.lang.Thread.run(Thread.java:745)

Got this exception trying to add a private hex dep to mix.exs It's a pretty standard mix file but I've included it here:

  use Mix.Project

  def project do
    [
      app: :voyager,
      version: "0.1.0",
      elixir: "~> 1.8",
      elixirc_paths: elixirc_paths(Mix.env()),
      start_permanent: Mix.env() == :prod,
      aliases: aliases(),
      deps: deps()
    ]
  end

  # Run "mix help compile.app" to learn about applications.
  def application do
    [
      extra_applications: [:logger, :runtime_tools],
      mod: {Voyager.Application, []}
    ]
  end

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

  # Run "mix help deps" to learn about dependencies.
  defp deps do
    [
      # DEV/TEST DEPENDENCIES:
      # ----------------------
      # HTTP mocking
      {:bypass, "~> 1.0", only: [:dev, :test], runtime: false},
      # static analysis
      {:credo, "~> 1.0", only: [:dev, :test], runtime: false},
      # mix task `mix test.watch`
      {:mix_test_watch, "~> 0.9.0", only: [:dev, :test], runtime: false},
      # security vulnerability checking
      {:sobelow, "~> 0.7.6", only: [:dev, :test], runtime: false},

      # PROD DEPENDENCIES:
      # ------------------
      # Ecto data toolkit & DSL
      {:ecto_sql, "~> 3.0"},
      # Producer/consumer pipelines with backpressure
      {:gen_stage, "~> 0.14.1"},
      # PostGIS extension for Postgrex
      {:geo_postgis, "~> 3.1"},
      # Google Pub/Sub API
      {:google_api_pub_sub, "~> 0.3.0"},
      # Google Cloud SA OAuth tokens
      {:goth, "~> 1.0.1"},
      # JSON parser generator
      {:jason, "~> 1.1"},
      # Postgres adapter
      {:postgrex, "~> 0.14.1"},

      # DEPLOYMENT DEPENDENCIES:
      # ------------------------
      {:distillery, "~> 2.0", runtime: true},
      {:edeliver, "~> 1.6"},

      # OPTIONAL DEPENDENCIES:
      # ----------------------
      # DEV/TEST:
      # property-based testing
      # {:propcheck, "~> 1.1", only: [:dev, :test], runtime: false},

      # PROD:
      # JWT library
      # {:joken, "~> 2.0"},
      # MessagePack support
      # {:msgpax, "~> 2.2"},
      # Money library
      # {:money, "~> 1.3"},
      # HTTP client library
      # {:tesla, "~> 1.2"},
      # Date/Time library
      # {:timex, "~> 3.5"},

      # SCHEMA LIBS:
      # ------------
      {:minnow_events, "~> 0.1", organization: "minnow"},
      {:minnow_entities, "~> 0.1.2", organization: "minnow"}

      # ADD YOUR OWN LIKE THIS:
      # -----------------------
      # {:dep_from_hexpm, "~> 0.3.0"},
      # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
    ]
  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``` 
@jaegerpicker jaegerpicker changed the title [auto-generated] [auto-generated] Exception adding private dep to mix.exs Mar 27, 2019
@KronicDeth KronicDeth self-assigned this Apr 13, 2019
@KronicDeth KronicDeth added this to the v10.5.0 milestone Apr 13, 2019
@KronicDeth KronicDeth changed the title [auto-generated] Exception adding private dep to mix.exs Don't know if Mix.Dep option organization is important for determining location of dependency Apr 13, 2019
KronicDeth added a commit that referenced this issue Apr 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants