Contextual component indentation issue
See original GitHub issueI have encountered a weird linting issue when using a component helper in inside contextual components.
{{#my-component as |something|}}
{{#something.content}}
{{#component "my-component"}}
Content
{{/component}}
{{/something.content}}
{{/my-component}}
produces the error
6:24 error Incorrect indentation for `component` beginning at L2:C2. Expected `{{/component}}` ending at L6:C24 to be at an indentation of 2 but was found at 10. block-indentation
It works fine with normal component invocation, only seems to be an issue when using the component helper (and only in block form). However if I change the alias of the contextual component to a single character, it passes 😕
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
What should I do with "Unexpected indent" in Python?
The issue I'm describing is caused by the Sublime Text editor. The same issue could be caused by other editors as well. Essentially,...
Read more >How does Indentation Error Work in Python? - eduCBA
Python is a procedural language. The indentation error can occur when the spaces or tabs are not placed properly. There will not be...
Read more >How To Fix The Wrong Indentation Issue on GitHub | Medium
How To Fix GitHub's Weird Issue With Wrong Indentation ... The context menu should appear. Click on the option “Format document with”.
Read more >DocsPage code preview indentation is wrong #8078 - GitHub
Go to DocsPage for that component; Click "Code" button to bring up code preview; See wrong indentation for code preview. Expected behavior. The ......
Read more >SuspiciousIndentation: Suspicious indentation
you start typing an if statement on the line above something you want to make conditional, and you haven't indented it yet.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Would you mind putting together a failing test case for this?
Fixed by #403