question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Contextual component indentation issue

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rwjbluecommented, May 1, 2018

Would you mind putting together a failing test case for this?

0reactions
rwjbluecommented, Sep 11, 2018

Fixed by #403

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found