Powershell Versio Warning

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 1 year and 6 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
Woody_033
Posts: 111
Last visit: Wed Nov 15, 2023 3:46 pm
Been upvoted: 1 time

Powershell Versio Warning

Post by Woody_033 »

Product: PowerShell Studio 2022 (64 Bit) Build: v5.8.209
OS: Windows 10 Pro (64 Bit) Build: v10.0.19044.0
PSVersion 5.1.19041.1682
PSVersion 7.2.6

Just upgraded from Studio 2020 to 2022
Warning me about the version
Please advise
Wøødy
Attachments
Untitled.png
Untitled.png (10.08 KiB) Viewed 1023 times
Face piles of trials with smiles and coffee :D
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 3:14 pm
Answers: 39
Been upvoted: 30 times

Re: Powershell Versio Warning

Post by brittneyr »

As of build (5.8.209), PowerShell 7.2.6 is not supported.

Support for PowerShell 7.2.6 will be released with service build 5.8.210. This build should be released next week.
Brittney
SAPIEN Technologies, Inc.
User avatar
Woody_033
Posts: 111
Last visit: Wed Nov 15, 2023 3:46 pm
Been upvoted: 1 time

Re: Powershell Versio Warning

Post by Woody_033 »

Thank you for the quick reply brittneyr,
This why I am getting these error?
  1. [2020.08.25 - 16:38:25] Unhandled Exception:
  2. Object reference not set to an instance of an object.
  3.    at ..(SyntaxEditor , EventArgs )
  4.    at ActiproSoftware.SyntaxEditor.SyntaxEditor.#VZe(EventArgs #yhb)
  5.    at #CLe.#4Le.UpdateDescriptionTip()
  6.    at #CLe.#4Le.#Njc(SyntaxEditor #bCb)
  7.    at ActiproSoftware.SyntaxEditor.SyntaxEditor.#Njc()
  8.    at ActiproSoftware.SyntaxEditor.SyntaxEditor.#F2e(Object #xhb, EventArgs #yhb)
  9.    at System.Windows.Forms.Timer.OnTick(EventArgs e)
  10.    at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
  11.    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Face piles of trials with smiles and coffee :D
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 3:14 pm
Answers: 39
Been upvoted: 30 times

Re: Powershell Versio Warning

Post by brittneyr »

I need more information as to what you were doing when the error occurred.
Also, that error message is from 2020.
Brittney
SAPIEN Technologies, Inc.
User avatar
Woody_033
Posts: 111
Last visit: Wed Nov 15, 2023 3:46 pm
Been upvoted: 1 time

Re: Powershell Versio Warning

Post by Woody_033 »

Sorry wrong end of the log file I guess...
  1. --------------------------------------------------
  2. [2022.09.02 - 12:47:28] Unhandled Exception:
  3. startIndex cannot be larger than length of string.
  4. Parameter name: startIndex
  5.    at System.String.Substring(Int32 startIndex, Int32 length)
  6.    at .€.(SyntaxEditor , EditorViewMouseEventArgs )
  7.    at ActiproSoftware.SyntaxEditor.SyntaxLanguage.#JYe(SyntaxEditor #bCb, EditorViewMouseEventArgs #yhb)
  8.    at ActiproSoftware.SyntaxEditor.SyntaxEditor.#t3e(EditorViewMouseEventArgs #yhb)
  9.    at ActiproSoftware.SyntaxEditor.EditorView.OnMouseHover(MouseEventArgs e)
  10.    at ActiproSoftware.WinUICore.UIElement.#gxe(MouseEventArgs #yhb)
  11.    at ActiproSoftware.WinUICore.UIControl.OnMouseHover(EventArgs e)
  12.    at System.Windows.Forms.Control.WndProc(Message& m)
  13.    at ActiproSoftware.SyntaxEditor.SyntaxEditor.WndProc(Message& m)
  14.    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
  15. --------------------------------------------------
  16. [2022.09.02 - 12:48:47] Unhandled Exception:
  17. startIndex cannot be larger than length of string.
  18. Parameter name: startIndex
  19.    at System.String.Substring(Int32 startIndex, Int32 length)
  20.    at .€.(SyntaxEditor , EditorViewMouseEventArgs )
  21.    at ActiproSoftware.SyntaxEditor.SyntaxLanguage.#JYe(SyntaxEditor #bCb, EditorViewMouseEventArgs #yhb)
  22.    at ActiproSoftware.SyntaxEditor.SyntaxEditor.#t3e(EditorViewMouseEventArgs #yhb)
  23.    at ActiproSoftware.SyntaxEditor.EditorView.OnMouseHover(MouseEventArgs e)
  24.    at ActiproSoftware.WinUICore.UIElement.#gxe(MouseEventArgs #yhb)
  25.    at ActiproSoftware.WinUICore.UIControl.OnMouseHover(EventArgs e)
  26.    at System.Windows.Forms.Control.WndProc(Message& m)
  27.    at ActiproSoftware.SyntaxEditor.SyntaxEditor.WndProc(Message& m)
  28.    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Here is the other end...
They seem to occur when I hover a function, that is loaded, but not loaded
Attachments
Untitled.png
Untitled.png (6.36 KiB) Viewed 1001 times
Face piles of trials with smiles and coffee :D
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 3:14 pm
Answers: 39
Been upvoted: 30 times

Re: Powershell Versio Warning

Post by brittneyr »

Please answer the following:
- Is this a project or single file?
- Did you write this function or is it imported from a module?
- Does this error occur on all functions or just this one?
Brittney
SAPIEN Technologies, Inc.
User avatar
Woody_033
Posts: 111
Last visit: Wed Nov 15, 2023 3:46 pm
Been upvoted: 1 time

Re: Powershell Versio Warning

Post by Woody_033 »

Project (of single files)
It only occurs when I hover my mouse goes over the function name that is not recognized
If a function is recognized, it does not throw an error
I'm in the process of importing functions from an old into a new project
Some functions I wrote, some are from other team members
I have not gotten into modules yet
Face piles of trials with smiles and coffee :D
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 3:14 pm
Answers: 39
Been upvoted: 30 times

Re: Powershell Versio Warning

Post by brittneyr »

I'm having some issues reproducing this issue.
- What type of Project is this? Collection, Form, MulitForm, Empty
- Are the functions defined in separate files from were they are being called in the project.
- Are the functions that are having issues dot sourced?

Can you upload the project with this issue or a sample project demonstrating this issue?
https://www.sapien.com/support/upload
Brittney
SAPIEN Technologies, Inc.
User avatar
Woody_033
Posts: 111
Last visit: Wed Nov 15, 2023 3:46 pm
Been upvoted: 1 time

Re: Powershell Versio Warning

Post by Woody_033 »

Project is collection
I'm not using dot sourcing, I am using Shared
Seems it has nothing to do with the function, any text that is not recognized seem to throw an error
I will Upload a small clip if that is ok
Face piles of trials with smiles and coffee :D
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 3:14 pm
Answers: 39
Been upvoted: 30 times

Re: Powershell Versio Warning

Post by brittneyr »

Are you able to run your project?
From the video, that script doesn't appear able to run.

Can you please provide a screenshot of your editor settings in Options:
SPS_EditorSettings.png
SPS_EditorSettings.png (31.3 KiB) Viewed 961 times
Brittney
SAPIEN Technologies, Inc.
This topic is 1 year and 6 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.