LoginSignup
0
0

More than 3 years have passed since last update.

AtomパッケージのRemote FTPが接続できないときの対処法

Last updated at Posted at 2020-01-10

エラーが起こった環境

エディタ: Atom1.42.0
PC: macOS Catalina ver. 10.15.1

エラー発生の経緯

Atom導入済みのパッケージRemote FTPを使用。
vagrantで構築した仮想マシンCentOS7にログイン後、Atomを起動。
パッケージ→RemoteFTP→Toggle→connect
普段はコレで問題なく接続できたが、以下のエラーが発生。

エラー内容

Uncaught Error: Remote FTP: getConfigPath returned false, but expected a string

試したこと

こちら↓の記事を参考に"keyboardInteractive": true.ftpconfigに追記してみましたが、直らず。
[Atom][Remote-FTP]Vagrant に接続できなくなった。

解決策

こちらのQ&Aサイトで紹介されていた方法で直りました。(正確に言うと、エラーが起きる状況を理解して次回以降同じ轍を踏まないようになりました。)
Uncaught Error: Remote FTP: getConfigPath returned false, but expected a string #621
回答欄では活発な議論がなされていましたが、

I seem to get this error if I do not have a file from the project open and currently in focus. Once I open a local file from the project I can connect to the remote site without error.

これで解決しました。
つまり、プロジェクトを開かずにファイルを表示していない状態で上記の様にconnectしようとするとエラーが発生するようです。
自分もプロジェクトからローカルのファイルを開いた状態でconnectするとエラーが発生しませんでした。

なお、今回他のコードなどはいじらずにファイルの開き方を注意するだけで解決しました。
(ちなみに[Atom][Remote-FTP]Vagrant に接続できなくなった。でコードを変更したままにしたら、エラーが出てもとに戻すよう促されたので、もし同じ状況になってコードをいじった方はもとに戻しておきましょう!)

初心者の初投稿ですので記事の内容の間違いや、書き方に問題があればぜひご指摘いただければと思います!!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0