Jump to content

Snip behaving oddly - I type one letter and it repeats [Fixed 2.4 b274]


kurosawafan

Recommended Posts

I found an odd behavior using the "snip" function. I typed "snip" into the Alfred field and then began typing the keyword for the snippet I wanted. The hotkey was "nope" and I usually just type "snip n" and it shows up at the top of the list and I press enter and it pastes the desired text.

 

This time, I typed "snip n" and in the window "snip nn" was typed. I wondered if it was my "n" key but I tried several other letters and it double typed them after "snip." Of course, I could type in "snip" without it typing "ssnniipp" so it was only after typing "snip" that I got the double letters. A few other letters "snip d" for example, worked fine. I can type "snip" and then "nn" and then backspace and then "oo" and backspace and "pp" etc. so that it ends up spelling "snip nope" but then the snip with the keyword of "nope" doesn't come up. Other keywords do come up when I type "snip" and the other letters (b, c, d and a few more) that don't type double. 

 

Very strange.

Link to comment
Share on other sites

I found an odd behavior using the "snip" function. I typed "snip" into the Alfred field and then began typing the keyword for the snippet I wanted. The hotkey was "nope" and I usually just type "snip n" and it shows up at the top of the list and I press enter and it pastes the desired text.

 

This time, I typed "snip n" and in the window "snip nn" was typed. I wondered if it was my "n" key but I tried several other letters and it double typed them after "snip." Of course, I could type in "snip" without it typing "ssnniipp" so it was only after typing "snip" that I got the double letters. A few other letters "snip d" for example, worked fine. I can type "snip" and then "nn" and then backspace and then "oo" and backspace and "pp" etc. so that it ends up spelling "snip nope" but then the snip with the keyword of "nope" doesn't come up. Other keywords do come up when I type "snip" and the other letters (b, c, d and a few more) that don't type double. 

 

Very strange.

 

If you could open Console.app and look for errors in there when seeing these double characters (you might need to expand out the little triangle on the left of the log messages to get the full error), and email this to info@alfredapp com, I should be able to work out what's going on for you :)

 

Cheers,

Andrew

Link to comment
Share on other sites

  • 10 months later...

I have the same problem and it's extremely annoying.  Here's the exception I caught in Console.app -

 

7/20/14 1:43:49.265 PM Alfred 2[16861]: An uncaught exception was raised
7/20/14 1:43:49.265 PM Alfred 2[16861]: *** -[__NSCFString stringByReplacingOccurrencesOfString:withString:options:range:]: nil argument
7/20/14 1:43:49.268 PM Alfred 2[16861]: (
0   CoreFoundation                      0x00007fff8d4f525c __exceptionPreprocess + 172
1   libobjc.A.dylib                     0x00007fff931ebe75 objc_exception_throw + 43
2   CoreFoundation                      0x00007fff8d4f510c +[NSException raise:format:] + 204
3   Foundation                          0x00007fff967799cf -[NSString stringByReplacingOccurrencesOfString:withString:options:range:] + 88
4   Foundation                          0x00007fff96779960 -[NSString stringByReplacingOccurrencesOfString:withString:] + 89
5   Alfred Framework                    0x00000001000d4be1 +[AlfredClipboardManager processSnippet:] + 130
6   Alfred Framework                    0x00000001000faa91 -[AlfredWorkflowInputSnippetFilter filterWithQuery:] + 822
7   Alfred Framework                    0x00000001000d884e -[AlfredWorkflowAbstractFilter setSearchQuery:] + 240
8   Alfred Framework                    0x00000001000be9b4 -[AlfredWorkflow setSearchQuery:] + 265
9   Alfred Framework                    0x00000001000bd565 -[AlfredWorkflowManager setSearchQuery:] + 1011
10  CoreFoundation                      0x00007fff8d4c3e0c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
11  CoreFoundation                      0x00007fff8d3b782d _CFXNotificationPost + 2893
12  Foundation                          0x00007fff9670d7ba -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
13  CoreFoundation                      0x00007fff8d4c3e0c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
14  CoreFoundation                      0x00007fff8d3b782d _CFXNotificationPost + 2893
15  Foundation                          0x00007fff9670d7ba -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
16  AppKit                              0x00007fff91ed31b4 -[NSTextView(NSSharing) didChangeText] + 345
17  AppKit                              0x00007fff91ed02c2 -[NSTextView insertText:replacementRange:] + 2325
18  AppKit                              0x00007fff91ece978 -[NSTextInputContext handleTSMEvent:] + 8271
19  AppKit                              0x00007fff91ecc905 _NSTSMEventHandler + 205
20  HIToolbox                           0x00007fff909791d4 _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 892
21  HIToolbox                           0x00007fff90978787 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 385
22  HIToolbox                           0x00007fff9098c880 SendEventToEventTarget + 40
23  HIToolbox                           0x00007fff909cdd0d SendTSMEvent + 33
24  HIToolbox                           0x00007fff909cd89b SendUnicodeTextAEToUnicodeDoc + 473
25  HIToolbox                           0x00007fff909cd595 TSMKeyEvent + 546
26  HIToolbox                           0x00007fff909ba2b7 TSMProcessRawKeyEvent + 3807
27  AppKit                              0x00007fff91ecc150 -[NSTextInputContext handleEvent:] + 731
28  AppKit                              0x00007fff91eab9dd -[NSView interpretKeyEvents:] + 180
29  AppKit                              0x00007fff91ecbd6d -[NSTextView keyDown:] + 658
30  AppKit                              0x00007fff91e7856b -[NSWindow sendEvent:] + 1843
31  AppKit                              0x00007fff91e19b32 -[NSApplication sendEvent:] + 3395
32  Alfred 2                            0x0000000100003f08 Alfred 2 + 16136
33  AppKit                              0x00007fff91c699f9 -[NSApplication run] + 646
34  AppKit                              0x00007fff91c54783 NSApplicationMain + 940
35  Alfred 2                            0x00000001000018f4 Alfred 2 + 6388
36  ???                                 0x0000000000000001 0x0 + 1
)
 
Note that I chose to type "s" to activate snippet instead of "snip" since I used it a lot.
Link to comment
Share on other sites

 

I have the same problem and it's extremely annoying.  Here's the exception I caught in Console.app -

 

 

Hmm, there shouldn't be a null pointer in this situation, but I'll add a bit of code in to make this more robust. I'm going to move this into bugs to keep a better track of this, but expect improved behaviour in this in the next release.

 

For now, check your time and date format settings in OS X's preferences, as this is what looks like is indirectly causing an issue in Alfred.

 

Cheers,

Andrew

Link to comment
Share on other sites

 

I have the same problem and it's extremely annoying.  Here's the exception I caught in Console.app -

 

Note that I chose to type "s" to activate snippet instead of "snip" since I used it a lot.

 

 

Also, if you don't mind, any chance you could email your snippets database to info@alfredapp com... I can take a look to see if there is any specific issues. You'll find this in:

 

Alfred.alfredpreferences/clipboard/snippets.alfdb

 

Cheers,

Andrew

Link to comment
Share on other sites

Thanks Andrew.  Unfortunately I won't be able to share my snippets.  My date/time setting is the standard US one.

 

No problems at all... do any of your snippets use substitutions such as {clipboard} or {date}?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...