Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Target Management » Treats two different files as the same(problem with RSE treating two different files as the same)
Treats two different files as the same [message #852493] Sun, 22 April 2012 03:32 Go to next message
N A is currently offline N AFriend
Messages: 2
Registered: April 2012
Junior Member
Hi,

I have two remote server setups. They both connect to the same server, but are created with different usernames. The path structure of both user's filesystems looks identical; one login is for a dev environment and the other login is for a prod environment.

The problem I have is that if I open the a file under one user's filesystem, then open it's equivalent under the other user's filesystem, Eclipse/RSE thinks it's the same file and only show me one window with a * to indicate that the contents are different.

For example:

- login to example.com with username user1, open file /home/myfiles/foo.txt

This opens fine. While this file is still open:

- login to example.com with username user2, open file /home/myfiles/foo.txt

This is a different file than before, since the filesystem seen on this server differ for each user. But trying to open this foo.txt causes it to open in the same window as the other foo.txt, and a * appears near the filename as if I had made changes to it.

Any ideas on what I can do to fix this?

thanks very much for any suggestions,

Re: Treats two different files as the same [message #856098 is a reply to message #852493] Wed, 25 April 2012 11:17 Go to previous messageGo to next message
David McKnight is currently offline David McKnightFriend
Messages: 244
Registered: July 2009
Senior Member
Hi,

Right RSE uses the same temp file location for the same file on the same
host regardless of which connection gets used. One way you might work
around this is by having one RSE connection use the hostname while the other
uses the IP address for it's hostname field. Another approach could be to
create each of these connections under different RSE profiles.

I hope that helps,
Dave

"N A" <forums-noreply@xxxxxxxx> wrote in message
news:jmvu3j$gf6$1@xxxxxxxxe.org...
> Hi,
>
> I have two remote server setups. They both connect to the same server,
> but are created with different usernames. The path structure of both
> user's filesystems looks identical; one login is for a dev environment and
> the other login is for a prod environment.
>
> The problem I have is that if I open the a file under one user's
> filesystem, then open it's equivalent under the other user's filesystem,
> Eclipse/RSE thinks it's the same file and only show me one window with a *
> to indicate that the contents are different.
>
> For example:
>
> - login to example.com with username user1, open file
> /home/myfiles/foo.txt
>
> This opens fine. While this file is still open:
>
> - login to example.com with username user2, open file
> /home/myfiles/foo.txt
>
> This is a different file than before, since the filesystem seen on this
> server differ for each user. But trying to open this foo.txt causes it to
> open in the same window as the other foo.txt, and a * appears near the
> filename as if I had made changes to it.
>
> Any ideas on what I can do to fix this?
> thanks very much for any suggestions,
>
>
Re: Treats two different files as the same [message #856205 is a reply to message #856098] Wed, 25 April 2012 13:18 Go to previous messageGo to next message
N A is currently offline N AFriend
Messages: 2
Registered: April 2012
Junior Member
Hi,

Thanks very much for the reply. I found that using the option Preferences-->Remove Systems --> Files--> uncheck "Share cached files between different connections to same host" did the trick.

I'll definitely keep your ideas on file, though; they may come in handy if I have to work on a different Eclipse installation that might not have that checkbox.

This was a very confusing problem, though, and it could have let to catastrophic mistakes.

thanks again for the help,

Re: Treats two different files as the same [message #856315 is a reply to message #856205] Wed, 25 April 2012 14:54 Go to previous message
David McKnight is currently offline David McKnightFriend
Messages: 244
Registered: July 2009
Senior Member
Hi,

I had forgotten about the preference for sharing cached files. Thanks for
reminding me of that!

Dave

"N A" <forums-noreply@xxxxxxxx> wrote in message
news:jn8tje$qt5$1@xxxxxxxxe.org...
> Hi,
>
> Thanks very much for the reply. I found that using the option
> Preferences-->Remove Systems --> Files--> uncheck "Share cached files
> between different connections to same host" did the trick.
>
> I'll definitely keep your ideas on file, though; they may come in handy if
> I have to work on a different Eclipse installation that might not have
> that checkbox.
>
> This was a very confusing problem, though, and it could have let to
> catastrophic mistakes.
> thanks again for the help,
>
>
Previous Topic:Cursor blinking in RSE terminals
Next Topic:Review/Synchronize - how to?
Goto Forum:
  


Current Time: Fri Dec 19 09:36:02 GMT 2014

Powered by FUDForum. Page generated in 0.02108 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software