473,387 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Old IDE behavior -- classes/modules coming back to life??

I think I've found what appears to be a pretty significant bug in VS.NET
2003.

I deleted a module from my Project, and got the message "mymodule.vb will be
deleted permanently" -- hit Ok. Bring up explorer to verify the file is
physically removed -- yes, file is gone. So now I "add existing module..."
and point to mymodule.vb that is located in a different directory (the
mymodule.vb has the same name as my old module but contains different source
code). So, I know open up mymodule.vb and what I get is the OLD module that
was "permanently" deleted ?? AND, somehow the mymodule.vb is now residing
in my Project dir?

This is really bizarre behavior -- anyone else notice this?

What I typically do is work on a project, and then decide some
classes/modules should be moved to a "shared" directory. So I typically
copy the .vb to my shared directory (via Explorer) and then delete the .vb
from my project and re-add it by pointing to the knew shared location.

Note: I have VSS but I currently do not have any projects added to VSS, so
this is NOT VSS issue.

Rob.
Nov 21 '05 #1
3 870
"Rob R. Ainscough" <ro*****@pacbell.net> schrieb:
So, I know open up mymodule.vb and what I get is the OLD module that was
"permanently" deleted ?? AND, somehow the mymodule.vb is now residing in
my Project dir?


Did you try to change the dropdown button "Open" to "Reference file" in the
"Add existing item" file selection dialog?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #2
The Open dropdown button has three options:
1. Open
2. Open With
3. Link

these options are only available when I select *.* -- I'll experiment with
Link
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ej**************@TK2MSFTNGP12.phx.gbl...
"Rob R. Ainscough" <ro*****@pacbell.net> schrieb:
So, I know open up mymodule.vb and what I get is the OLD module that was
"permanently" deleted ?? AND, somehow the mymodule.vb is now residing in
my Project dir?


Did you try to change the dropdown button "Open" to "Reference file" in
the "Add existing item" file selection dialog?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #3
Selecting "Link" from the "Open" dropdown button seemed to have resolved the
problem.

But it is still pretty mind boggling to me that I can delete a file via
explorer (empty my recycle bin) and VS.NET 2003 will restore it -- the
implications are interesting. So .NET must be decompiling back to source
using the debug info and regenerating the file or something?

"Rob R. Ainscough" <ro*****@pacbell.net> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
The Open dropdown button has three options:
1. Open
2. Open With
3. Link

these options are only available when I select *.* -- I'll experiment
with Link
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ej**************@TK2MSFTNGP12.phx.gbl...
"Rob R. Ainscough" <ro*****@pacbell.net> schrieb:
So, I know open up mymodule.vb and what I get is the OLD module that was
"permanently" deleted ?? AND, somehow the mymodule.vb is now residing
in my Project dir?


Did you try to change the dropdown button "Open" to "Reference file" in
the "Add existing item" file selection dialog?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


Nov 21 '05 #4

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

Similar topics

1
by: John Abel | last post by:
A while back, I saw a thread asking if the standard lib modules would be modified to use the new logging module, and it got me thinking. As the new-style classes will be default for 2.4, will the...
23
by: Simon Wittber | last post by:
For the first time, I have been bitten by Python. The below code produces the results: False True when I initially expected the results: False False It took me a while to work out that...
0
by: paolo_veronelli | last post by:
Hello pyple, I have two modules :remote.py and local.py which have some classes with the same names specifically one we can call Model.So it exist remote.Model class and local.Model class A...
132
by: Kevin Spencer | last post by:
About 2 years ago, and as recently as perhaps 1 year ago, I can recall seeing many posts about what language to use with ASP.Net. The consensus was that employers paid more for C# programmers, and...
112
by: Tom | last post by:
This is very strange: I have a Windows Form with a Panel on it. In that panel I dynamically (at run time) create some labels, as so: for i=1 to x dim ctlNew as New Label() with ctlNew...
5
by: Erik Cruz | last post by:
Hello! I have read some threads discussing the fact that a module is in reality a shared class. If I try to create a Public Shared Class in vb.net I receive a compile error. Why? If I can't...
6
by: cmdrrickhunter | last post by:
I'm getting rather inconsistent behavior with staticmethod. @staticmethod has the same problems, but I'm demonstrating it with staticmethod() because it shows things more clearly...
173
by: Zytan | last post by:
I've read the docs on this, but one thing was left unclear. It seems as though a Module does not have to be fully qualified. Is this the case? I have source that apparently shows this. Are...
12
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.