Thanks for reporting the issue - I'll take a look.

For the Wait for input when process exits, I'm assuming you're using .NET 
debugging.  You could go to project properties and switch to Python debugging 
and this option will be respected.  Unfortunately there's no way for us to 
enable it for .NET debugging because the debugger simply doesn't support it.  
But you can execute w/o debugging and we will wait then - that might be easier 
than adding -i.

As for the exception, is DPStudio a plugin you have installed?

From: ironpython-users-bounces+dinov=microsoft....@python.org 
[mailto:ironpython-users-bounces+dinov=microsoft....@python.org] On Behalf Of 
Lukas Cenovsky
Sent: Tuesday, July 12, 2011 12:02 PM
To: ironpython-users@python.org
Subject: [Ironpython-users] PyTools Set as Startup File bug

Dino,
thanks for the new Pytools release.

It looks like the Set as Startup File command is broken in RC1. When I click 
Set as Startup File for any file deeper than project folder, the project folder 
is added to the startup file (e. g. MyProject\tests\testOne.py instead of 
tests\testOne.py) path causing the file is not found when the project is run 
(http://pytools.codeplex.com/workitem/351).

The above error combined with Wait for input when process exits ... options not 
working is quite annoying - I had to use capturing screen program to be able to 
find out the error message. I have workarounded this issue with manually adding 
-i to Debug Interpreter Arguments of my project. How should the Wait ... option 
work?

Also right click on any python file in Solution explorer throws the following 
error into output window:

Exception Type: System.ArgumentException
Exception Message: InvalidParameter
Parameter name: index
Exception Stack Trace:    at 
Microsoft.PythonTools.Project.Automation.OAProperties.Item(Object index)
   at 
DPStudio.VSCommands.Features.MenuCommands.UngroupItemsCommand.#jr(SelectedItem 
i)
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
   at DPStudio.VSCommands.Features.MenuCommands.UngroupItemsCommand.#1i()
   at #U.#W.#Vi()

Exception Type: System.ArgumentException
Exception Message: InvalidParameter
Parameter name: index
Exception Stack Trace:    at 
Microsoft.PythonTools.Project.Automation.OAProperties.Item(Object index)
   at #9f.#mg.#0w(ProjectItem me)

Not sure whether this is Python Tools bug...

--
-- Lukáš
_______________________________________________
Ironpython-users mailing list
Ironpython-users@python.org
http://mail.python.org/mailman/listinfo/ironpython-users

Reply via email to