Skip to content

Conversation

lukaszsamson
Copy link
Contributor

I noticed this crash in the logs. I'm not sure what input produced that error.

an exception was raised:
    ** (FunctionClauseError) no function clause matching in Code.Fragment.drop_tokens_2
        (elixir 1.18.3) <REDACTED: user-file-path>:1209: Code.Fragment.drop_tokens([], 2)
        (elixir 1.18.3) <REDACTED: user-file-path>:1184: Code.Fragment.container_cursor_to_quoted_2

@josevalim
Copy link
Member

@lukaszsamson plesse rebase or swap branches? :)

@lukaszsamson lukaszsamson force-pushed the ls-fix-trailing-token-crash branch from 992adf9 to b2dd7d9 Compare August 5, 2025 10:24
@josevalim
Copy link
Member

Can we add a failing test please? Thank you!

@josevalim
Copy link
Member

I tried reverse engineering a failed input, since you said you don't have one, and I could not for now. :( So we will merge it as is. Thanks!

@josevalim josevalim merged commit 65ff52a into elixir-lang:main Aug 31, 2025
11 of 13 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants