-
Notifications
You must be signed in to change notification settings - Fork 353
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
Improving scoring: post unexpected results here #40
Comments
Reported in #34, both iOS and OS X, lowercase |
@wookiee I cannot see neither Please open a separate issue with more details (on when and where in the code it happens) if with plugin disabled you get If the |
I see the issue with the literal BOOLs almost always. Usually it's NO that isn't marked appropriately (I've never used NSOSF10OperatingSystem, except perhaps by accident), but sometimes YES gets marked down as well. While I can deal with this fairly easily, it seems to annoy some of my coworkers enough they've stopped using the plugin. (Weird. As soon as I was done writing this I turned the visible scoring on to see if I could get some better data, and now it completes YES/NO correctly every time. NSOSF10OperatingSystem still scores absurdly high for something that has never been used. Perhaps I've gotten used to manually correcting the BOOL literals and the appropriate values now score higher.) |
Same problem of @akolov .. Booleans are really annoying. Why there aren't language builtins in completions? Ty ;) |
Other Swift issues include parameter names (doesn't seem to recognize that I'm typing a name and tries to complete for everything) and closure capture parameters (same issues). Really annoying to have to escape out of the completion menu. |
Are there any news on this issue (booleans in particular) ? |
Are you actually missing the Without importing |
Post here the cases when the default choice is not what you'd expect.
Usually such cases can be resolved by adjusting scoring function parameters (available in plugin settings under Advanced). But I try to gather such cases myself because it might be worth to tweak the plugin's default parameters or scoring function based on common cases.
Before posting, make sure you're using the newest plugin version (can be seen in settings), and the default scoring parameters (can be reset in settings).
If your expected completion is missing from the list, Xcode isn't indexing, and it's there with plugin disabled then report a separate bug.
Most of relevant information can be presented in form of a screenshot, so this is the preferred way. Make sure you have following options enabled in plugin settings (or you provide the same information in text):
And indicate which completion you'd expect to be selected by default. Wether you are using iOS or OS X SDK and mention third-party frameworks if relevant.
Xcode (with or without the plugin) remembers recent completions, and learns to score them higher. Therefore indicate wether the problem occurs all the time or goes away (after you choose once or a few tmes).
Example
Here I actually had to choose
NSOSF1OperatingSystem
once just before the screenshot, so it's score is fairly high. But I do sporadically experience this one even without choosing it.It happens when using OS X SDK, I would expect
NO
to be selected by default, the problem usually goes away after just once choosingNO
.The text was updated successfully, but these errors were encountered: