473,594 Members | 2,823 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Enormous bug with .NET IDE and Clearcase!

I have just found a very serious bug in the way Visual Studio
interfaces with Clearcase...

I found that once you have opened a code file in the IDE, the IDE
caches this file and does not re-read it's contents EVEN IF YOU
CHECKOUT THE FILE FROM CLEARCASE. This means that all of the work that
was carried out on the file in any subsequent checkins will be lost.

The only way round this seems to be to remember to close all the code
panes for any files you are going to checkout before you checkout the
file out. But you obviously don't get this luxury with project files
(I have to actually close the IDE before checking out project files!).

This problem seems to be unique to clearcase because if you open the
code file using notepad and save a change, the IDE prompts you to
reload the file.

I have played around with the Source Code settings but had not luck,
so if anyone has an ideas I would greatly appreciate it...

cheers
andrew

If it helps I am working with a local dynamic view
Nov 16 '05 #1
10 2916
I never had that problem and I use CC too. Are you sure that the file
changed? The IDE will only reload the file if it detects that it is
different.

"Andrew Baker" <we*******@vbus ers.com> wrote in message
news:c1******** *************** ***@posting.goo gle.com...
I have just found a very serious bug in the way Visual Studio
interfaces with Clearcase...

I found that once you have opened a code file in the IDE, the IDE
caches this file and does not re-read it's contents EVEN IF YOU
CHECKOUT THE FILE FROM CLEARCASE. This means that all of the work that
was carried out on the file in any subsequent checkins will be lost.

The only way round this seems to be to remember to close all the code
panes for any files you are going to checkout before you checkout the
file out. But you obviously don't get this luxury with project files
(I have to actually close the IDE before checking out project files!).

This problem seems to be unique to clearcase because if you open the
code file using notepad and save a change, the IDE prompts you to
reload the file.

I have played around with the Source Code settings but had not luck,
so if anyone has an ideas I would greatly appreciate it...

cheers
andrew

If it helps I am working with a local dynamic view

Nov 16 '05 #2
I don't know what 'ClearCase' is but if you've installed some quaky version control system, or worse, some dodgy code-formatting program at your office, then I think you're being highly arrogant to blame it on VS.NET when they don't work together.

"Andrew Baker" wrote:
I have just found a very serious bug in the way Visual Studio
interfaces with Clearcase...

I found that once you have opened a code file in the IDE, the IDE
caches this file and does not re-read it's contents EVEN IF YOU
CHECKOUT THE FILE FROM CLEARCASE. This means that all of the work that
was carried out on the file in any subsequent checkins will be lost.

The only way round this seems to be to remember to close all the code
panes for any files you are going to checkout before you checkout the
file out. But you obviously don't get this luxury with project files
(I have to actually close the IDE before checking out project files!).

This problem seems to be unique to clearcase because if you open the
code file using notepad and save a change, the IDE prompts you to
reload the file.

I have played around with the Source Code settings but had not luck,
so if anyone has an ideas I would greatly appreciate it...

cheers
andrew

If it helps I am working with a local dynamic view

Nov 16 '05 #3
Beeeeeeeeeeeeve s wrote:
I don't know what 'ClearCase' is but if you've installed some quaky version
control system, or worse, some dodgy code-formatting program at your
office, then I think you're being highly arrogant to blame it on VS.NET
when they don't work together.
Clearcase is a very expensive, robust, very powerful, high profile
sourcecontrol system meant for large teams and enterprises.

It can however be the way sourcecontrol itnegration is done in VS.NET, as
the adapter for this in vs.net 2003 is not that powerful.

It might be that it's a clearcase issue, I'm not sure if the TS has already
contacted clearcase on this?

FB

"Andrew Baker" wrote:
I have just found a very serious bug in the way Visual Studio
interfaces with Clearcase...

I found that once you have opened a code file in the IDE, the IDE
caches this file and does not re-read it's contents EVEN IF YOU
CHECKOUT THE FILE FROM CLEARCASE. This means that all of the work that
was carried out on the file in any subsequent checkins will be lost.

The only way round this seems to be to remember to close all the code
panes for any files you are going to checkout before you checkout the
file out. But you obviously don't get this luxury with project files
(I have to actually close the IDE before checking out project files!).

