Skip to content
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

Fix 586 infinite recursion printing subnodes #1

Conversation

courajs
Copy link
Owner

@courajs courajs commented Nov 5, 2021

dependabot bot and others added 15 commits November 8, 2021 09:05
Bumps [@glimmer/syntax](https://github.com/glimmerjs/glimmer-vm) from 0.82.0 to 0.83.0.
- [Release notes](https://github.com/glimmerjs/glimmer-vm/releases)
- [Changelog](https://github.com/glimmerjs/glimmer-vm/blob/master/CHANGELOG.md)
- [Commits](glimmerjs/glimmer-vm@v0.82.0...v0.83.0)

---
updated-dependencies:
- dependency-name: "@glimmer/syntax"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…ependabot/npm_and_yarn/glimmer/syntax-0.83.0

Bump @glimmer/syntax from 0.82.0 to 0.83.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.1.0 to 8.2.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v8.1.0...v8.2.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@glimmer/reference](https://github.com/glimmerjs/glimmer-vm/tree/HEAD/packages/@glimmer/reference) from 0.82.0 to 0.83.0.
- [Release notes](https://github.com/glimmerjs/glimmer-vm/releases)
- [Changelog](https://github.com/glimmerjs/glimmer-vm/blob/master/CHANGELOG.md)
- [Commits](https://github.com/glimmerjs/glimmer-vm/commits/v0.83.0/packages/@glimmer/reference)

---
updated-dependencies:
- dependency-name: "@glimmer/reference"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@glimmer/validator](https://github.com/glimmerjs/glimmer-vm/tree/HEAD/packages/@glimmer/validator) from 0.82.0 to 0.83.0.
- [Release notes](https://github.com/glimmerjs/glimmer-vm/releases)
- [Changelog](https://github.com/glimmerjs/glimmer-vm/blob/master/CHANGELOG.md)
- [Commits](https://github.com/glimmerjs/glimmer-vm/commits/v0.83.0/packages/@glimmer/validator)

---
updated-dependencies:
- dependency-name: "@glimmer/validator"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…uote-type

Allow updating `quoteType` and `isValueless` of AttrNodes, and `quoteType` of StringLiterals
- Single text element inside concat produces an extra pair of quotes
…est-587

Confirm that a single text element inside a concat doesn't produces an extra pair of quotes
- Test proving that when you reuse parts from previous concat statement in new concat statement you will get "Maximum callstack size exceeded"
…verflow

- Seems like anything that comes out of `parse()` apart from the whole object will trigger the stack overflow.
Fixes ember-template-lint#586

Previously, calling print on node that came from our parse(), but was
not the top-level node, would cause infinite recursion. (It would have
NodeInfo, but not a registered parse result).

This fixes the infinite loop, by just storing a reference to the
top-level parse result in the node info, and using that.

Importantly, this successfully preserves formatting for any sub-nodes we
did parse ourselves, or any user-created nodes that require custom
printing.
@courajs courajs force-pushed the fix-586-infinite-recursion-printing-subnodes branch from 767302c to d9d9f5d Compare November 10, 2021 12:22
@courajs courajs closed this Nov 29, 2021
@courajs courajs deleted the fix-586-infinite-recursion-printing-subnodes branch December 8, 2021 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants