Unable to add new files to existing projects after upgrading to PowerShell Studio 2021

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 2 years and 11 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.
User avatar
amoseng
Posts: 12
Last visit: Mon Oct 25, 2021 2:26 am

Unable to add new files to existing projects after upgrading to PowerShell Studio 2021

Post by amoseng »

Product: PowerShell Studio 2021 (64 Bit)
Build: v5.8.187
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.19042.0

I'm having trouble after upgrading to PSS2021. Now I am unable to add new PS files to my existing projects. Did something change in the way we are able to add files to projects, or is this a bug in the new version?

See the attached file. I am attempting to add a new file to the folder in my project, where output returns "Object reference not set to an instance of an object." whenever "add new file" is selected.

Any help is highly appreciated,

Best regards,
Mr. Moseng
Attachments
Project - Project SubFolder - Add New File - Error: Object reference not set to an instance of an object
Project - Project SubFolder - Add New File - Error: Object reference not set to an instance of an object
sapien_file_issue.PNG (107.01 KiB) Viewed 7415 times
User avatar
brittneyr
Site Admin
Posts: 1649
Last visit: Mon Mar 18, 2024 1:47 pm
Answers: 38
Been upvoted: 30 times

Re: Unable to add new files to existing projects after upgrading to PowerShell Studio 2021

Post by brittneyr »

Please answer the following questions:
- Does this also happen in new projects? Or just existing projects?
- What type of project is this?
- Do you see the Add File dialog appear after clicking 'New File'?
Brittney
SAPIEN Technologies, Inc.
User avatar
amoseng
Posts: 12
Last visit: Mon Oct 25, 2021 2:26 am

Re: Unable to add new files to existing projects after upgrading to PowerShell Studio 2021

Post by amoseng »

The problem persists through both old and new projects
This is a collection project containing several folders, files, and git repositories.
After clicking New File, no dialog appears.. I only receive the rather strange error as previously stated.

I can however add files through the top left "File - New" menu, as shown in the attachment
Attachments
File - New
File - New
sapien_file_issue2.PNG (31.86 KiB) Viewed 7402 times
User avatar
brittneyr
Site Admin
Posts: 1649
Last visit: Mon Mar 18, 2024 1:47 pm
Answers: 38
Been upvoted: 30 times

Re: Unable to add new files to existing projects after upgrading to PowerShell Studio 2021

Post by brittneyr »

So far I have not been able to reproduce this behavior.
Are these projects local to your machine?
Are you able to add files from the File Browser panel?
Can you please run the following tool then copy and paste the output:
https://sapien.s3.amazonaws.com/downloa ... nCheck.exe
Brittney
SAPIEN Technologies, Inc.
User avatar
amoseng
Posts: 12
Last visit: Mon Oct 25, 2021 2:26 am

Re: Unable to add new files to existing projects after upgrading to PowerShell Studio 2021

Post by amoseng »

These projects are located on an SMB share, so there are no funky network issues between the machine and the share. I have already checked that this is an issue specific to PSS2021.

I can add existing files, or add folders, without issues. It is only the New File that returns "Object reference not set to an instance of an object."

Output from your versioning tool:
Operating System: Windows 10 Enterprise 2009
OS build: 19042.867
32 or 64 bit OS: 64 bit
Screen Resolutions:
DISPLAY1: 1920 x 1080 with scale factor 100%,
DISPLAY2: 1200 x 1920 with scale factor 100%,
DISPLAY3: 1920 x 1080 with scale factor 100%

PowerShell Core: 7.1.0.0
PowerShell Core (x86): No PowerShell Core (x86) version detected
.NET Core Framework: 2.0.3, 2.0.5, 2.0.6, 2.0.7, 2.0.9, 2.1.26, 3.1.13, 5.0.0
.NET Core Framework (x86): No .NET Core Framework (x86) version detected
.NET Core Desktop: 3.1.13, 5.0.0
.NET Core Desktop (x86): No .NET Core Desktop (x86) version detected
PowerShell cache:
PowerShell 2: 32 Bit, 64 Bit
PowerShell 5: 32 Bit, 64 Bit
PowerShell 7: 64 Bit

SAPIEN Software:
Document Explorer 2018: 3.1.84.0,
PowerShell ModuleManager 2021: 1.1.9.0,
PowerShell Studio 2021: 5.8.187.0,
SAPIEN Updates: 1.1.39.0,
ScriptMerge 2021: 1.4.85.0
.NET Framework runtime: 4.8 or later
Visual Studio runtime: 14.0: v14.27.29016.00
User avatar
brittneyr
Site Admin
Posts: 1649
Last visit: Mon Mar 18, 2024 1:47 pm
Answers: 38
Been upvoted: 30 times

Re: Unable to add new files to existing projects after upgrading to PowerShell Studio 2021

Post by brittneyr »

I have not been able to reproduce this behavior.
Some changes have been made to the Add File dialog for the next service release. My guess is that this is what is causing this issue. When I have more information, I'll post here.
Brittney
SAPIEN Technologies, Inc.
User avatar
brittneyr
Site Admin
Posts: 1649
Last visit: Mon Mar 18, 2024 1:47 pm
Answers: 38
Been upvoted: 30 times

Re: Unable to add new files to existing projects after upgrading to PowerShell Studio 2021

Post by brittneyr »

Please try build 188 and let me know if you are still having issues.
Brittney
SAPIEN Technologies, Inc.
This topic is 2 years and 11 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.