Skip to content

fix(engine): don't collect sibling scopes in Phoenix router#420

Merged
doorgan merged 1 commit intoelixir-lang:mainfrom
katafrakt:phoenix-scopes-fix
Feb 20, 2026
Merged

fix(engine): don't collect sibling scopes in Phoenix router#420
doorgan merged 1 commit intoelixir-lang:mainfrom
katafrakt:phoenix-scopes-fix

Conversation

@katafrakt
Copy link
Contributor

@katafrakt katafrakt commented Feb 20, 2026

We don't need to use Zipper here at all, as Ast.cursor_path contains all the ancestor scopes. This fixes collecting sibling scopes as ancestors, in extreme cases leading to exceeding max size of an atom.

Should fix #360, but in general improve hover etc. in router.ex.

We don't need to use Zipper here at all, as Ast.cursor_path contains all
the ancestor scopes. This fixes collecting sibling scopes as ancestors,
in extreme cases leading to exceeding max size of an atom.
@katafrakt katafrakt marked this pull request as ready for review February 20, 2026 15:29
Copy link
Collaborator

@doorgan doorgan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 💜

@doorgan doorgan merged commit b72bfc8 into elixir-lang:main Feb 20, 2026
38 checks passed
mhanberg pushed a commit that referenced this pull request Feb 22, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.1.0-rc.1](v0.1.0-rc.0...v0.1.0-rc.1)
(2026-02-22)


### Features

* prompt user to fetch deps when they get out of sync
([#405](#405))
([fc16ddc](fc16ddc))


### Bug Fixes

* build expert on latest nixpkgs
([#422](#422))
([d3eb92c](d3eb92c))
* bump spitfire v0.3.7
([#425](#425))
([ce508c8](ce508c8))
* **engine:** don't collect sibling scopes in Phoenix router
([#420](#420))
([b72bfc8](b72bfc8))
* **expert:** don't crash on missing root_uri
([#412](#412))
([11ed716](11ed716))
* **forge:** progress message ordering
([#427](#427))
([f3b9187](f3b9187))
* migrate expert runtime logging to OTP handlers
([#419](#419))
([8f2dda5](8f2dda5))
* provide typespec docs on hover for private functions
([#407](#407))
([79c5451](79c5451))


### Miscellaneous Chores

* release as 0.1.0-rc.1
([6f5986e](6f5986e))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

Phoenix router scopes causing binary_to_atom exceptions

2 participants