[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.
Bosparan
Posts: 289
Last visit: Sun Jan 24, 2021 2:18 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:
  1. <Template version="1.0" type="File" tags="md">
  2.  
  3.   <Description>Creates a empty md file.</Description>
  4.  
  5.   <Company>Infernal Assocates Ltd.</Company>
  6.  
  7. </Template>
Then try to create a file from this template.

User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am

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: 289
Last visit: Sun Jan 24, 2021 2:18 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

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.