Comments (5)
Could you add a log and post what is the crashing ast in lib/elixir_sense/plugins/ecto/query.ex:192
?
from elixir_sense.
Unfortunately I haven't been able to reproduce this on other projects yet, so I'm not sure what causes it.
from elixir_sense.
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.
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.
Seems the issue is now fixed
from elixir_sense.
Related Issues (20)
- Type system could handle function captures
- Signature provider reveals opaque type details
- No specs on metadata type suggestions
- Duplicated signatures for local dunctions
- Provide full documentation for code in current buffer
- Local macro is available only after definition
- Incorrect handling of alias and require with warn option
- Suggestion crash on elixir 1.15
- quote used as variable not working correctly with docs and definition provider
- Binding does not respect requires and local macro position
- Multiple meta looks bad in docs
- No spec in signature and docs for module_info on local module
- Invalid handling of MACRO- in params reducer
- Add hidden metadata on doc:false and underscored functions and types
- Variable matching regex is invalid
- Document that this is included in elixir-ls HOT 2
- Language Server crashes when autocompleting `:pg`
- Definition provider does not work for nested phoenix scopes HOT 3
- Error when Module Attribute in Docstring HOT 3
- What does providers being deprecated mean for plugins? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elixir_sense.