This problem seems to be unique to clearcase because if you open the
code file using notepad and save a change, the IDE prompts you to
reload the file.

I have played around with the Source Code settings but had not luck,
so if anyone has an ideas I would greatly appreciate it...

--
Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com
My .NET Blog: http://weblogs.asp.net/fbouma
Microsoft C# MVP
Nov 16 '05 #4
1) The poster wasn't blaming the bug on VS.NET
2) This tone is SURE to get you LOTS of help next time you post a problem.
NOT.
I don't know what 'ClearCase' is but if you've installed some quaky

version control system, or worse, some dodgy code-formatting program at your
office, then I think you're being highly arrogant to blame it on VS.NET when
they don't work together.

Nov 16 '05 #5
Thanks for your reply David,

If it helps this is how to replicate the problem:

1. Open the same project on two different PCs (using a Local Dynamic
View).
2. Open one of the class files (eg class1.cs) in the code window on
both machines.
3. On machine one check out this file, then make a change and check
the file back in.
4. On machine two check out the same file and you will notice that you
can't see any of the changes made by machine one. If you now alter
this file and check the file back in all the changes made by machine
one will now be lost!!! If however, you just close the code window and
reopen it you will magically see the changes made by machine one.

Sure you could try to remember to close and reopen any code windows
after doing a check out, however this is not great. What makes it
worse is that you actually need to close the IDE if you want to check
out a csproj file otherwise you will lose any changes made to this
(since you can't refresh this by opening and closing a window). The
really bizarre thing is that if you make a change to the files using
notepad the IDE definately detects this and prompts you to refresh the
file, so the problem lies somewhere between the way the IDE detects
changes and the way clearcase checks out files.

I did try working with a Remote Dynamic view, however I had just as
many issues with this (many to do with file locking).
would get grateful for any suggestions,

regards
andrew
"David Levine" <no************ ****@wi.rr.com> wrote in message news:<uF******* *******@TK2MSFT NGP11.phx.gbl>. ..
I never had that problem and I use CC too. Are you sure that the file
changed? The IDE will only reload the file if it detects that it is
different.

"Andrew Baker" <we*******@vbus ers.com> wrote in message
news:c1******** *************** ***@posting.goo gle.com...
I have just found a very serious bug in the way Visual Studio
interfaces with Clearcase...

I found that once you have opened a code file in the IDE, the IDE
caches this file and does not re-read it's contents EVEN IF YOU
CHECKOUT THE FILE FROM CLEARCASE. This means that all of the work that
was carried out on the file in any subsequent checkins will be lost.

The only way round this seems to be to remember to close all the code
panes for any files you are going to checkout before you checkout the
file out. But you obviously don't get this luxury with project files
(I have to actually close the IDE before checking out project files!).

This problem seems to be unique to clearcase because if you open the
code file using notepad and save a change, the IDE prompts you to
reload the file.

I have played around with the Source Code settings but had not luck,
so if anyone has an ideas I would greatly appreciate it...

cheers
andrew

If it helps I am working with a local dynamic view

Nov 16 '05 #6
If you don't know then don't feel that we absolutely must hear from you!!!!

andrew

PS. Read the post again am not "blaming" anyone

"Beeeeeeeeeeeev es" <Be************ **@discussions. microsoft.com> wrote in message news:<66******* *************** ************@mi crosoft.com>...
I don't know what 'ClearCase' is but if you've installed some quaky version control system, or worse, some dodgy code-formatting program at your office, then I think you're being highly arrogant to blame it on VS.NET when they don't work together.

"Andrew Baker" wrote:
I have just found a very serious bug in the way Visual Studio
interfaces with Clearcase...

I found that once you have opened a code file in the IDE, the IDE
caches this file and does not re-read it's contents EVEN IF YOU
CHECKOUT THE FILE FROM CLEARCASE. This means that all of the work that
was carried out on the file in any subsequent checkins will be lost.

The only way round this seems to be to remember to close all the code
panes for any files you are going to checkout before you checkout the
file out. But you obviously don't get this luxury with project files
(I have to actually close the IDE before checking out project files!).

This problem seems to be unique to clearcase because if you open the
code file using notepad and save a change, the IDE prompts you to
reload the file.

I have played around with the Source Code settings but had not luck,
so if anyone has an ideas I would greatly appreciate it...

cheers
andrew

If it helps I am working with a local dynamic view

Nov 16 '05 #7
I don't use dynamic views...we all use snapshots on our local drives. When
we update the snapshot and files change the IDE detects the change. The
files for a dynamic view are located on a share on a network drive; perhaps
the IDE is unable to detect the change because the network drive does not
support automatic notifications when the file(s) has changed.

"Andrew Baker" <we*******@vbus ers.com> wrote in message
news:c1******** *************** ***@posting.goo gle.com...
Thanks for your reply David,

If it helps this is how to replicate the problem:

1. Open the same project on two different PCs (using a Local Dynamic
View).
2. Open one of the class files (eg class1.cs) in the code window on
both machines.
3. On machine one check out this file, then make a change and check
the file back in.
4. On machine two check out the same file and you will notice that you
can't see any of the changes made by machine one. If you now alter
this file and check the file back in all the changes made by machine
one will now be lost!!! If however, you just close the code window and
reopen it you will magically see the changes made by machine one.

Sure you could try to remember to close and reopen any code windows
after doing a check out, however this is not great. What makes it
worse is that you actually need to close the IDE if you want to check
out a csproj file otherwise you will lose any changes made to this
(since you can't refresh this by opening and closing a window). The
really bizarre thing is that if you make a change to the files using
notepad the IDE definately detects this and prompts you to refresh the
file, so the problem lies somewhere between the way the IDE detects
changes and the way clearcase checks out files.

I did try working with a Remote Dynamic view, however I had just as
many issues with this (many to do with file locking).
would get grateful for any suggestions,

regards
andrew
"David Levine" <no************ ****@wi.rr.com> wrote in message

news:<uF******* *******@TK2MSFT NGP11.phx.gbl>. ..
I never had that problem and I use CC too. Are you sure that the file
changed? The IDE will only reload the file if it detects that it is
different.

"Andrew Baker" <we*******@vbus ers.com> wrote in message
news:c1******** *************** ***@posting.goo gle.com...
I have just found a very serious bug in the way Visual Studio
interfaces with Clearcase...

I found that once you have opened a code file in the IDE, the IDE
caches this file and does not re-read it's contents EVEN IF YOU
CHECKOUT THE FILE FROM CLEARCASE. This means that all of the work that
was carried out on the file in any subsequent checkins will be lost.

The only way round this seems to be to remember to close all the code
panes for any files you are going to checkout before you checkout the
file out. But you obviously don't get this luxury with project files
(I have to actually close the IDE before checking out project files!).

This problem seems to be unique to clearcase because if you open the
code file using notepad and save a change, the IDE prompts you to
reload the file.

I have played around with the Source Code settings but had not luck,
so if anyone has an ideas I would greatly appreciate it...

cheers
andrew

If it helps I am working with a local dynamic view

Nov 16 '05 #8
Have just had confirmation from Rational (the Clearcase bods) that
this is a bug with Dynamic views and there is currently no fix for
it!!!

:(

Thanks again for your help

andrew
"David Levine" <no************ ****@wi.rr.com> wrote in message news:<ec******* ******@TK2MSFTN GP11.phx.gbl>.. .
I don't use dynamic views...we all use snapshots on our local drives. When
we update the snapshot and files change the IDE detects the change. The
files for a dynamic view are located on a share on a network drive; perhaps
the IDE is unable to detect the change because the network drive does not
support automatic notifications when the file(s) has changed.

"Andrew Baker" <we*******@vbus ers.com> wrote in message
news:c1******** *************** ***@posting.goo gle.com...
Thanks for your reply David,

If it helps this is how to replicate the problem:

1. Open the same project on two different PCs (using a Local Dynamic
View).
2. Open one of the class files (eg class1.cs) in the code window on
both machines.
3. On machine one check out this file, then make a change and check
the file back in.
4. On machine two check out the same file and you will notice that you
can't see any of the changes made by machine one. If you now alter
this file and check the file back in all the changes made by machine
one will now be lost!!! If however, you just close the code window and
reopen it you will magically see the changes made by machine one.

Sure you could try to remember to close and reopen any code windows
after doing a check out, however this is not great. What makes it
worse is that you actually need to close the IDE if you want to check
out a csproj file otherwise you will lose any changes made to this
(since you can't refresh this by opening and closing a window). The
really bizarre thing is that if you make a change to the files using
notepad the IDE definately detects this and prompts you to refresh the
file, so the problem lies somewhere between the way the IDE detects
changes and the way clearcase checks out files.

I did try working with a Remote Dynamic view, however I had just as
many issues with this (many to do with file locking).
would get grateful for any suggestions,

regards
andrew
"David Levine" <no************ ****@wi.rr.com> wrote in message

news:<uF******* *******@TK2MSFT NGP11.phx.gbl>. ..
I never had that problem and I use CC too. Are you sure that the file
changed? The IDE will only reload the file if it detects that it is
different.

"Andrew Baker" <we*******@vbus ers.com> wrote in message
news:c1******** *************** ***@posting.goo gle.com...
> I have just found a very serious bug in the way Visual Studio
> interfaces with Clearcase...
>
> I found that once you have opened a code file in the IDE, the IDE
> caches this file and does not re-read it's contents EVEN IF YOU
> CHECKOUT THE FILE FROM CLEARCASE. This means that all of the work that
> was carried out on the file in any subsequent checkins will be lost.
>
> The only way round this seems to be to remember to close all the code
> panes for any files you are going to checkout before you checkout the
> file out. But you obviously don't get this luxury with project files
> (I have to actually close the IDE before checking out project files!).
>
> This problem seems to be unique to clearcase because if you open the
> code file using notepad and save a change, the IDE prompts you to
> reload the file.
>
> I have played around with the Source Code settings but had not luck,
> so if anyone has an ideas I would greatly appreciate it...
>
> cheers
> andrew
>
> If it helps I am working with a local dynamic view

Nov 16 '05 #9
Have just had confirmation from Rational (the Clearcase bods) that
this is a bug with Dynamic views and there is currently no fix for
it!!!

:(

Thanks again for your help

andrew

"David Levine" <no************ ****@wi.rr.com> wrote in message news:<ec******* ******@TK2MSFTN GP11.phx.gbl>.. .
I don't use dynamic views...we all use snapshots on our local drives. When
we update the snapshot and files change the IDE detects the change. The
files for a dynamic view are located on a share on a network drive; perhaps
the IDE is unable to detect the change because the network drive does not
support automatic notifications when the file(s) has changed.

"Andrew Baker" <we*******@vbus ers.com> wrote in message
news:c1******** *************** ***@posting.goo gle.com...
Thanks for your reply David,

If it helps this is how to replicate the problem:

1. Open the same project on two different PCs (using a Local Dynamic
View).
2. Open one of the class files (eg class1.cs) in the code window on
both machines.
3. On machine one check out this file, then make a change and check
the file back in.
4. On machine two check out the same file and you will notice that you
can't see any of the changes made by machine one. If you now alter
this file and check the file back in all the changes made by machine
one will now be lost!!! If however, you just close the code window and
reopen it you will magically see the changes made by machine one.

Sure you could try to remember to close and reopen any code windows
after doing a check out, however this is not great. What makes it
worse is that you actually need to close the IDE if you want to check
out a csproj file otherwise you will lose any changes made to this
(since you can't refresh this by opening and closing a window). The
really bizarre thing is that if you make a change to the files using
notepad the IDE definately detects this and prompts you to refresh the
file, so the problem lies somewhere between the way the IDE detects
changes and the way clearcase checks out files.

I did try working with a Remote Dynamic view, however I had just as
many issues with this (many to do with file locking).
would get grateful for any suggestions,

regards
andrew
"David Levine" <no************ ****@wi.rr.com> wrote in message

news:<uF******* *******@TK2MSFT NGP11.phx.gbl>. ..
I never had that problem and I use CC too. Are you sure that the file
changed? The IDE will only reload the file if it detects that it is
different.

"Andrew Baker" <we*******@vbus ers.com> wrote in message
news:c1******** *************** ***@posting.goo gle.com...
> I have just found a very serious bug in the way Visual Studio
> interfaces with Clearcase...
>
> I found that once you have opened a code file in the IDE, the IDE
> caches this file and does not re-read it's contents EVEN IF YOU
> CHECKOUT THE FILE FROM CLEARCASE. This means that all of the work that
> was carried out on the file in any subsequent checkins will be lost.
>
> The only way round this seems to be to remember to close all the code
> panes for any files you are going to checkout before you checkout the
> file out. But you obviously don't get this luxury with project files
> (I have to actually close the IDE before checking out project files!).
>
> This problem seems to be unique to clearcase because if you open the
> code file using notepad and save a change, the IDE prompts you to
> reload the file.
>
> I have played around with the Source Code settings but had not luck,
> so if anyone has an ideas I would greatly appreciate it...
>
> cheers
> andrew
>
> If it helps I am working with a local dynamic view

Nov 16 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4315
by: Tony George | last post by:
Hi, I'm having a problem using the Copy module on a ClearCase view that's been set as "readonly" (i.e. ct chview -readonly <view tag>). I want to copy a file out of this view and put it in another directory that's outside of ClearCase. The strange thing is that the copy command actually copies correctly. The problem is that it returns a "0" errorcode because of the fact that the view is readonly. I guess "copy" still tries to write...
0
499
by: Rachel Michelson | last post by:
Hello, I have a C++ project that is built using Visual Studio .NET. The source code is configuration-managed in Clearcase so that I build out of a Snapshot view on my Windows XP PC. I am able to check files in/out from the Visual Studio. When building my project, I would like to generate a build log that contains clearcase version-extended pathnames to the source files , as in file.c@@/main/3. This way I know exactly what version of...
3
2159
by: Robb Gilmore | last post by:
Hi, I use VSS for visual studio .net 2003 development. However I recently installed the Clearcase client for use with Rational App Developer 6. When I did that, Clearcase unexp;ectledly took over all source control operations within VS.NET. How do I tell VS.NET not to use Clearcase, but to go back to using VSS instead? thanks Robb
3
2861
by: Stefan Slapeta | last post by:
Has anybody already made experiences with clearcase under VS 7.1? It's not possible to convert any VS 6.0 project that has been under source control. If you do so, you get an "Unknown error" with almost every further action you do in VS! Furthermore, I get a linker error with these "semi converted" projects: cannot find libmmt.lib. Thanks for your help Stefan
2
1292
by: Ed Dennison | last post by:
I'm trying to use Clearcase to manage source for an ASP.NET application. I believe that I have configured IIS properly and set up my VS.NET solution and project files, but my pages do not work. Specifically, when I try to load the page from a browser (or debugging in VS.NET), I get this error page: Parser Error Message: Could not load type 'srdm.Global'. Source Error:
4
4632
by: rohinichandrap | last post by:
Hi , I have quite a few questions about Visual Studio :Net 2003 and clear case Could anyone please help me with the answers. I have converted a workspace abc.dsw from visual studio 6 to visual studio .Net 2003 which has three projects a.dsp,b.dsp,c.dsp.
6
3030
by: Budyanto | last post by:
Hi, I have a visual c++ project that refuses to build when the project is in clearcase. It kept complaining that it could not open an include file. I'm pretty sure that all my include paths are set correctly because other files in the same directory could be included successfully. In fact I did not include this file directly. It was included from a file I included. But I also tried including it directly and it could not be opened also.
1
1387
by: Cindy Liu | last post by:
Hi, I have a weired problem recently. I uses Windows 2003 Server and ClearCase as source control. When I checked out a file from ClearCase, VS 2003 still see it as ReadOnly. When trying to save the modified file, I got "Access is denied" error. I don't have this problem with VS 6.0 on the same machine. Anyone has an idea> Thanks in advance!!! Cindy
1
1985
by: Homer | last post by:
Hi All, In my work place we are still using VS6.00 with C++ and are not allowed to use a newer version (to connect to source control). We also use ClearCase as source control software. What I did was to install VS 2008 Beta 1 on my machine and made a copy of my source directory to use VS2008 with it. I want to use VS2008 only as my editor and don't want to check-in/check-out with it (since my company doesn't like it). When I open my...
0
7946
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7877
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8374
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8009
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6661
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5411
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3867
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1482
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1216
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.