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.

I cannot beautify my code

See original GitHub issue

It throw this error out, but i’m not sure what it mean??

File src/core/download_resource_management: error: indent/outdent mismatch: 2.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:21 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
rkennedycommented, Apr 24, 2018

The current master branch exhibits the reported behavior on the code submitted by kamontat on October 18. Commit 9e98979087f0923ae222770d80fb25728c6914c2 doesn’t fix it. Here’s a smaller example that exhibits the same behavior:

#!/bin/bash

function get_resource {
    IFS="$DELIMITER" read -r -a ARR <<< "$temp"
}

The problem is indeed the <<< here-string syntax. Beautysh mostly assumes that any appearance of << indicates a here document, which is false. The above commit changed beautysh to exclude a very specific use of here strings (i.e., the ones at the ends of while loops), but doesn’t address broader use of here strings. (Several examples available in the Advanced Bash-Scripting Guide on the topic.)

0reactions
bartekpaciacommented, Sep 29, 2021

I get the same error, and my script works just fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Beautify on save in VS code? - Stack Overflow
I want to have my code beautified whenever I save a file, but can't figure out how to configure it that way. It...
Read more >
Beautify 1.5.0 format on save not working with vscode 1.50.1
1, using command palette to select command "Beautify File" works. Does this issue occur when all extensions are disabled?: N/A. The issue is ......
Read more >
How to Beautify a JavaScript File in Visual Studio Code
Search for and select Beautify: Click Install: Now, select CTRL + SHIFT + P or the View menu to bring up the Command...
Read more >
How to enable auto format on save with prettier in VS Code ...
Your browser can't play this video. ... auto format on save in VS Code (Visual Studio Code ) editor with prettier code formatter...
Read more >
Code Formatting with Prettier in Visual Studio Code - YouTube
Learn how to have your code automatically formatted to save yourself a lot of time and headache! ... Your browser can't play this...
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