Skip to content

Commit bb36408

Browse files
committed
warn log
1 parent 8e1a5de commit bb36408

File tree

1 file changed

+1
-4
lines changed
  • plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/project

1 file changed

+1
-4
lines changed

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/project/ProjectContextProvider.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,9 @@ class ProjectContextProvider(val project: Project, private val encoderServer: En
125125
} catch (e: Exception) {
126126
if (e.stackTraceToString().contains("Connection refused")) {
127127
if (encoderServer.isNodeProcessRunning()) {
128-
// there is a chance that client throws java.net.ConnectException: Connection refused
129-
// in this case, the server is busy doing tree sitter parsing
130-
// and will be responsive later once it goes past the tree sitter parsing phrase.
131-
// Long term solution is to move encode server to LSP protocol
132128
return
133129
} else {
130+
logger.warn(e) { "project context process quit unexpectedly" }
134131
retryCount.incrementAndGet()
135132
delay(10000)
136133
}

0 commit comments

Comments
 (0)