LaTeX-Workshop: "View documentation" link on \usepackage{...} hover doesn't work with Snap version of VSCode
Preliminary questions [Required]
Disable all the other extensions except for LaTeX Workshop, and check that you still see this issue. [Required]
You still see this issue?: Yes
Make sure to visit the wiki FAQ before filling an issue.
You visited the wiki?: Yes, texdoc is in path. I’ve tried with the full path and it doesn’t work either. BTW, texdoc works without issues from terminal.
Describe the bug [Required]
Hover a \usepackage{…} and click on “view documentation”, or run “LaTex Workshop: Show package documentation” or “LaTex Workshop: Show package documentation actually used”. None of them works,
To Reproduce
Steps to reproduce the behavior:
- Hover a \usepackage{…}
- Click on “view documentation”
- You don’t get any outcome
Or:
- Run “LaTex Workshop: Show package documentation actually used”
- Select one of the packages
- You don’t get any outcome
Or:
- Run “LaTex Workshop: Show package documentation”
- Write a package name
- You don’t get any outcome
Expected behavior
A PDF with the docs should open. I’ve tested with packages which all have docs, and running texdoc from CLI works as expected. The similar functionality in Emacs also works.
Logs [Required]
Please paste the whole log messages here, not parts of ones. The log should start with Initializing LaTeX Workshop. It is very important to identify problems.
LaTeX Workshop Output [Required]
To access the log, click the 'TeX' icon on the Activity Bar on the left side, select 'View Log Messages', then select 'View LaTeX Workshop extension log'.
[10:04:05] Initializing LaTeX Workshop.
[10:04:05] Extension root: /home/***/.vscode/extensions/james-yu.latex-workshop-8.15.0
[10:04:05] Creating PDF file watcher.
[10:04:05] Creating LaTeX Workshop http and websocket server.
[10:04:05] LaTeX Workshop initialized.
[10:04:05] Current workspace folders: ["file:///home/***/***/***/***/***"]
[10:04:05] Current workspaceRootDir: /home/***/***/***/***/***
[10:04:05] Found root file from active editor: /home/***/***/***/***/***.tex
[10:04:05] Root file changed: from undefined to /home/***/***/***/***/***.tex
[10:04:05] Start to find all dependencies.
[10:04:05] Root file languageId: latex
[10:04:05] Instantiating a new file watcher for /home/***/***/***/***/***.tex
[10:04:05] Creating Bib file watcher.
[10:04:05] Parsing a file and its subfiles: /home/***/***/***/***/***.tex
[10:04:05] Found .bib file: /home/***/***/***/***/***.bib
[10:04:05] Added to bib file watcher: /home/***/***/***/***/***.bib
[10:04:05] Parsing .bib entries from /home/***/***/***/***/***.bib
[10:04:05] Parse fls file.
[10:04:05] Fls file found: /home/***/***/***/***/***.fls
[10:04:06] Parse aux file: /home/***/***/***/***/***.aux
[10:04:06] Found .bib file: /home/***/***/***/***/***.bib
[10:04:06] Server created on 127.0.0.1:34723
[10:04:06] Added to file watcher: /home/***/***/***/***/***.tex
[10:04:06] Snippet data loaded.
[10:04:06] LaTeX Workshop version: 8.15.0
[10:04:06] Parsed 72 bib entries from /home/***/***/***/***/***.bib.
[10:04:23] Opening documentation for amsmath.
Developer Tools Console [Required]
To access the log, click 'help' -> 'Toggle Developer Tools' -> 'Console'. Paste anything suspicious.
Nothing there.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop [Required]
- OS: Ubuntu Focal
- VS Code version: 1.52.0
- Extension version: 8.15.0
- TeX distribution version:TeX Live 2019
Additional questions
Are you using VSCodium?
No
Are you using LaTeX Workshop with VS Code Remote?
No
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 26 (14 by maintainers)
I am so happy, we have finally found the issue!
No, wait a minute. I was trying to run the downloaded binary from the command line in the usual way, but somehow it was another copy of the snap what was launched. Just checked the processes. Closing the snap and running the binary, everything works. Sorry for the confusion. Keep this closed, I’ll report to the snap people.