-
Notifications
You must be signed in to change notification settings - Fork 38
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
Contextual help not activating in VsCode #100
Comments
hi @Michael-F-Ellis , thanks for the report. I quickly checked that Jupyter notebook on a normal browser works: I'll try to figure out what is (not?) happening in VSCode later next week -- apologies, i'm out of town this week, and it's harder for me to test. |
@janpfeifer Thanks. No hurry. I can try to dig into it a bit further if you have any suggestions about where to begin looking. |
Yes, so to debug it, clone go run . --install --logtostderr --vmodule=goplsclient=2,exec=2,conn=2 Then restart That and peeking at the code under |
Cloned and ran per your instructions. Restarted kernel in VsCode notebook window. No errors reported at startup, and everything runs fine but there's no log output in the terminal. Running 14316 ?? S 0:00.08 /Users/mellis/Library/Jupyter/kernels/gonb/gonb --kernel /Users/mellis/Library/Jupyter/runtime/kernel-v2-14086GREYoI1fW6m5.json --vmodule=goplsclient=2,exec=2,conn=2 --logtostderr along with some socket connections to gopls. It's clearly communicating with gopls because I'm getting syntax highlighting and completion suggestions when I type. Just no help when I mouse over a symbol. As a sanity check, I created a Python notebook and ran it under the Jupyter Python kernel in VsCode. Mouse over help works as expected there. |
Ok, I don't have VSCode here now (the following weekend I'll have), so I'm guessing blindly here ... In my laptop I run
go run . --install --logtostderr --vmodule=goplsclient=2,exec=2,conn=2 --extra_log=/tmp/gonb.log And you should see the logs going on in You'll need to restart jupyter, so it re-reads the configuration for the kernel... Notice it won't fix the issue, but maybe you will see if requests to Btw, just for sanity sake, it may be worth updating |
That's more like it! Thanks.
for cells that execute without error. Cells with errors produce a trace that looks pretty standard. What I don't see is any traffic with Which is funny, because there's clearly communication with a language server since I'm getting highlighting and autocomplete. (BTW, I did upgrade |
Thanks for checking it @Michael-F-Ellis ! So, in that case, the next thing I would look for is what is transpiring in the protocol between JupyterServer and It should display the requests for auto-complete/context help there. The protocol is described here. Inside I mean, I was hoping it would be something simpler than having to dive into all these ... but just in case you are curious or need to understand something. |
So here's the message stream from a successful cell execution with the new build.
Still seeing no traffic in response to any mouse or kbd action. |
Sorry for the delay @Michael-F-Ellis, I was on a business trip, and didn't have an opportunity to investigate it earlier. So vanilla VSCode won't talk Jupyter's Completion protocol. It relies on IntelliSense (according to this at least) for Python. Let me see if there are any plugins that will make it work ... in the mean time I'm adding a document on the limitations/information on VSCode. Pls, let me know if you have any hints/tricks on that so I can add there. I'm going to take a look at Polyglot next. ps.: I also confirmed that VSCode won't allow any javascript in its output, so Plotly and Widgets won't work there :( I figure it must be the same with Python. |
I intalled VSCode+Polyglot locally, but indeed it doesn't work with Go, they state that in their homepage. I created a dotnet/interactive#3511, check it out/subscribe to it ? |
Latest VsCode and Jupyter extension running on MacOS.
Can't get mouseover contextual help in
gonb
notebooks. Shift-Tab and Ctrl-I have no effect. Context help works fine in normal go files.The text was updated successfully, but these errors were encountered: