GithubHelp home page GithubHelp logo

Comments (5)

lukaszsamson avatar lukaszsamson commented on July 30, 2024

Could you add a log and post what is the crashing ast in lib/elixir_sense/plugins/ecto/query.ex:192?

from elixir_sense.

axelson avatar axelson commented on July 30, 2024

Unfortunately I haven't been able to reproduce this on other projects yet, so I'm not sure what causes it.

from elixir_sense.

akashkhan25 avatar akashkhan25 commented on July 30, 2024

I had the same issue on all my projects after updating to the latest version.

The following is the log from a fresh new phoenix project with aUser schema

Project details

Elixir version: 1.10.1
Erlang version: 23.0.2
21:32:00.442 [error] Process #PID<0.536.0> raised an exception
** (FunctionClauseError) no function clause matching in :elixir_env.trace/2
    (elixir 1.10.1) src/elixir_env.erl:35: :elixir_env.trace({:alias_reference, [line: 1], TestApp}, #Macro.Env<aliases: [], context: nil, context_modules: [], file: "nofile", function: nil, functions: [], lexical_tracker: nil, line: 0, macro_aliases: [], macros: [], module: nil, requires: [], ...>)
    (elixir 1.10.1) lib/macro.ex:1384: Macro.do_expand_once/2
    (elixir 1.10.1) lib/macro.ex:1369: Macro.expand_once/2
    (elixir_sense 1.0.1) lib/elixir_sense/plugins/ecto/query.ex:193: ElixirSense.Plugins.Ecto.Query.infer_type/4
    (elixir_sense 1.0.1) lib/elixir_sense/plugins/ecto/query.ex:227: anonymous fn/4 in ElixirSense.Plugins.Ecto.Query.extract_bindings/4
    (elixir 1.10.1) lib/enum.ex:2111: Enum."-reduce/3-lists^foldl/2-0-"/3
    (elixir_sense 1.0.1) lib/elixir_sense/plugins/ecto.ex:87: ElixirSense.Plugins.Ecto.suggestions/4
    (elixir_sense 1.0.1) lib/elixir_sense/providers/suggestion/generic_reducer.ex:39: ElixirSense.Providers.Suggestion.GenericReducer.reduce/6
{:__aliases__, [line: 1], [:TestApp]}

The crashing AST is {:__aliases__, [line: 1], [:TestApp]} and User is the ecto schema

from elixir_sense.

msaraiva avatar msaraiva commented on July 30, 2024

Hi @akashkhan25 and @axelson!

I can't reproduce it but 36e3ff7 should do the trick. Can any of you try that out and confirm it works?

from elixir_sense.

lukaszsamson avatar lukaszsamson commented on July 30, 2024

Seems the issue is now fixed

from elixir_sense.

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.