-
Notifications
You must be signed in to change notification settings - Fork 43
diagnostics and error highlighting run one step behind current state #150
Comments
This plugin is otherwise amazing and makes it a joy to learn and use rust, I am happy to screenshare and poke at whatever you'd like to help get this fixed. I have another mac I am going to try and replicate this on, I will post updates if I find anything different. |
I haven't done much testing myself on mac as I don't have one. I'll try to reproduce on a VM when I get some free time. |
I figured out what's causing this, it's dropbox! I do a lot of development across multiple machines and I have a I will dig into this a little more, but I assume it's an rls problem at this point, not one with the IDE. |
Interesting, glad you found the cause. You could try a different atom file
watching implementation. I've worked around different issues with the file
watcher before, maybe it would make a difference here too:
#104 (comment)
…On Wed, 27 Nov 2019, 20:18 Ben Sherman, ***@***.***> wrote:
I figured out what's causing this, it's dropbox!
I do a lot of development across multiple machines and I have a
~/code/rust directory that is synced across boxes. It looks like if I am
using atom inside that folder, the delay occurs. I moved off of it and the
ide works like it supposed to!
I will dig into this a little more, but I assume it's an rls problem at
this point, not one with the IDE.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#150?email_source=notifications&email_token=AARZHV45BBIBJDINJVJB7Z3QV3IYRA5CNFSM4JP4GMLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFKUTXA#issuecomment-559237596>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARZHV74Q4AUN6J6I3XSMNTQV3IYRANCNFSM4JP4GMLA>
.
|
Another turn of events - I link ~/code to ~/Dropbox/code - it isn't dropbox that is doing this, it's the link. This is how I tested it:
The code in |
ide-rust has moved to using rust-analyzer instead of RLS. I'll close this issue for now, please reopen if this still applies to the new stack. |
Something strange is happening and I can't quite work out why.
I am finding that the errors and correction of those errors is being displayed one step behind the state of the code.
I can take a simple hello world, cause an error in it, and save. No error appears. I can make a second error, save, and the first error appears. I correct the errors, save, and the second appears. I can make a whitespace change, save, and then everything returns to the correct state.
I've attached a gif that shows what this behavior looks like.
When I go into the debug console, I see rls sending / receiving info from the plugin, and the correct state alway appears one rls run later. I feel like this is an off by one somewhere, but don't know where to start looking.
I have cleared all preferences and am running a clean atom on MacOS 10.14.6.
No preferences have been set.
This behavior is constant, and has existed since I started using the plugin.
The text was updated successfully, but these errors were encountered: