|
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
gemisigo
Joined: 11 Mar 2010 Posts: 2141
|
|
[SA 9.1.276 Pro] - Snippets (not) triggering in comments |
|
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 |
|
|
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7907
|
|
|
|
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 2010 Posts: 2141
|
|
|
|
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 |
|
|
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7907
|
|
|
|
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 2010 Posts: 2141
|
|
|
|
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).
|
|
Tue May 16, 2017 10:02 am |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|