liuderchi / ide-html

:atom: Atom-IDE for HTML, Go Template, Mustache and other Templates
https://atom.io/packages/ide-html
MIT License
20 stars 5 forks source link

outline view keep loading #19

Open ekil1100 opened 6 years ago

ekil1100 commented 6 years ago

Description

After I opened the outline view, it just keep loading. It happens both on my Mac and Windows.

ide-html

Your Environment

liuderchi commented 6 years ago

@lastingman thanks for your report.

Is it happening to any html files you opened? Does it happen to small html files?

ekil1100 commented 6 years ago

It happens on all html files I opened. In my opinion, they are small files.

liuderchi commented 6 years ago

@lastingman please do

  1. dispatch command Application: Open Your Config
  2. add debugLSP: true under core property then save
  3. dispatch command Window: Toggle Dev Tools
  4. dispatch command Window: reload

Is there any error message appears in the console in the right side?

ekil1100 commented 6 years ago

@liuderchi

2018-01-02 13 47 18

I can't tell which error is come from the package.

liuderchi commented 6 years ago

@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) > ...

ekil1100 commented 6 years ago

image image

liuderchi commented 6 years ago

@lastingman sorry I did not make it clear. May you also expand the array part? > [ Array[2] ]

ekil1100 commented 6 years ago
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]
ekil1100 commented 6 years ago
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]
liuderchi commented 6 years ago

@lastingman looks like it's a connection issue.

Please try following steps to restart HTML language client server.

  1. Keep Atom dev tool opened, switched to Console tab
  2. Close all opened files
  3. Do command Window:Reload; wait for a while until no messages popped up in Console.
  4. Open one html file. Any red error messages appeared in Console?
ekil1100 commented 6 years ago

image No red error messages appears in console after I opened a html file. Only one error appears before I opened the html file.

ekil1100 commented 6 years ago

Seems like the Get error come from the atom-ide-ui. https://github.com/facebook-atom/atom-ide-ui/issues/100

damieng commented 6 years ago

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.

ekil1100 commented 6 years ago

@damieng
No I don't see process 12416

ekil1100 commented 6 years ago

@damieng I tried several time, I don't see the process is running in task manager

liuderchi commented 6 years ago

... 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?

ekil1100 commented 6 years ago

@liuderchi nothing shows on console. no message, no error

liuderchi commented 6 years ago

@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

ekil1100 commented 6 years ago

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.