haxe-sublime-bundle icon indicating copy to clipboard operation
haxe-sublime-bundle copied to clipboard

Fix "file changed on disk" error during autocomplete

Open kennygoff opened this issue 6 years ago • 3 comments

Add a helper function to discern between changed os.stat() api between Python 2 and 3. This should fix "Files changed on disk" popups during auto-complete in #272.

Reference:

kennygoff avatar May 08 '18 00:05 kennygoff

@clemos I'm still getting some of those changed on disk errors, but I dug into the plugin code and this seemed to fix it, or at least part of the issue. This prevents it from erroring on every change. Hopefully this is a start, will dig into it some more, and can provide more help to debug this now.

Unfortunately I haven't been getting any ST3 console stack traces so until I figure out that, debugging is a pain.

kennygoff avatar May 08 '18 00:05 kennygoff

I was able to get it working. My original commit was a false positive, unfortunately. Was able to consistently reproduce by completely closing ST3, reopening, then typing one letter after import . This fix is working for me but I am not sure if the block of code I commented out needs to be replaced. So far seems to be able to auto-complete in-file code, packages, etc.

kennygoff avatar May 08 '18 02:05 kennygoff

What is the state of this bug?

alex-ander-is avatar Jan 16 '20 09:01 alex-ander-is