Treats two different files as the same [message #852493] |
Sat, 21 April 2012 23:32  |
Eclipse User |
|
|
|
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 07:17   |
Eclipse User |
|
|
|
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 #856315 is a reply to message #856205] |
Wed, 25 April 2012 10:54  |
Eclipse User |
|
|
|
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,
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.06425 seconds