-
Notifications
You must be signed in to change notification settings - Fork 11
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
Tests failing for Elixir 1.7 #36
Comments
@msaraiva what version of Elixir and Erlang do the tests pass with? I've been trying many different versions but have been unable to get all the tests to pass. |
Okay, I have the tests passing with Elixir 1.7.0 and OTP 21.2. BUT, you have to build elixir from source. |
@axelson If you are using |
@OvermindDL1 no that doesn't work (although I really wish it did!). It looks like it has to truly be from source for these tests since they return the actual source code path:
Gives:
I even tried installing |
Sorry for the late response. Two important things here:
|
Oooo, that's very much a broken test then! Such return values should not be tested against directly but picked apart and those tested against (or |
@OvermindDL1 the return values are not tested directly, they are tested using test "find definition of aliased modules in `use`" do
buffer = """
defmodule MyModule do
alias Mix.Generator
use Generator
end
"""
%{found: true, type: :module, file: file, line: line, column: column} = ElixirSense.definition(buffer, 3, 12)
assert file =~ "lib/mix/lib/mix/generator.ex"
assert read_line(file, {line, column}) =~ "Mix.Generator"
end So, if the file exists, it should pass. @axelson can you confirm which of the 2 assertions above is failing? |
@msaraiva Neither of those assertions are failing if I have installed Elixir from source. But if I have installed with a binary, then the first assertion fails since
|
* Format code * Fix test that began failing after it's source file was formatted
78 test cases are failing with Elixir 1.7.4 (OTP 21.1). Most of them are documentation related failures, which is understandable. Few doesn't seem like version update error like
For second error, I think its because im using precompiled elixir from brew.
$ elixir --version
The text was updated successfully, but these errors were encountered: