Workspaces not showing in Pending Changes view
I just upgraded to RTC v2.0.02 iFix2 last week and I have noticed something interesting regarding the "Pending Changes" view in the RTC Eclipse client.
Before the update, whenever I opened RTC (v2.0.0.2 and earlier), the 9 workspaces that are in "My Repository Workspaces" would show up in the "Pending Changes" view of the Eclipse client. After the update, 2 of them (out of 9) show up in the "Pending Changes" view. Even after I click on the "Refresh" button and using the tiny Down Arrow next to it to select "Refresh Sandboxes and Remote Changes", the other workspaces don't show up in the "Pending Changes" view. To get the other workspaces to show up there, I have to run a "Load" action on each of them. This brings the other workspaces into the "Pending Changes" view and as expected, if there are "Incoming Changes", they are shown there. If I do not "load" these other workspaces, I would not know that there are "Incoming Changes" for them. Is this something new for RTC? Thanks, -Walter |
15 answers
Tm, in Visual Studio there's no concept of workspaces like in Eclipse. A sandbox is connected to only when you load a solution within it. I verified the behavior in my own environment and it is as JM describes, that is, the solution needed to be loaded first. I guess I've always loaded the solution first before I looked at the load status of the components. I will pass this on to the customer. thanks |
Tm, in Visual Studio there's no concept of workspaces like in Eclipse. A sandbox is connected to only when you load a solution within it.
Please log a work item if Jean-Michel's suggestion doesn't work. |
Tim, do you have a work item filled? This shouldn't be happening, but just to be sure, you have to open the solution after restarting VS since VS doesn't open it automatically. The solution has the source control bindings and is used to decide which workspaces to show.
|
Customer is using RTC VS client 2.0.0.2 ifix 3. Create a repo workspace, load the components. Close VS 2008. Open VS 2008. Workspace does not show as loaded any more. The file contents are still on the file system. We have to reload the workspace every time. This shouldnt be happening.
|
Hi Geoff and Rupa,
This issue is seen in both clients. The users who are seeing this and mentioning it to me now are using the Eclipse client. However, the issue appears to be this (I apologize for the lengthy post. I have documented as much as possible here to show you what I did): If you have your sandbox for your workspaces set up as C:\Workspaces and you change it to C:\RTC, the metadata for the new sandbox is still captured under C:Workspaces (if the folder named C:Workspaces still exists). There is a way to change this using RTC. Here is the use case: 1. Users on a team here were creating workspaces for several months under C:\RTC2.0. Most of the team was using RTC Eclipse client just fine this way. Others had C:\RTC for the workspaces path. 2. There is now a need to "Standardize" how the workspaces are setup. So they asked me about it. I said "No problem, just pick something like C:\RTC and create new workspaces under that new workspace path. It should be simple enough." So, based on that, the new standard for workspace paths was going to be "C:\RTC". 3. Most users were just going to "switch" their sandboxes from C:\RTC2.0 to C:\RTC. A couple of them were just setting up RTC for the first time and would be using C:\RTC from the start for their sandbox. 4. The users who "switched" to C:\RTC removed their existing workspaces under C:\RTC2.0 using the Unload action in RTC. Then they shut down their RTC Eclipse client. When they reopened it, they were brought to the RTC Welcome screen. This was expected (or rather "not unexpected") and I had the users log into RTC using the correct Connection URL and their RTC logins. 5. The users were able to create new workspaces under the new sandbox (C:\RTC) and continue working. 6. One of the users noticed that even though he had removed C:\RTC2.0 on his PC that it reappeared again after restarting the RTC Eclipse client. We both looked at it and noticed that there was a folder named .metadata under it. We figured that this was just some latency information that was cached and that it would eventually go away. So, the user left it there. It was not hurting anything by leaving it there. This also happened t the other users who switched from C:\RTC2.0 to C:\RTC. They also had no problem leaving the old C:\RTC2.0 folder on their PCs. After discussing this post with Geoff I realized that the old .metadata folder is not going to go away. At least not without taking one more step. 1. In the Eclipse client, from the top menu bar select File->Switch Workspace. 2. From the drop down menu, from the list of workspace paths displayed (C:\RTC2.0 was in this list), select Other... 3. In the dialog labeled Workspace Launcher, either enter in the new Workspace folder name or Browse to it (i.e., if C:\RTC already existed). 4. In our case, users entered C:\RTC. This created a new folder named .metadata under C:\RTC. All workspaces under C:\RTC are now seen in the Pending Changes view, whether or not Incoming/Outgoing Changes are detected. OK that was actually 4 steps. But, the end result was what our users here expect and this makes them happy. This is just an observation on my part: Perhaps in a future release, RTC will automatically add a .metadata folder under a new workspace path. That is, when I switch from C:\RTC2.0 to C:\RTC and create new workspaces under C:\RTC a new .metadata folder will be created there without having to manually run the Workspace Launcher. I believe that the information entered in that dialog is cached and used by RTC. This is not a bad thing. I think it would be nice to be able to switch the location "on the fly". One other thing: In the Eclipse Client, when I select Window-->Preferences->expand Team->expand Jazz Source Control and then select "Sandboxes", all of the ones on my PC do show up in the window labeled "Configure which folders are known and tracked by the Pending Changes view". When I originally reported this issue only 2 of the workspaces under one of the workspace paths (C:\RTC2.0) were displayed in the Pending Changes view. Based on what I was seeing when I originally reported this issue, I am not sure that this is working. As I mentioned before, we also have several workspaces set up as "Do not load anything. The workspace will be tracked by the Pending Changes view" on our workstation that we do builds on. I just went on there and for several of the workspaces that I knew had Incoming Changes, I had to run the load action on them (using the Eclipse Client). To me, this is not a big issue. If there was a build request for builds using those workspaces, the build action would force "Accept Pending Changes" during the build. Most users of RTC here do not set up their workspaces with "Do not load anything. The workspace will be tracked by the Pending Changes view". So, this is also just an observation. So, I now understand what is happening in this case and I now know how to resolve this type of issue. I will look into the Work Item that Rupa entered. Thanks for the responses and the help. It really is appreciated. -Walter Hi Rupa, Hi Walter, |
Geoffrey Clemm (30.1k●3●30●35)
| answered May 10 '10, 8:09 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi Rupa,
In Walter's original message in this thread, he indicated he was using the Eclipse client (all of my comments above were about the Eclipse client). Walter: Are your teammates also using the Eclipse client, or are they using the VS client? (If the latter, Rupa's message probably explains what they are seeing). Cheers, Geoff sreerupa wrote: Hi Walter, |
Hi Walter,
If you do not load a workspace and just track it, the VS Client does not save that information across sessions. From the forum discussion, it looks like your workspace issues started after you migrated to 2.0.0.2 iFix2 - which surprises me somewhat. Earlier, the scm daemon used to maintain this information. Now it does not any more, so this information needs to be maintained on the client side preferences - something we haven't implemented yet. I'm trying to remember when this change happened - it was definitely earlier than 2.0.0.2 iFix 2 I'd think. If this is big pain point, we could try to get it in 2.0.0.2 iFix 3 - it'll be somewhat tight though. If not, we'll definitely address it in 3.0. I've opened https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/114291 to track this - please add your comments there. regards --Rupa |
Hi Geoff,
Something that you mentioned about metadata has clicked and I am going to try something out. I am looking into it now and it looks like we also changed the sandbox location for the workspaces at around the same time (i.e., from C:\RTC2.0 to C:\RTC). So the old .metadata folder will still be around (under C:\RTC2.0). I'll let you know what I find on Monday. But, I think that this is the path to go down and see if fixing it resolves this issue. Thanks, -Walter The list of workspaces appearing in the Pending Changes view of an Hi Geoff, |
Geoffrey Clemm (30.1k●3●30●35)
| answered May 07 '10, 11:01 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The list of workspaces appearing in the Pending Changes view of an
Eclipse workspace should be restored when you restart that Eclipse workspace (except for exceptional cases such as were mentioned below, e.g., immediately after a client upgrade, or if the previous shutdown was interrupted). So if you are not seeing that behavior, that would be a bug and should be reported. Just to emphasize one point, if there is a workspace that does not appear in your pending changes list, the *only* way to get it added in is to use the "load" operation (and select the "do not load anything ... track in pending changes view only" option, unless you also want files to be downloaded to your local file area). So clicking on "Refresh Sandboxes and Remote Changes" will never affect whether a workspace appears in the Pending changes view (it just affects workspaces that are already being tracked in the Pending changes view). Cheers, Geoff wmansur wrote: Hi Geoff, |
Hi Geoff,
I hear what you are saying. All I did was upgrade RTC from v2.0.0.2 to v2.0.0.2 iFix2. Currently only a few people are using the upgraded version, myself and one or 2 other RTC users. I know that they only have one or two workspaces. They have not mentioned this behavior (maybe because I haven't asked them about it). I do have 2 places that I can test this out on - my laptop and a regular Dell Workstation. So, let me tell you what happened this morning when I logged in on my laptop for the day. 1. I launched RTC and only 2 of my workspaces were displayed in the Pending Changes view. Remember, I did a load action on all 9 of my workspaces yesterday. 2. I clicked on "Refresh Sandboxes and Remote Changes" in the Pending Changes view and still only 2 workspaces were displayed there. These 2 workspaces did not have any Incoming Changes for them. (This is probably related to what Geoff says below). Here is where I am at. I don't mind "loading" workspaces from time to time (or even all the time). But that's just me. The RTC users here are very reluctant to change anything. We recently upgraded to RTC v2.0.0.2 and I have them all on that version and they are happy with it. That effort alone was like pulling teeth from a wounded rhinoceros. Now, we have an "iFix" that I am seeing a small issue with. Before I ask the rest of the RTC user community here to upgrade to the iFix, I thought that I would ask out on the forum if this is being seen by any one else. I'm still trying to sell RTC itself to a lot of people who used to use SourceSafe. Right now, these users do not have to "load" their workspaces in order to see workspaces that have Incoming Changes. So, I appreciate all the answers I have received and if it is OK with everyone, I will open up a Work Item so that we can track this and have a place to put up some logs to look at. Thanks, - Walter Note that whether a particular workspace appears in the Pending Changes Hi Tim, |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.