jtilander / niftyplugins

Visual Studio productivity plugins
MIT License
40 stars 24 forks source link

EditItem times out if multiple other workspaces have the file open #73

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open the file for edit in a large number of workspaces. The current 
reproducible case I have for this is 40 workspaces, but it probably happens for 
fewer.
2. From Visual Studio, try to open the file for edit. Happens if either I right 
click on the file's tab and select EditItem, or try to save the file with 
autoCheckoutOnSave

What is the expected output? What do you see instead?
I expect the file to be opened for edit. This is printed in the output pane:
NiftyPerforce ( Info): p4.exe: edit [FileName] timed out (30000 ms)

What version of the product are you using? On what operating system?
1.3.7, VS2008

Please provide any additional information below.
If I open the file for edit from Windows Explorer, there is a very large 
warning consisting of lines of the form
"[Filename] - also opened by [WorkspaceName]'
My guess is that the process times out when these warnings get over a certain 
size.

Original issue reported on code.google.com by cel...@gmail.com on 14 Nov 2011 at 7:16

GoogleCodeExporter commented 9 years ago
This was also happening in version 1.3.1.

Might be fixed by the change in r130.

Original comment by cel...@gmail.com on 14 Nov 2011 at 7:29

GoogleCodeExporter commented 9 years ago
Yeah, sorry about that. I realized that if the perforce command has too much 
output then the output handling from before r130 will always hang in a 
deadlock. Which reminds me, I should make a new version with this code.

Original comment by jim.tila...@gmail.com on 14 Nov 2011 at 7:49