Snippets Updates

Is it possible to trigger a re-load of suite and User snippets, without having to close and re-open the editor (which can be onerous with large suites)?

thanks

Hi

Sorry i’m not really following your suggested solution, i dont think you understood the issue.

User snippets exist in an rtf file under the AppData\Roaming folder in your user profile, there are no website nor google involved (that I am aware of…). The snippet file is processed at Eggplant application start and it’s product is accessible through the snippet pane in the editor.

If you then modify the rtf file, the changes are not reflected in the editor untill you reload the editor.

[Note: the comment you replied to was spam and has been removed]

If you add or edit either a User snippet or Suite snippet, you should see those changes reflected immediately for other scripts in the suite. Changes to User snippets may not show up in a different suite, though.

If you modify the rtf file directly outside of Eggplant, those changes probably won’t show up until you reload.

@SenseTalkDoug , I just created my forum account, so it appears that I am not able to post a topic yet (or did I miss something?). So I am adding my question at the end of this old post.

My Suite Snippets do not appear to be loading when opening a suite. I checked the SuiteSnippets.rtf file to make sure I had the latest version and it is present and located just inside the desired .suite folder. I also checked ALL of the .gitignore files to make sure that this file/file extension was not being ignored in the Git process. However, there are no Suite Snippets loading in the SenseTalk Browser.

What am I missing here? EPF version 23.2.1-Win64

Hi Brian,

Does your Sense Talk Browser look like this:


Or like this:

Thanks,
Dave

Dave! Been a minute! It’s really difficult to tell the difference between those images, especially considering that they are at different scales. What, specifically, are you wanting me to notice? I see maybe some font/font size differences? Again, really difficult to tell, but I’m leaning toward the first/larger image.

Its the snippet listing on the right - the 2nd image does not have an expansion arrow next to “suite snippets”, indicating no loaded snippets

Ah good call. In that case, my screen matches the second image that does not have any Suite Snippets.

@Paul , @DaveHester
Any idea why Suite Snippets would not be loading into the SenseTalk Browser?

I would recommend that you create a copy of your .rtf file and then manually create a Suite Snippet in that suite. If it creates a new .rtf file in that same suite root folder, you can always copy the contents of the original file into the new one. If it creates an .rtf in another folder, it may be that your suite root folder isn’t where you expected it to be. I would be curious what behavior you see.

Dave

I figured it out!

First, I followed your recommendation by creating a copy of my current SuiteSnippets.rtf file (that wasn’t loading into EPF) and created a new, very basic Suite Snippet. I carefully examined how it changed the SuiteSnippets.rtf file (and why it was still showing in my SenseTalk Browser and not “disappearing” like the others).

Then, using the new Suite Snippet as a template, I went through and separated all of the other “snippet objects” in the file (so that each object was separated from the other objects by a few blank lines). This made it MUCH easier to relate what’s in the .rtf file to what I wanted in the EPF window, as well as conceptualize what a Suite Snippet SHOULD look like in the file.

After comparing the objects and not seeing anything obvious, I headed over to a .rtf tutorial and learned the syntax.

Then, I started re-arranging the snippet objects and noticed that they started to appear in the SenseTalk Browser in EPF.

Finally, the issue became clear: I was relocating the suite snippet objects ABOVE an extra “}” character in the file. This was preventing any .rtf lines AFTER the extra “}” from being read/loaded by EPF. Face palm, anyone?

My Suite Snippets are now loading fine. I have a MUCH better mastery (a.k.a. “ability to trip and fall through”) of .rtf AND Suite Snippets! HOORAY!!!

2 Likes