Open ekil1100 opened 6 years ago
@lastingman thanks for your report.
Is it happening to any html files you opened? Does it happen to small html files?
It happens on all html files I opened. In my opinion, they are small files.
@lastingman please do
Application: Open Your Config
debugLSP: true
under core
property then saveWindow: Toggle Dev Tools
Window: reload
Is there any error message appears in the console in the right side?
@liuderchi
I can't tell which error is come from the package.
@lastingman thanks.
Usually it's message containing VSCODE-HTML-LANG-SERVER
.
May you expand those two RED MESSAGE in the middle part?
> GET atom://nuclide/...
> HTML (VSCODE-HTML-LANG-SERVER) > ...
@lastingman sorry I did not make it clear. May you also expand the array part?
> [ Array[2] ]
Array[1]
0
:
Array[2]
0
:
"rpc.onError"
1
:
Array[3]
0
:
Error: write EPIPE at exports._errnoException (util.js:1022:11) at Socket._writeGeneric (net.js:715:26) at Socket._write (net.js:734:8) at doWrite (_stream_writable.js:332:12) at writeOrBuffer (_stream_writable.js:318:5) at Socket.Writable.write (_stream_writable.js:245:11) at Socket.write (net.js:661:40) at StreamMessageWriter.write (C:\Users\Like\.atom\packages\ide-html\node_modules\vscode-jsonrpc\lib\messageWriter.js:91:27) at C:\Users\Like\.atom\packages\ide-html\node_modules\vscode-jsonrpc\lib\main.js:770:35 at Object.sendRequest (C:\Users\Like\.atom\packages\ide-html\node_modules\vscode-jsonrpc\lib\main.js:760:26) at LanguageClientConnection._sendRequest (C:\Users\Like\.atom\packages\ide-html\node_modules\atom-languageclient\build\lib\languageclient.js:249:38) at LanguageClientConnection.initialize (C:\Users\Like\.atom\packages\ide-html\node_modules\atom-languageclient\build\lib\languageclient.js:49:17) at HTMLLanguageClient.startServer (C:\Users\Like\.atom\packages\ide-html\node_modules\atom-languageclient\build\lib\auto-languageclient.js:191:49)
code
:
"EPIPE"
errno
:
"EPIPE"
message
:
"write EPIPE"
rawStack
:
Array[13]
stack
:
"Error: write EPIPE↵ at exports._errnoException (util.js:1022:11)↵ at Socket._writeGeneric (net.js:715:26)↵ at Socket._write (net.js:734:8)↵ at doWrite (_stream_writable.js:332:12)↵ at writeOrBuffer (_stream_writable.js:318:5)↵ at Socket.Writable.write (_stream_writable.js:245:11)↵ at Socket.write (net.js:661:40)↵ at StreamMessageWriter.write (C:\Users\Like\.atom\packages\ide-html\node_modules\vscode-jsonrpc\lib\messageWriter.js:91:27)↵ at C:\Users\Like\.atom\packages\ide-html\node_modules\vscode-jsonrpc\lib\main.js:770:35↵ at Object.sendRequest (C:\Users\Like\.atom\packages\ide-html\node_modules\vscode-jsonrpc\lib\main.js:760:26)↵ at LanguageClientConnection._sendRequest (C:\Users\Like\.atom\packages\ide-html\node_modules\atom-languageclient\build\lib\languageclient.js:249:38)↵ at LanguageClientConnection.initialize (C:\Users\Like\.atom\packages\ide-html\node_modules\atom-languageclient\build\lib\languageclient.js:49:17)↵ at HTMLLanguageClient.startServer (C:\Users\Like\.atom\packages\ide-html\node_modules\atom-languageclient\build\lib\auto-languageclient.js:191:49)"
syscall
:
"write"
__proto__
:
Object
1
:
undefined
2
:
undefined
length
:
3
__proto__
:
Array[0]
length
:
2
__proto__
:
Array[0]
length
:
1
__proto__
:
Array[0]
Array[1]
0
:
Array[2]
0
:
"rpc.onError"
1
:
Array[3]
0
:
Error: This socket is closed at Socket._writeGeneric (net.js:683:19) at Socket._write (net.js:734:8) at doWrite (_stream_writable.js:332:12) at writeOrBuffer (_stream_writable.js:318:5) at Socket.Writable.write (_stream_writable.js:245:11) at Socket.write (net.js:661:40) at StreamMessageWriter.write (C:\Users\Like\.atom\packages\ide-html\node_modules\vscode-jsonrpc\lib\messageWriter.js:93:27) at C:\Users\Like\.atom\packages\ide-html\node_modules\vscode-jsonrpc\lib\main.js:770:35 at Object.sendRequest (C:\Users\Like\.atom\packages\ide-html\node_modules\vscode-jsonrpc\lib\main.js:760:26) at LanguageClientConnection._sendRequest (C:\Users\Like\.atom\packages\ide-html\node_modules\atom-languageclient\build\lib\languageclient.js:249:38) at LanguageClientConnection.initialize (C:\Users\Like\.atom\packages\ide-html\node_modules\atom-languageclient\build\lib\languageclient.js:49:17) at HTMLLanguageClient.startServer (C:\Users\Like\.atom\packages\ide-html\node_modules\atom-languageclient\build\lib\auto-languageclient.js:191:49)
message
:
"This socket is closed"
rawStack
:
Array[12]
stack
:
"Error: This socket is closed↵ at Socket._writeGeneric (net.js:683:19)↵ at Socket._write (net.js:734:8)↵ at doWrite (_stream_writable.js:332:12)↵ at writeOrBuffer (_stream_writable.js:318:5)↵ at Socket.Writable.write (_stream_writable.js:245:11)↵ at Socket.write (net.js:661:40)↵ at StreamMessageWriter.write (C:\Users\Like\.atom\packages\ide-html\node_modules\vscode-jsonrpc\lib\messageWriter.js:93:27)↵ at C:\Users\Like\.atom\packages\ide-html\node_modules\vscode-jsonrpc\lib\main.js:770:35↵ at Object.sendRequest (C:\Users\Like\.atom\packages\ide-html\node_modules\vscode-jsonrpc\lib\main.js:760:26)↵ at LanguageClientConnection._sendRequest (C:\Users\Like\.atom\packages\ide-html\node_modules\atom-languageclient\build\lib\languageclient.js:249:38)↵ at LanguageClientConnection.initialize (C:\Users\Like\.atom\packages\ide-html\node_modules\atom-languageclient\build\lib\languageclient.js:49:17)↵ at HTMLLanguageClient.startServer (C:\Users\Like\.atom\packages\ide-html\node_modules\atom-languageclient\build\lib\auto-languageclient.js:191:49)"
__proto__
:
Object
1
:
undefined
2
:
undefined
length
:
3
__proto__
:
Array[0]
length
:
2
__proto__
:
Array[0]
length
:
1
__proto__
:
Array[0]
@lastingman looks like it's a connection issue.
Please try following steps to restart HTML language client server.
Console
tabWindow:Reload
; wait for a while until no messages popped up in Console.No red error messages appears in console after I opened a html file. Only one error appears before I opened the html file.
Seems like the Get error come from the atom-ide-ui. https://github.com/facebook-atom/atom-ide-ui/issues/100
The atom-ide-ui get error is completely unrelated.
The server process is starting but it's not responding to the initialize message. See if process 12416 is still running in task manager.
@damieng
No I don't see process 12416
@damieng I tried several time, I don't see the process is running in task manager
... No red error messages appears in console after I opened a html file. ...
@lastingman Please then try toggle to show Outline View. Any messages or unexpected behavior then?
@liuderchi nothing shows on console. no message, no error
@lastingman thanks for your report.
I am considering adding those steps to FAQ section in README.md.
For now this is the best way I know to restarting Language Server to handle connection issues.
Perhaps Q&A would look like this:
I got error message about bad connection, how can I restart it?
@lastingman if you do not have any comments to this issue I will close this issue
Sorry, it's my bad that didn't describe clearly. There is no error but the outline view still keep loading, it didn't fix the issue.
Description
After I opened the outline view, it just keep loading. It happens both on my Mac and Windows.
Your Environment