Conversation
…nt blocking on main thread
|
Forgot about the weird reverse typing thing reported by @mokagio, still a problem with inline preview turned on. |
There was a problem hiding this comment.
There was a problem hiding this comment.
We don't have any dispatch_sync calling _fa_performFuzzyFiltering from a background thread which is the only case where it would cause a deadlock, but I can work around it so we don't call dispatch_get_current_queue() cause it's deprecated
|
Hey @chendo thanks for this improvement! |
|
@vlas-voloshin thanks for the report, will investigate and hopefully fix! Doesn't seem to be specifically tied to the statement, more of a timing issue with running the autocompletion outside of text insertion. |
|
@chendo got a second crash report for you 😃 |
…e threads modifying priority factor cache
|
@vlas-voloshin thanks for that! I've pushed two commits that should hopefully solve those crashes, let me know if you see any other ones. |
|
@chendo I think it's much more stable now, thanks! Though I got another crash, now in Objective C code 😃 |
|
@vlas-voloshin I've hopefully patched around that, let me know if you see that crash again |
|
Got you another one, @chendo! Back in Swift. |
|
@vlas-voloshin was that with those last 2 commits I pushed? |
|
@chendo yes, I believe so. I will, however, try doing a clean rebuild/install of the plugin. |
|
@chendo I also keep seeing a rare, but annoying issue with autocompletion results list appearing and moving the caret a bit backwards while I'm still typing, so I end up inserting something inside already typed text 😢 |
|
Is that with inline preview turned on?
|
|
@chendo no, I don't use Inline Preview actually. |
|
@vlas-voloshin hmm okay, that seems like that's gonna be difficult to track down and fix especially without a reliable repro :( |
|
@chendo What's the best way to try this out? pull down your PR branch and build it locally? or if it makes crash symbolication easier, do you have a pre-built version I should use? |
|
Hey @chendo kudos on this PR, using it now to see how it spins. I'll let you know if I run into anything weird. |
|
@chendo been using this all day yesterday and today at work. Works like a charm! |
|
Belay that, after a removal and reinstall it's all fine.
|
|
Is the version number for this still 2.1.1? I'm trying to verify in the Xcode UI that I'm actually using this plug-in and not some cached thing from somewhere else in the system. |
|
This works great for me, haven't had a crash yet. |
|
Guys, what are the plans on this PR? Is it ready for use, or it's better to build plugin from nonblocking branch for now? |
Last one wouldn't merge cleanly with master and felt a bit meh so I started over.
Xcode feels a lot better with non-blocking turned on!
Changes:
offand0.1seconds.dispatch_source_ttimer to start delay after typing_fa_bestMatchForQuerywill now bail out if the prefix changes (i.e. a new keystroke happens when it's in a middle of matching). This could be implemented a bit nicerHaven't been able to crash it yet!
Caveats:
dispatch_source_tintoobjc_setAssociatedObject(wrapping inNSValuedidn't appear to do what I wanted), so it'sstatic