LoginSignup
0
0

SFDXでのデバック

Last updated at Posted at 2023-09-03

Unable to retrieve breakpoint info from language server, language server is not ready

Ending SFDX: Update Checkpoints in Org

Your checkpoints have errors. Fix the errors listed in the output, then run SFDX: Update Checkpoints in Org again.

Error: {"errno":-4047,"code":"EPIPE","syscall":"write"} undefined

jdl1.8になっている。

image.png

Jdkのバージョンが違うようです。

私はこれを解決する方法を自分で見つけました(同僚のヒントで)。

VS Code の設定に移動し、「salesforcedx-vscode-apex」を検索します。
「Java: Home」エントリを探して、そこに Java jdk へのパスを貼り付けます。
Java がインストールされていない場合は、最新の 17 バージョンをダウンロードすることをお勧めします。このパス (例: C:\Program Files\Java\jdk-17) を使用します。

I found out myself how to solve this (with the hint of a colleague).

Go to the settings of VS Code and search for "salesforcedx-vscode-apex".
Look for the Java: Home entry and paste there the path to your Java jdk.
If you dont have Java installed I recommend to download the newest 17 version. Use this path, for example C:\Program Files\Java\jdk-17.

どうもこの機能はjdk 1.7しか機能しないみたい。

image.png

I couldn't find a working example for jdk1.8.

The Apex Language Server, shipped as part of the Salesforce Apex Extension for VS Code, depends on the Java Platform, Standard Edition Development Kit (JDK). It requires an installation of either JDK version 17 (Recommended), JDK version 11, or JDK version 8.

https://developer.salesforce.com/tools/vscode/en/vscode-desktop/java-setup

https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007GJFoLSAX

jdk1.8 で動作する例は見つかりませんでした。

Salesforce Apex Extension for VS Code の一部として出荷される Apex 言語サーバーは、Java プラットフォーム、Standard Edition Development Kit (JDK) に依存します。 JDK バージョン 17 (推奨)、JDK バージョン 11、または JDK バージョン 8 のいずれかのインストールが必要です。

image.png

Java version is 21.0.2.

Probably requires JDK version 17

I couldn't find a working example for jdk1.8.

The Apex Language Server, shipped as part of the Salesforce Apex Extension for VS Code, depends on the Java Platform, Standard Edition Development Kit (JDK). It requires an installation of either JDK version 17 (Recommended), JDK version 11, or JDK version 8.

https://developer.salesforce.com/tools/vscode/en/vscode-desktop/java-setup

https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007GJFoLSAX

Prior to updating to version 21, I was using version 1.8. I encountered the error during that time and subsequently upgraded to version 21. However, downgrading to version 17 resolved the issue.

バージョン 21 に更新する前は、バージョン 1.8 を使用していました。その間にエラーが発生し、その後バージョン 21 にアップグレードしました。ただし、バージョン 17 にダウングレードすると問題は解決しました。

image.png

Mac環境で作業していたのですが、JAVA_HOMEが設定されていないことに気づき、設定してみました。ただし、それでも「SFDX: Toggle Checkpoint」のオプションは表示されませんでした。プラグインを再インストールして再起動してみましたが、やはりダメでした。

すると、VSCode の言語モードが Apex ではなく VBA に設定されていることに気づきました。 Apex に切り替えると、「SFDX: Toggle Checkpoint」オプションが表示されました。誤った言語検出が原因である可能性があるようです。

その他

Resolved : Created a new playground and then did the module from start it worked.

解決済み : 新しいプレイグラウンドを作成し、モジュールを最初から実行すると機能しました。

I got the above 'step not complete' as well in Trailhead, I cleared the checkpoint from the code, re-placed it, saved the file, ran SFDX: Update Checkpoints in Org, when finished re-checked in Trailhead and then the check passed and the badge was awarded.

Trailhead でも上記の「ステップが完了していません」というメッセージが表示され、コードからチェックポイントをクリアし、再配置してファイルを保存し、SFDX: Update Checkpoints in Org を実行しました。完了したら Trailhead で再チェックし、チェック合格し、バッジが授与されました。

I got the above 'step not complete' as well in Trailhead, I cleared the checkpoint from the code, re-placed it, saved the file, ran SFDX: Update Checkpoints in Org, when finished re-checked in Trailhead and then the check passed and the badge was awarded.

Trailhead でも上記の「ステップが完了していません」というメッセージが表示され、コードからチェックポイントをクリアし、再配置してファイルを保存し、SFDX: Update Checkpoints in Org を実行しました。完了したら Trailhead で再チェックし、チェック合格し、バッジが授与されました。

I restarted VS Code, removed and readded the checkpoint, then Updated Checkpoints in the Org and it allowed me to pass the module.

VS Code を再起動し、チェックポイントを削除して再追加し、組織内のチェックポイントを更新したところ、モジュールを通過できるようになりました

コマンドパレットに出てこない

image.png

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