VS Code can’t connect with ftp-simple

I’ve been battling ftp-simple for hours now and I was hoping somebody might have a solution.

I have a fresh install of VS Code
I created a folder for my projects called Projects
I have a project in that folder call it Website App
In Website App I created the .vscode folder
In the .vscode folder I created the ftp-simple.json:

{
    "remote-workspace": [
    {
        "name": "Website App",   
        "host": "giowm1136.siteground.biz",   
        "port": 21,   
        "type": "ftp",   
        "username": "[email protected]",   
        "password": "***",   
        "path": "/public_html/wp-content/themes/astra-child",   
        "autosave": true,
        "encoding": "utf8",
        "protocol": "ftp",
        "passive": true   
       }
    ]
}

Everything should be ready to go here. I have logged in with these credentials in FileZilla, so I know they work.

The problem is when I try and go to ftp-simple: FTP Config Settings I get a pop up error that says: Command ‘ftp-simple: Config – FTP connection setting’ resulting in an error. Cannot read properties of undefined (reading ‘0’)

The Output window when I select ftp-simple from the dropdown says this:
[2024-09-10 13:34:25] REMOTE_WORKSPACE_PATH = c:/Users/***/AppData/Roaming/Code/User/globalStorage/humy2833.ftp-simple/remote-workspace-temp

I don’t know if this is a VS Code issue or ftp-simple issue, but I’m pretty much out of ideas and I don’t think ftp-simple has any support, seeing as it hasn’t been updated in years.

I just want to have a connection to my wordpress files (functions.php and the ones I’ve created) so I can update them in real time in VS Code.

7

I had the same problem today, I was able to solve it by creating an empty ftp-simple.json file in the ~/.config/Code/User/ directory (this is using Linux, I guess Windows has the same style configuration folders), this generated the humy2833.ftp-simple folder with the sample files automatically inside globalStorage. I had to close and open the VSCode after creating the file for it to take effect. After that I did control+p to access the menu and accessed the option “ftp-simple: Config – FTP connection string” and the error stopped appearing when I wanted to create the configuration file.

I hope you find it useful

UPDATE: this only let open the configuration file with the VSCode without the error, but when is saved the content of the file is wiped out, i’m trying to figure out how to solve this, if i have any advance i will update again

Looks like I was able to solve it by installing an older version of VS Code (ver 1.92.2). Here is the page where it provides more details and the link to the older version of vs code github.com/humy2833/FTP-Simple/issues/322

Really hope this gets more upvotes and others can find it because I wasted so much time trying to fix it.

The only fix I found was downgrading vscode to previous version, specifically this one:

https://vscode.download.prss.microsoft.com/dbazure/download/stable/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/VSCodeUserSetup-x64-1.92.2.exe

And this is the most recent github thread on it: github.com/humy2833/FTP-Simple/issues/322

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật