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
credo@1.1.0 crashes, when sourcecode contain unicode heredoc #665
Comments
I have the same issue in two modules, also on Elixir 1.9.0 and credo 1.1.0. It goes away when I remove all the
and the other
|
I have tried to isolate the error, and ended up with this minimal file to reproduce the issue. The error goes away by doing either one of these things:
The stacktrace is:
|
And now the same minimal file reproduced from my other failing module The weird part here is that the issue can be resolved by removing any of the characters Try for example to change the Removing the
or the smallest example I can get to
|
I suspect that it has something to do with the different
|
I also have this issue on elixir 1.7.3 |
Here is the smallest repro I can come up with for this issue:
This results in a similar stack trace to the one seen above:
|
Thx for reporting this (and discussing it in detail)! 👏 It should be be fixed in the latest version of Credo ( If it is not, please feel free to re-open this issue! |
I'm really sorry to report that it's still happening:
|
@jamesotron it's ok for me! use 1.1.1 and dont forget mix deps.get and mix deps.compile |
You're right. My CI is caching the old version for some reason. |
Environment
Credo version (
mix credo -v
):1.1.0
Erlang/Elixir version (
elixir -v
):MacOS
What were you trying to do?
Expected outcome
Actual outcome
may be reason
in function pad_replaced_heredoc
length_after_byte_index
my be minusThe text was updated successfully, but these errors were encountered: