Open namhyuck-kim-otsk opened 1 year ago
Sorry you're running into issues @namhyuck-kim-otsk, could you please also include the Gateway + Codespaces plugin version?
Are you seeing this error every time you try to connect?
I tried connecting to a Codespace with Webstorm on Gateway version: GW-231.8770.69
and plugin version: 0.4.0.1213
and was able to connect.
You can also check the SSH Connection
window for the SSH configurations. It sounds like the one that's set up for the codespace is missing. You can view that by going to SSH Connection
in the All Providers
view and clicking New Connection
.
Then, click the cog next to the drop down and you'll be able to view all of the configurations.
You probably won't see one like: apidev@localhost:63623
since the error message says you're missing it. If you could confirm that, it might also be helpful. The port for SSH is randomly generated on each connection, so it would be hard to add the missing configuration.
Hi Thomas, thank you for the quick reply.
My current environment: Gateway (GW-231.8770.69
), Codespace Plugin (0.4.0.1148
)
Edit: I updated Codespace Plugin
to the latest version (0.4.0.1213
) and still no response.
When I click connect after selecting the IDE, I get a couple of loading dialog, but I get no response after that (no error message)
I checked the list of SSH configurations, but I get a bunch of keys.
Any idea why this is happening?
Thanks. N.H Kim
Thank you for confirming those details. I'm going to investigate the cause of that issue today and I'll get back to you when I know more.
In the meantime, I'm going to flag you into our new connection flow to see if that will unblock you. Please let me know if you continue to see issues after trying again.
Many thanks for your effort.
I've tried running codespace via Jetbrains Gateway again, but still no response.
If you need more information, please feel free to let me know.
I hope to hear back from you soon!
No problem! 😄
If you can provide the idea.log
for the Gateway, that would be great.
idea.log
On the Gateway landing page, there's a code in the bottom left. Please click that and then Collect All Logs:
If you can attach the archive here, I can look more deeply into the logs and pass them along to JetBrains if it looks like we'll need their help solving the issue.
Thanks in advance!
Hi, I've attached the log archive below.
Please take a look and have a great day 👍🏻
Great, thanks for the logs.
I've released a new version of the plugin that uses an updated SDK to manage the SSH configurations. If you could, please try updating the plugin and then restarting the gateway and trying again.
Hi Thomas, thank you for your effort. I've tried with the updated codespaces plugin, and I am met with the following error log:
Description Can not open Codepaces with Jetbrains Webstorm through Jetbrains Gateway.
Steps to reproduce Update Jetbrains Gateway & Codespaces Plugin to latest versions. Follow the instruction and run codespaces.
Impact Met with following error log.
Additional context java.lang.NullPointerException: null cannot be cast to non-null type com.jetbrains.gateway.ssh.HostDeployInputs.FullySpecified at com.github.codespaces.jetbrains.gateway.connector.CodespacesConnectorService$connect$1$run$1.invokeSuspend(CodespacesConnectorService.kt:107) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.internal.DispatchedContinuationKt.resumeCancellableWith(DispatchedContinuation.kt:367) at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable(Cancellable.kt:30) at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable$default(Cancellable.kt:25) at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:110) at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:126) at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56) at kotlinx.coroutines.BuildersKt.launch(Unknown Source) at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch$default(Builders.common.kt:47) at kotlinx.coroutines.BuildersKt.launch$default(Unknown Source) at com.github.codespaces.jetbrains.gateway.connector.CodespacesConnectorService$connect$1.run(CodespacesConnectorService.kt:103) at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:429) at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:114) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressSynchronously$9(CoreProgressManager.java:513) at com.intellij.openapi.progress.impl.ProgressRunner.lambda$new$0(ProgressRunner.java:84) at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:252) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:186) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:604) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:679) at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:635) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:603) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:173) at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:252) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699) at java.base/java.lang.Thread.run(Thread.java:833) Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelled}@143ca824, Dispatchers.Unconfined] OS: Windows OS Version: 10.0 OS Architecture: amd64 Java Version: 17.0.6 Java Runtime Version: 17.0.6+10-b829.9 Java Vendor: JetBrains s.r.o. Available CPUs: 8 Max Memory: 536870912 Free Memory: 65121000 Total Memory: 269484032 IDE Version: 2023.1.2 IDE: JetBrains Gateway 2023.1.2 Plugin Version: 0.4.0.1222 Plugin path: C:\Users\namhyuck.kim\AppData\Roaming\JetBrains\JetBrainsGateway2023.1\plugins\github-codespaces-gateway Plugin ID: com.github.codespaces.jetbrains.gateway
I also encountered the same situation,there are my information about my runtime envirment Plugin Github Codespaces version: 0.4.0.1222 Gh version: 2.29.0 (2023-05-10) jetBrains gateway Version 2023 .1.2 Build #GW-231.9011.34, built on May 16, 2023 Runtime version: 17.0.6+10-b829.9 amd64
And the diffierence about me and namhyuck-kim-otsk that is my chosen Ide is pychar m I also chose the IDE IDEA,it also can't work out
hope those information could help you to resolve this question. thanks
Thanks for the stacktrace. It seems like the error has changed slightly, but this is still in the same callstack. I've reached out to JetBrains for some help on diagnosing this issue.
@Leezed525 was this working for you previously? If it was, let me know and I can roll back the most recent version. If you'd like to manually roll back immediately, you can go to the plugin page and manually download and install the previous version (0.4.0.1213) of the plugin.
Could you also make sure that you can connect to the codespace using the gh cs ssh
command from the gh
CLI?
it was my first time to try to use codespaces, the default ide for codespace is vs code.however I'd like to use ide from jetbrain so I try to use open in jetbrain gateway.
And i can sure that I can connect to the codespace.including open in browser or the command gh cs ssh
you tell me to do.There are my screen shots, the first one is open in browser ,and the second one is command gh cs ssh
And i found another problem is that if i didn't open Jetbrain Gateway before I click the open in jetbrain gateway, it hasn't any response. And i will never open the jetbrain gateway successfully even I just double click its icon in desktop until I restart my computer
Thanks a lot for you patient reading
Thank you for confirming that, could you provide the logs (all I need is the idea.log
) for the gateway using the instructions here?
I've narrowed down where the issue is happening but I'm not able to reproduce it myself.
I've removed the latest version of the plugin. If you uninstall and reinstall the plugin, you'll get the previous version. @namhyuck-kim-otsk this will probably result in the Configuration ID issue you were seeing before. @Leezed525, @squid233, @oiiakm, if you revert to the previous version, please let me know if you see any issues (especially if they're like the issue first reported in this thread).
I'm going to go back to working on finding a fix for the configuration ID exception.
Thanks everyone for your patience, help, and logs. If you can provide any additional information about the set up you're using to help me repro the error, that would be very useful. Additionally, if you could provide answers to the following questions, it will help us track down the issue:
idea.log
(directions) from the gateway?gh cs ssh
from the gh
CLI tool?Hi, I tried reinstalling the plugin, ssh and connecting again, but it still doesn't work. This is the log archive: gateway-logs-20230523-21530210321077831527267196.zip
Thanks for the quick response, looks like the same error as the one that started this thread. I'll post an update here when I think I've found something.
I try to open in jetbrain gateway three time just now after I reinstall the plugin.Here is my idea.log file And for your question
thanks for you effort
Thank you for the additional logs, they're very helpful.
I have a new build of the gateway plugin that might resolve the issues. You can download it here and install it manually.
To do that:
Open the gateway settings page and go to Plugins
and uninstall the existing plugin:
Click the cog and select Install Plugin from Disk
. Find the .zip
file that you downloaded from the link above and select the zip (no need to unzip it)
Hit Apply
, then Ok
and then go back to the Gateway landing screen and go through the the same flow you have been.
The screenshots above show 0.4.0.1232 but the download links to 0.4.0.1233. I made some additional changes and pushed them around 30 minutes before posting this comment.
- If able, could you please provide the
idea.log
(directions) from the gateway?- Was this working before?
- Are you using a custom devcontainer?
- If you haven't already, can you try ssh'ing into the codespace using
gh cs ssh
from thegh
CLI tool?
I installed the plugin manually and sadly it doesn't work. Please refer to the following error log:
Unhandled exception in [StandaloneCoroutine{Cancelling}@7463ff67, Dispatchers.Unconfined]
java.lang.NullPointerException: null cannot be cast to non-null type com.jetbrains.gateway.ssh.HostDeployInputs.FullySpecified
at com.github.codespaces.jetbrains.gateway.connector.CodespacesConnectorService$connect$1$run$1.invokeSuspend(CodespacesConnectorService.kt:103)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.internal.DispatchedContinuationKt.resumeCancellableWith(DispatchedContinuation.kt:367)
at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable(Cancellable.kt:30)
at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable$default(Cancellable.kt:25)
at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:110)
at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:126)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56)
at kotlinx.coroutines.BuildersKt.launch(Unknown Source)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch$default(Builders.common.kt:47)
at kotlinx.coroutines.BuildersKt.launch$default(Unknown Source)
at com.github.codespaces.jetbrains.gateway.connector.CodespacesConnectorService$connect$1.run(CodespacesConnectorService.kt:99)
at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:429)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:114)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressSynchronously$9(CoreProgressManager.java:513)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$new$0(ProgressRunner.java:84)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:252)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:186)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:604)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:679)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:635)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:603)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:173)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:252)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
at java.base/java.lang.Thread.run(Thread.java:833)
Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelled}@7463ff67, Dispatchers.Unconfined]
To answer your questions:
kex_exchange_identification: Connection closed by remote host
I try to connect again after install plugin manually.But it also didn't work And my error log is same like @namhyuck-kim-otsk
Just checking in to let you know that I'm still investigating the cause of this issue. No new developments yet, but I'll update back here when I have something new to report. Sorry for the inconvenience and thank you for your patience.
I 'm going to tell you a good information about this issue. I change my personal computer and it connect to the codespace successfully. The situtaiton about my previous computer is:
the situtation about current computer is :
and there is my log from jetbrain Gateway which I successfully connect to the jetbrain gateway , gateway-logs-20230604-23423713882512298190623521.zip
hope this information could help you resolve this problem and thanks for you effort
It happens to me only when it is opened from browser.
Having this issue as well, reported in #108
Also having this issue. This is making it very hard for me to adopt GitHub Codespaces at work as VSCode's Ruby tooling is not anywhere near RubyMine's.
I'm also experiencing it really intermittently. I've been able to get things to work about once.
Yeah, I'm getting this issue too. I tried Idea and Webstorm. I did try gh cs ssh
and can access that fine. Everything is the latest as of today since i didn't have gh
installed or Gateway.
Hi, I am trying to open Github Codespaces with Jetbrains Webstorm IDE, but I get no response when I try to open it in Jetbrains Gateway. Please refer to the following for the logs. It seems to be SSH problem but I couldn't find any solution to solve it. Any help would be appreciated.
Edit) Works fine with VS Code
(Log) Webstorm
(Log) Gateway