WindowsのIntelliJでJunieが使えるか試す
IntelliJ IDEAで有名なJetbrainsからコーディングエージェントが発表された
現在は招待制ではあるのものの、試しに使える状態が整ってきている
ただ、対応しているOSがMacとLinuxってことで、
Windowsが未対応な状況
でもとりあえずWindowsでも使えるのかなーってことで試してみる
招待メールを待つ
https://scrapbox.io/files/67e208f2be02f1f6e2380063.png
2, 3週間くらい待ってたら届く
Junieのプラグインを入れる
https://scrapbox.io/files/67e20a22b960e0777bfe4718.png
https://scrapbox.io/files/67e20a4e9200a08f9ea041c8.png
右側にJunieのタブが増える
https://scrapbox.io/files/67e20ef9d22886c023e513de.png
exampleにある Create .junie/guidelines.md and add project overview を実行してみる
利用規約をチェック
https://scrapbox.io/files/67e20f7af8b29c32b6dbee4c.png
https://scrapbox.io/files/67e20fbe3a3287f155f0d8a3.png
実行すると Unknown error
https://scrapbox.io/files/67e21045873e58d94aa758c9.png
とりえあずWindowsでまっすぐに使うことはできないことは分かった
あとはWSLを絡めて使うことができるかどうか
WSLを絡めて使う方法
大きく2つと思ってて、
WSLgを使ってファイルもIntelliJもLinuxに入れる
WSLにJetBrains Gatewayをいれて、クライアントをWindows側に入れる
がある
後者はちゃんと動くか分からないので、期待値の高そうな前者の方法を試してみる
Windows対応された?!
ここまで書いててDiscordのJunieの鯖をみると、Windowsに対応しているようなメッセージがあった
9:15 JB Daniel: New 243.50.1 and 251.50.1 Junie versions are released 🚀
Changelog:
Added (finally) Windows support for 2024.3 IDE version (2025.1 coming soon)
Diffs in Junie report are now opened in editable mode (partial reverting available)
Fixed bug with non-available follow-up button
Fixed bug with added/deleted lines in Junie diff previews
IntelliJのIDEバージョンが 2024.3 以降で、
Pluginのバージョンが243.50.1と251.50.1で、
Windows Supportされたっぽいことが書かれてる
18:56 JB Daniel: Windows folks, important announcement for you: currently the only supported shell is PowerShell. Make sure to use it in Settings -> Tools -> Terminal -> Shell Path.
Also we would appreciate if you will create threads instead of writing multiple messages to the channels directly - with threads it's much more readable. Thanks in advance
PowerShellを使わないといけない、とのこと
一応PowerShellの更新
基本的にPowerShellを使わないのでそのままにしてたけど、
念のために最新版を取得しとく
$ $PSVersionTable
Name Value
---- -----
PSVersion 5.1.26100.2161
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.26100.2161
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
現在、5.1
下記からインストーラーをダウンロード
インストール後、$env:ProgramFiles\PowerShell\<version>\pwsh.exe で起動できる
スタートメニューでpwshって打てば出てくる
$ $PSVersionTable
Name Value
---- -----
PSVersion 7.5.0
PSEdition Core
GitCommitId 7.5.0
OS Microsoft Windows 10.0.26100
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Terminalを選択しなおす
IDEに戻ってきて、Settings > Tools > Terminal > Application Settings > Shell path を、
先ほどインストールした pwsh に設定する
pwshインストール後にIDEを再起動しておけば、下矢印を押せば選択肢に出てくるっぽい
https://scrapbox.io/files/67e4120dc9ef4c2d73dd3edb.png
この状態にでTerminalを開いてみると、下記みたいに出てくる
https://scrapbox.io/files/67e4127da7627443304a251f.png
Ctrl + \ でコマンドも生成できるのか!
うごいたー!!!
https://scrapbox.io/files/67e412e0a38d946b4be6773f.png
ガイドライン作られてるー!
わーい!!!
https://scrapbox.io/files/67e414152f913dff5bdef082.png
備考
Unknown Errorについて
いくつかパターンを試したけど、下記の場合に発生するっぽい
TerminalがPowerShellではない
対象のディレクトリがWindowsホスト環境になく、例えばWSL環境にある
WSL環境にあるプロジェクトはホストマシン側から見ることが出来ても、Junieは正しく動作しない
Dockerとの兼ね合いでWSL環境においてあるプロジェクトがいくつかあるけど、
これらに対してJunieを使えないというのが現状なのかな
更新履歴
2025/03/27 備考の追加
2025/03/25 かきはじめ