-
Notifications
You must be signed in to change notification settings - Fork 537
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
Hovering doesn't work for me at all (v5.13.0) #918
Comments
@sloth3toe go in Developer Tools then in Console and then hover over |
Thanks for checking in and sorry for being slow. I'm actually unsure how to follow the instructions. In the Command Palette there is an option called "Developer: Show Logs", is that it? And which of the 4 options, Main, Shared, Window, Extension Host, should I be looking at? |
This is what I found in the Log (Window) that may be relevant:
|
@James-Yu I think the issue is narrowed down to https://github.com/James-Yu/LaTeX-Workshop/blob/master/src/providers/hover.ts#L137 |
@sloth3toe What color theme are you using for vscode? |
@sloth3toe Try changing to default vscode themes and see if this issue persists. I suspect the theme you are using is broken (invalid json). If the issue persists with the default themes then Latex Workshop is at fault. If not, this issue isn't related to this extension and can be closed. |
It is indeed the theme. Any tip for what could be so wrong with the theme, in the case I want to modify it later? Thanks! |
@sloth3toe Nothing specific, debug this in json validator maybe https://github.com/ginfuru/vscode-better-solarized-dark/blob/master/themes/Better%20Solarized%20Dark-color-theme.json @James-Yu Will it be better if latex workshop defaults to the default colors if the theme is broken? What about adding a friendly message tooltip to let the users know their theme's json is to blame? |
FYI: Apparently it's because there are a bunch of comments or commented out lines (starting with |
@James-Yu https://www.npmjs.com/package/strip-json-comments should this be added? |
@Astrantia You may noticed that https://github.com/James-Yu/LaTeX-Workshop/blob/master/src/providers/hover.ts#L138 already had comments stripped. May anyone look into the specific theme and see what happened to the comment-stripping function? I might be away from keyboard for a while. |
The cause is that the JSON file of Better Solarized Dark is not valid even after comments deleted.
|
Description
I've been updating the extension regularly, currently at 5.13.0. I've noticed that the changelog mentioned some hovering ability but only looked into it now. I noticed that it doesn't work for me at all, hence I never noticed this new feature.
Log messages
No error with compiling. Nothing unusual in the log file.
LaTeX Workshop Output
``` [16:24:16] LaTeX log parsed with 0 messages. [16:24:16] Recipe of length 1 finished. [16:24:16] Successfully built test.tex ```How to reproduce
I tried a very minimal example as suggested by @viktorstrate #856 (comment).
Note that all settings regarding Hovering are the default ones, i.e., the feature should be enabled.
Expected behavior
I should be able to hover and preview the math content.
Actual behavior
Nothing, just like before this feature ever existed.
The text was updated successfully, but these errors were encountered: