[PSS 2018][Bug] File Template for non-ps1 files

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 5 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Bosparan
Posts: 290
Last visit: Fri Oct 08, 2021 11:59 am

[PSS 2018][Bug] File Template for non-ps1 files

Post by Bosparan »

PSS Version: 2018 5.5.155x64
OS Version: Windows 10 x64 1803
WMF Version: 5.1

Impact: Minor

Symptoms:
Creating a file template for another file type works just fine and will show up in the file selection options.
However, when trying to create a file from that template, it will just silently fail.

Reproducibility:
Create a new file template with an empty file named 'Markdown File.md'
Create the templatefile 'Markdown File.md.pstemplate' with the following content:
Code: [Select all] [Expand/Collapse] [Download] (Markdown File.md.pstemplate)
  1. <Template version="1.0" type="File" tags="md">
  2.   <Description>Creates a empty md file.</Description>
  3.   <Company>Infernal Assocates Ltd.</Company>
  4. </Template>
Then try to create a file from this template.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: [PSS 2018][Bug] File Template for non-ps1 files

Post by davidc »

It doesn't load because PowerShell Studio isn't aware of the file type. We will investigate further and see what we can do.
David
SAPIEN Technologies, Inc.
Bosparan
Posts: 290
Last visit: Fri Oct 08, 2021 11:59 am

Re: [PSS 2018][Bug] File Template for non-ps1 files

Post by Bosparan »

Just to be sure in case you are referring to 'Synchronized' and files showing up in the project view:
Synchronization is enabled, this is my File Filter: *.*
It is not created in the folder at all.

Regular md files show just fine :)
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: [PSS 2018][Bug] File Template for non-ps1 files

Post by davidc »

This issue will be resolved in the next service release. Synchronization is not related in this case.
David
SAPIEN Technologies, Inc.
This topic is 5 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.