ftp-kr icon indicating copy to clipboard operation
ftp-kr copied to clipboard

Cannot edit in read-only editor

Open whittede opened this issue 2 years ago • 1 comments

Hello, I think I am stupid and just do not know how to use this Extension.

I successfully edited the settings in ftp-kr.json and successfully made a connection to the remote server I am trying to edit files on.

I opened the FTP-KR: EXPLORER to look at all of the files on the server, but if I double-click any of them to open them and then try to edit them, I am unable to type and just get a warning in VS Code that says "Cannot edit in read-only editor". I have tried right-clicking on files and clicking the "Download This" button, thinking that maybe I need to download a local copy of the files to edit before uploading the changes. However, whenever I click the "Download This" option on any file in the ftp-kr Explorer, it just gives me an error message that says "[file_name] is not in remotePath." image

I tried running the >ftp-kr: Download All command, but it just spits out a notice that says "Nothing to DO". image

How do I edit files located on the remote server and save those changes to the server?

whittede avatar Sep 16 '22 18:09 whittede

Does anyone have a solution for this or know what I'm doing wrong?

whittede avatar Oct 24 '22 20:10 whittede

Hello, I think I am stupid and just do not know how to use this Extension.

I successfully edited the settings in ftp-kr.json and successfully made a connection to the remote server I am trying to edit files on.

I opened the FTP-KR: EXPLORER to look at all of the files on the server, but if I double-click any of them to open them and then try to edit them, I am unable to type and just get a warning in VS Code that says "Cannot edit in read-only editor". I have tried right-clicking on files and clicking the "Download This" button, thinking that maybe I need to download a local copy of the files to edit before uploading the changes. However, whenever I click the "Download This" option on any file in the ftp-kr Explorer, it just gives me an error message that says "[file_name] is not in remotePath." image

I tried running the >ftp-kr: Download All command, but it just spits out a notice that says "Nothing to DO". image

How do I edit files located on the remote server and save those changes to the server?

Not a problem!

sorry i'm late haha 1st of All, u can edit only localy, then it will upload to the ftp server. u have to download it first, and only then edit it. Try deleting everything in our local environment(back it up first of course)

then use the download all. However, are u sure u can even access such files? can u upload/download? have u configured the right way?

if u using FTP, don't enable sFTP , leave it to false, even if u are under ssl/tls

that sFTP is a different thing, with that enabled didn't worked for me, different things.

akipfer avatar Nov 03 '22 17:11 akipfer

Hi @akipfer ! I want to give a sincere aplogy because I am almost positive that I wrote a response to your message on the day that it was posted, and I came here today to check on why it hadn't received any response and see that my reply is missing! I'm so sorry, I really don't know how that happened, I must not have clicked the submit button when I wrote my original reply.

1st of All, u can edit only localy, then it will upload to the ftp server. u have to download it first, and only then edit it. Try deleting everything in our local environment(back it up first of course)

Okay sounds good. I have done this.

then use the download all.

When I use the "Download All", it still says "Nothing to DO." image

However, are u sure u can even access such files? can u upload/download? have u configured the right way?

Yes, thank you for checking 👍 I have used two different FTP clients with the same credentials and uploading/downloading works for them. I have also tried this in a different code editor (Atom) using an FTP plugin with the same credentials and it works there as well.

if u using FTP, don't enable sFTP , leave it to false, even if u are under ssl/tls I am just using regular ftp on port 21. image

Do you have any other suggestions? :/ Because it still doesn't seem to work for me :(

whittede avatar Dec 03 '22 01:12 whittede

@karikera Could you please have a look at this thread, as well?

whittede avatar Dec 03 '22 01:12 whittede

@karikera Could you please have a look at this thread, as well?

Fixed some issues with the recent update. I hope it would be fixed.

karikera avatar Dec 04 '22 17:12 karikera

Hi @karikera ! I am grateful to hear from you! The "Download All" command seems to work now. Thank you for solving that issue!

However, what is the method for listing all files available from the remote location, but only downloading specific files?

In my case, I have a very large website and I want to list all of the files available on the website. But I only want to download and edit a few of them. How do I do this with ftp-kr?

whittede avatar Dec 04 '22 23:12 whittede

Hi @karikera ! I am grateful to hear from you! The "Download All" command seems to work now. Thank you for solving that issue!

However, what is the method for listing all files available from the remote location, but only downloading specific files?

In my case, I have a very large website and I want to list all of the files available on the website. But I only want to download and edit a few of them. How do I do this with ftp-kr?

I recommend using the "ignore" option for filtering files. or setting the "localPath" option for synchronizing the specific folder. ftp-kr supports the remote modification recently. but I don't recommend it.

karikera avatar Dec 09 '22 17:12 karikera

Gotcha. So there is no way to download and upload individual files, then, without downloading everything from the localPath.

In that case, thank you for your help! I will unfortunately have to find another plugin that allows me to download single remote files, but I really appreciate you responding and pushing the bugfix! Have an excellent day, karikera!

whittede avatar Dec 12 '22 21:12 whittede