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.

RLS update breaks formatting

See original GitHub issue

I think the latest RLS implements formatting in a different way. As a result Ctrl+Shift+F produces no effect.

How to reproduce:

  • update to RLS from nightly-2019-04-11
  • edit any valid .rs file and artificially alter the indentation
  • attempt autoformat using Ctrl+Shift+F
  • result: no changes
  • expected result: text is indented correctly

Additional information: There is no error message in the RLS logs. It does appear that the format operation is returning just a list of changes lines rather than the whole formatted file.

[t=1554978597331] LSP4E to org.eclipse.corrosion.rls:
{"jsonrpc":"2.0","id":"56","method":"textDocument/formatting","params":{"textDocument":{"uri":"file:[...]"},"options":{"tabSize":4,"insertSpaces":false}}}
[t=1554978597359] org.eclipse.corrosion.rls to LSP4E:
{"jsonrpc":"2.0","id":"56","result":[{"range":{"start":{"line":5,"character":0},"end":{"line":5,"character":18446744073709551615}},"newText":"use gtk::traits::*;"}]}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mickaelistriacommented, Apr 11, 2019

"character":18446744073709551615 is definitely an erroneous value (character is supposed to be the “column” of the character. The bug is in RLS 😉

0reactions
norrucommented, Apr 15, 2019

fixed with RLS in nightly-2019-04-14

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to disable automatic line breaks in formatter? #416 - GitHub
When I write this and save: let board = stdin.lock().lines().map(|r| r.unwrap()).take(3).collect:: (); It is automatically formatted like ...
Read more >
Row-Level Security - SQL Server | Microsoft Learn
Row-Level Security (RLS) simplifies the design and coding of security in your application. RLS helps you implement restrictions on data row ...
Read more >
Using row-level security (RLS) with user-based rules to restrict ...
Restrict access to an existing dataset by using row-level security (RLS) with rules based on user name or group in Amazon QuickSight.
Read more >
RLS not working on powerbi online
RLS applies correctly when using Power BI desktop for all users. ... at least for a little while. I'll update this post if...
Read more >
RLS using Cognito - Amazon QuickSight Community
I beleive you are using an IAM role that Cognito users assume to access QuickSight, so your QuickSight usernames should be in the...
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