Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening a remote file is blank #2

Closed
SimCoxuK opened this issue Jul 21, 2014 · 22 comments
Closed

Opening a remote file is blank #2

SimCoxuK opened this issue Jul 21, 2014 · 22 comments

Comments

@SimCoxuK
Copy link

When opening a remote file from the FTP it shows the contents of this file to be completely blank, to view the contents of this file, I need to view it in local view and then edit from there, would be great if we could open the downloaded local file when trying to open a file from the server.

@grenierdev
Copy link
Contributor

When opening a remote file, it should download it to local and then open the local file. Are you saying that it doesn't open it or that the local file is empty ?

grenierdev added a commit that referenced this issue Jul 22, 2014
@grenierdev
Copy link
Contributor

not fixed

@SimCoxuK
Copy link
Author

The local file isn't empty - when i browse to the downloaded local file and open it us - it works fine, but when i open the file from the remote connection - its blank - see attached screeen, pane on the left is from local, pane on the right is the same file but opened from the remote connection.

screen shot 2014-07-22 at 09 12 40

@SimCoxuK
Copy link
Author

Is there anything i can do to help you replicate this issue? want me to create a video etc? Let me know as I'd love to see this package flourish as it's a great addition to atom

Brendan

@grenierdev
Copy link
Contributor

Sorry I did not see that you had replied to the issue.

When downloading the file from remote, the package replace (or create) the local's content with the remote's. Then it call atom internal function to open file atom.workspace.open(...).

In your screenshot, can you verify that both file (panel) are leading to the same file? (you can do so by placing your cursor in each one and look at the status bar)

@SimCoxuK
Copy link
Author

Hi just took the screenshots (see below) it looks like the remote accessed file's path has a '/' before it's location therefore not resolving to its local location - as with the local access file that has a full location.

screen shot 2014-07-29 at 09 05 44
screen shot 2014-07-29 at 09 05 59

@SimCoxuK
Copy link
Author

Local file is on the right, remote on left, but yes they are both meant to be the same accesed file.

grenierdev added a commit that referenced this issue Jul 30, 2014
@grenierdev
Copy link
Contributor

Can you update to v0.2.4 and try again?

@grenierdev grenierdev self-assigned this Jul 30, 2014
@SimCoxuK
Copy link
Author

Updated but still getting the same issue.

@SimCoxuK
Copy link
Author

I might try repairing my disk permissions and see if that helps - although another colleague of mine in the office is using your package as well and is having the same issue. So i cant see it fixing (we are both running recent up to date installs of osx mavericks)

@grenierdev
Copy link
Contributor

I'm gonna convince a colleague, who use OSX, to install Atom and the package so I can debug the problem. Will keep you posted.

@jerometan1
Copy link

Had this installed on Mac and Windows, Mac still have this problem but perfectly fine on Windows.

@jerometan1
Copy link

Hope this gets fixed... really like this plug-in very much

@grenierdev
Copy link
Contributor

Could finaly test it out on a MAC. Seems like Atom open the file slightly before the download has finished. So a "blank" file is opened instead of the local computer.

@jerometan1
Copy link

Glad it will get fixed soon

@vincentducorps
Copy link

Same issue for me :)

OSX 10.10
Atom 0.139.0
Remote FTP 0.2.4

@jerometan1
Copy link

Still wishing this get fixed some day

@grenierdev
Copy link
Contributor

Got busy for the past months, didn't get much time to work on this plugin. I started an other branch "rewrite" and will be testing out soon on a Mac.

@jerometan1
Copy link

Great! Looking forward to it

@grenierdev
Copy link
Contributor

Fixed. Will commit the fix to the "rewrite" branch tonight (GMT -05). Will be releasing the official v0.3 in the next few days.

jpxd pushed a commit that referenced this issue Aug 15, 2016
@lenguyenitc
Copy link

Hello mgrenier, This is really great package. Have you solve this problem. I'm using the latest version of package but still same issue?

@oscarhogervorst
Copy link

oscarhogervorst commented May 19, 2019

Old issue, but it can still occur. And I found a fix. It turns out that if you use the "remote" setting in your config file it's important to both start and end with a "/" character. In my case not doing this resulted in local creating a folder named "l" that did not match the remote structure.
Using this value worked
"remote": "/public_html/",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants