Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

outline view keep loading #19

Open
ekil1100 opened this issue Dec 31, 2017 · 19 comments
Open

outline view keep loading #19

ekil1100 opened this issue Dec 31, 2017 · 19 comments

Comments

@ekil1100
Copy link

Description

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

ide-html

Your Environment

@liuderchi
Copy link
Owner

@lastingman thanks for your report.

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

@ekil1100
Copy link
Author

ekil1100 commented Jan 1, 2018

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

@liuderchi
Copy link
Owner

@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
Copy link
Author

ekil1100 commented Jan 2, 2018

@liuderchi

2018-01-02 13 47 18

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

@liuderchi
Copy link
Owner

@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
Copy link
Author

ekil1100 commented Jan 3, 2018

image
image

@liuderchi
Copy link
Owner

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

@ekil1100
Copy link
Author

ekil1100 commented Jan 4, 2018

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
Copy link
Author

ekil1100 commented Jan 4, 2018

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
Copy link
Owner

liuderchi commented Jan 4, 2018

@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
Copy link
Author

ekil1100 commented Jan 4, 2018

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
Copy link
Author

ekil1100 commented Jan 4, 2018

Seems like the Get error come from the atom-ide-ui.
facebookarchive/atom-ide-ui#100

@damieng
Copy link

damieng commented Jan 4, 2018

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
Copy link
Author

ekil1100 commented Jan 4, 2018

@damieng
No I don't see process 12416

@ekil1100
Copy link
Author

ekil1100 commented Jan 4, 2018

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

@liuderchi
Copy link
Owner

liuderchi commented Jan 4, 2018

... 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
Copy link
Author

ekil1100 commented Jan 4, 2018

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

@liuderchi
Copy link
Owner

liuderchi commented Jan 5, 2018

@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
Copy link
Author

ekil1100 commented Jan 5, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants