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

Nimpretty issue, multiline string of x length only causes output grow every time. #11700

Closed
treeform opened this issue Jul 9, 2019 · 0 comments

Comments

@treeform
Copy link
Contributor

commented Jul 9, 2019

This code:

var rows = await pool.rows(sql"""
    SELECT STUFF
    WHERE fffffffffffffffffffffffffffff
  """,
  @[
    "AAAA",
    "BBBB"
  ]
)

nimpretty bug.nim

var rows = await pool.rows(sql"""
    SELECT STUFF
    WHERE fffffffffffffffffffffffffffff
  """,
    
  @[
    "AAAA",
    "BBBB"
  ]
)

It grew by a space, but its not stable. Running it again just ads more spaces!

Run nimpretty bug.nim 10 times:

var rows = await pool.rows(sql"""
    SELECT STUFF
    WHERE fffffffffffffffffffffffffffff
  """,
    











  @[
    "AAAA",
    "BBBB"
  ]
)

Note the number of fffffffffffffffffffffffffffff is important. If you have less fs it stops growing. Very strange!

@mratsim mratsim added the nimpretty label Jul 10, 2019

narimiran added a commit to narimiran/Nim that referenced this issue Jul 11, 2019

@Araq Araq closed this in 2f0a50f Jul 12, 2019

narimiran added a commit that referenced this issue Jul 15, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.