PowershellUtils icon indicating copy to clipboard operation
PowershellUtils copied to clipboard

Powershell 3?

Open ottobackwards opened this issue 12 years ago • 6 comments

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

ottobackwards avatar Oct 01 '12 14:10 ottobackwards

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.

guillermooo avatar Oct 01 '12 14:10 guillermooo

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 ;)

ottobackwards avatar Oct 01 '12 18:10 ottobackwards

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.

guillermooo avatar Oct 01 '12 19:10 guillermooo

working for me, thanks!

ottobackwards avatar Oct 02 '12 13:10 ottobackwards

I'll have to fix this at some point. Please leave open for now :)

guillermooo avatar Oct 02 '12 14:10 guillermooo

Im getting errors trying to use it with PowerShell 3. I'm sure the same same is probably true for PowerShell 4.

mkanet avatar Nov 10 '13 04:11 mkanet