I noticed that SA no longer triggers snippets using last character when they're typed in comments. Was this change intentional?

UPDATE: Hmm... It might not be the case after all. I managed to trigger them a few times. It just does not seem to work reliably.

Tue May 16, 2017 6:31 am

SysOpSite Admin

Joined: 26 Nov 2006Posts: 6750

Could that be a timing issue? Maybe it's busy running something else and cannot execute the snippet because the connection is busy? If you can reproduce it again, please wait for a little while.

Tue May 16, 2017 7:23 am

gemisigo

Joined: 11 Mar 2010Posts: 1492

It could if there was anything running. I noticed that snippets tend to not execute $$...$$ macros when triggered in medias res. But there wasn't. I narrowed it down to two very simple cases. If it is a multi-line comment (the /* */ sort) it works. If it's the single line one (the -- type) it doesn't.

Tue May 16, 2017 9:25 am

SysOpSite Admin

Joined: 26 Nov 2006Posts: 6750

Thanks a ton for narrowing it down to a reproducible case. I'm going to submit a bug report to have this fixed as quickly as possible.

Tue May 16, 2017 9:33 am

gemisigo

Joined: 11 Mar 2010Posts: 1492

Thanks, but I'm not sure it needs fixing. It only affects one specific use case (adding example calls/selects to objects for test cases), and now that I know its limitations I think I can easily live with them. Actually, I've already modified the snippets that used this as a feature. I suggest you don't bother with it (unless, of course, other users complain about it).