PowershellUtils
PowershellUtils copied to clipboard
Powershell 3?
I just started using ST2, and after setting up the powershellutil, i am unable to get it to work. No matter what command I attempt, the text that is inserted into the buffer/document/whatever is a class name, such as System.Collections.ArrayList+ArrayListEnumeratorSimplSystem.Collections.ArrayList+ArrayListEnumeratorSimpl
I have powershell 3 installed, and I am wondering if that is the problem? Or is it my command syntax? Do you have an example that works? I tried the examples in the help.
Also, how can I run the unit tests included in the package?
Thank you
The package has been tested only with PS2. It seems it needs some changing to be able to work with PS3.
The tests are probably broken, btw.
I wouldn't mind trying to fix it, but I have not done any ST2 work ( since I'm new to it ) so i'm not sure how to run your tests at all, even if they don't work.
Any tips, and maybe i'll send you a patch ;)
Surprisingly, evaluation of variables seems to have changed in PS3 with respect to PS2 for method calls. If you put double quotes around $input
in line 19 it should work well. I'll have to see if this has any other ramifications, but it looks like that should do it.
working for me, thanks!
I'll have to fix this at some point. Please leave open for now :)
Im getting errors trying to use it with PowerShell 3. I'm sure the same same is probably true for PowerShell 4.