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

[Happening again for version 9.15.0] Cannot focus on editor when "View Latex PDF File" and then click the tex file content #4087

Closed
4 tasks done
Saltsmart opened this issue Dec 9, 2023 · 0 comments

Comments

@Saltsmart
Copy link

This issue happens just the same as #4003 for version 9.15.0, but the original one has been locked. Therefore I report this issue.

Pre-checks*

Please change the following [ ] to [x] for confirmation.

  • The issue has not been reported in this repository.
  • The issue remains after disabling all other extensions and restarting Visual Studio Code.
  • The FAQ cannot address the issue.
  • The issue is not related to compiling a document, or the document can be successfully compiled in the OS terminal but not in Visual Studio Code with this extension.

Environment*

The bold information denotes the different environment details from #4003.

  • Operating System: Windows_NT x64 10.0.22000 (Windows 11)
  • Visual Studio Code Version: 1.84.2 (system setup)
  • LaTeX Workshop Version: 9.15.0
  • TeX Distribution Version: TeX 3.141592653 (TeX Live 2023)

The Issue*

Please briefly describe the issue you come across.

  • When I click the "View Latex PDF File" (or press the keyboard shortcut) and then click the tex file content, I can edit the file content but VSCode cannot focus on tex file, so I can't save the changes by press Ctrl+S.
  • Only when I click something else (e.g. the tab or another window), can VSCode focus correctly.
    issue

Logs

LaTeX Workshop Output*

Please paste the whole log messages below, not parts of ones. The log should start with New log placeholder %WS1% registered.

[15:02:27.827][Logger] New log placeholder %WS1% registered for e:\Tikz .
[15:02:27.827][Config] latex-workshop.latex.recipes: [{"name":"xelatexmk","tools":["xelatexmk"]},{"name":"xelatexmk and convert","tools":["xelatexmk","convert"]}] .
[15:02:27.839][Config] latex-workshop.latex.tools: [{"name":"xelatexmk","command":"latexmk","args":["-outdir=%WORKSPACE_FOLDER%/Output","-auxdir=%WORKSPACE_FOLDER%/Temp","-synctex=1","-interaction=nonstopmode","-file-line-error","-xelatex","%DOC%"],"env":{}},{"name":"convert","command":"magick","args":["-quiet","-density","600","%DOC%.pdf","Output/%DOCFILE%.png"]}] .
[15:02:27.841][Config] latex-workshop.latex.outDir: "%WORKSPACE_FOLDER%/Output" .
[15:02:27.846][Config] latex-workshop.latex.autoBuild.run: "onSave" .
[15:02:27.846][Config] latex-workshop.latex.autoBuild.cleanAndRetry.enabled: false .
[15:02:27.847][Config] latex-workshop.latex.autoClean.run: "onFailed" .
[15:02:27.848][Config] latex-workshop.latex.clean.subfolder.enabled: true .
[15:02:27.849][Config] latex-workshop.latex.clean.fileTypes: ["*.aux","*.bbl","*.blg","*.idx","*.ind","*.lof","*.lot","*.out","*.toc","*.acn","*.acr","*.alg","*.glg","*.glo","*.gls","*.fls","*.log","*.fdb_latexmk","*.snm","*.synctex(busy)","*.synctex.gz(busy)","*.nav","*.vrb","*.bcf","*.xdv","*.run.xml"] .
[15:02:27.849][Config] latex-workshop.latex.clean.args: ["-c","-auxdir=%WORKSPACE_FOLDER%/Temp/","%TEX%"] .
[15:02:27.852][Config] latex-workshop.view.pdf.zoom: "page-width" .
[15:02:27.863][Config] latex-workshop.intellisense.citation.type: "browser" .
[15:02:27.863][Config] latex-workshop.intellisense.citation.label: "title" .
[15:02:27.866][Config] latex-workshop.message.badbox.show: false .
[15:02:27.867][Config] latex-workshop.latexindent.args: ["-c","%WORKSPACE_FOLDER%/Temp/","%TMPFILE%","-y=defaultIndent: '%INDENT%'","-l=E:/Tex/indentSettings.yaml"] .
[15:02:27.868][Config] latex-workshop.intellisense.citation.backend: "biblatex" .
[15:02:27.872][Config] latex-workshop.intellisense.biblatexJSON.replace: {"book":["author","title","site","publisher","year","pages"],"article":["author","title","journal","year","volume","number","pages"],"inproceedings":["author","title","booktitle","site","year","pages"],"online":["author","title","year","url"],"thesis":["author","title","school","year"],"patent":["author","title","country","number","date"],"report":["author","title","site","publisher","year"],"newspaper":["author","title","journal","date","number"]} .
[15:02:27.874][Config] latex-workshop.bibtex-format.tab: "4 spaces" .
[15:02:27.875][Config] latex-workshop.bibtex-format.sort.enabled: true .
[15:02:27.876][Config] editor.acceptSuggestionOnEnter: "smart" .
[15:02:27.877][Manager] Set $LATEXWORKSHOP_DOCKER_LATEX: ""
[15:02:28.532][Server] Creating LaTeX Workshop http and websocket server.
[15:02:28.567][Server] Server successfully started: {"address":"127.0.0.1","family":"IPv4","port":53840} .
[15:02:28.587][Extension] Initializing LaTeX Workshop.
[15:02:28.587][Extension] Extension root: c:\Users\Administrator\.vscode\extensions\james-yu.latex-workshop-9.15.0
[15:02:28.587][Extension] $PATH: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\libnvvp;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\Nsight Compute 2020.3.1\;D:\anaconda3;D:\anaconda3\Scripts;D:\anaconda3\Library\bin;D:\anaconda3\shell\condabin;D:\anaconda3\condabin;D:\anaconda3\Library\mingw-w64\bin;D:\Microsoft VS Code\bin;D:\texlive\2023\bin\windows;D:\gs10.01.1\bin;D:\ffmpeg-2023-06-15\bin;D:\Git\cmd;D:\Git\bin;D:\MATLAB\2023a\runtime\win64;D:\MATLAB\2023a\bin;D:\ImageMagick-7.1.1-Q16-HDRI;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps
[15:02:28.587][Extension] $SHELL: undefined
[15:02:28.587][Extension] $LANG: undefined
[15:02:28.588][Extension] $LC_ALL: undefined
[15:02:28.588][Extension] process.platform: win32
[15:02:28.588][Extension] process.arch: x64
[15:02:28.588][Extension] vscode.env.appName: Visual Studio Code
[15:02:28.588][Extension] vscode.env.remoteName: undefined
[15:02:28.588][Extension] vscode.env.uiKind: 1
[15:02:28.589][Extension] LaTeX Workshop initialized.
[15:02:28.593][Format][Bib] Bibtex format config: {"tab":"    ","case":"lowercase","left":"{","right":"}","trailingComma":false,"sort":["key"],"alignOnEqual":true,"sortFields":false,"fieldsOrder":[],"firstEntries":["string","xdata"]}
[15:02:28.595][Extension] Trigger characters for intellisense of LaTeX documents: ["\\",",","{"]
[15:02:28.596][Manager] Current workspace folders: ["file:///e:/Tikz"]
[15:02:28.597][Manager] Found root file from active editor: %WS1%\main.tex
[15:02:28.597][Manager] Root file changed: from undefined to %WS1%\main.tex
[15:02:28.597][Manager] Start to find all dependencies.
[15:02:28.597][Manager] Root file languageId: latex
[15:02:28.597][Event] ROOT_FILE_CHANGED: "e:\\Tikz\\main.tex"
[15:02:28.598][Cacher][Watcher] Reset.
[15:02:28.600][Cacher] Adding %WS1%\main.tex .
[15:02:28.600][Cacher][Watcher] Watched %WS1%\main.tex with a new watcher on %WS1% .
[15:02:28.600][Event] FILE_WATCHED: "e:\\Tikz\\main.tex"
[15:02:28.602][Cacher] Caching %WS1%\main.tex .
[15:02:28.602][Cacher] Updated inputs of %WS1%\main.tex .
[15:02:28.602][Cacher] Parse LaTeX AST: %WS1%\main.tex .
[15:02:28.603][Event] ROOT_FILE_SEARCHED
[15:02:28.610][Server] valdOrigin is http://127.0.0.1:53840
[15:02:29.279][Cacher] Parsed LaTeX AST: %WS1%\main.tex .
[15:02:29.280][Cacher][Path] Calling kpsewhich to resolve standalone.cls .
[15:02:30.016][Cacher] Updated elements in 736.61 ms: %WS1%\main.tex .
[15:02:30.017][Event] FILE_PARSED: "e:\\Tikz\\main.tex"
[15:02:30.018][Cacher][Path] Non-existent .fls for %WS1%\main.tex .
[15:02:30.019][Structure] Structure force updated with 0 root sections for %WS1%\main.tex .
[15:02:30.019][Event] STRUCTURE_UPDATED
[15:02:30.065][Viewer][Panel] Internal PDF viewer at http://127.0.0.1:53840/viewer.html?file=pdf..ZmlsZSUzQSUyRiUyRiUyRmUlM0ElMkZUaWt6JTJGT3V0cHV0JTJGbWFpbi5wZGY .
[15:02:30.066][Cacher][Watcher] Watched %WS1%\Output\main.pdf with a new watcher on %WS1%\Output .
[15:02:30.067][Event] FILE_WATCHED: "e:\\Tikz\\Output\\main.pdf"
[15:02:30.393][Viewer] Handle data type: open
[15:02:30.580][Server] Preview PDF file: file:///e:/Tikz/Output/main.pdf
[15:02:30.790][Viewer] Handle data type: loaded
[15:02:30.791][Event] VIEWER_PAGE_LOADED
[15:02:37.637][Commander] VIEW command invoked with mode: file:///e%3A/Tikz/main.tex.
[15:02:37.637][Manager] Current workspace folders: ["file:///e:/Tikz"]
[15:02:37.638][Manager] Found root file from active editor: %WS1%\main.tex
[15:02:37.638][Manager] Keep using the same root file: %WS1%\main.tex
[15:02:37.638][Event] ROOT_FILE_SEARCHED
[15:02:37.639][Event] STRUCTURE_UPDATED
[15:02:37.727][Viewer][Panel] Internal PDF viewer at http://127.0.0.1:53840/viewer.html?file=pdf..ZmlsZSUzQSUyRiUyRiUyRmUlM0ElMkZUaWt6JTJGT3V0cHV0JTJGbWFpbi5wZGY .
[15:02:37.727][Cacher][Watcher] Watched %WS1%\Output\main.pdf .
[15:02:37.727][Event] FILE_WATCHED: "e:\\Tikz\\Output\\main.pdf"
[15:02:37.739][Viewer] Open PDF tab for file:///e:/Tikz/Output/main.pdf
[15:02:37.866][Viewer] Handle data type: open
[15:02:37.920][Server] Preview PDF file: file:///e:/Tikz/Output/main.pdf
[15:02:37.993][Viewer] Handle data type: loaded
[15:02:37.993][Event] VIEWER_PAGE_LOADED

Developer Tools Console

Please paste the whole log messages below, not parts of ones. This console logs can sometimes be very important in many cases. To access the log, click Help -> Toggle Developer Tools -> Console.

 WARN Via 'product.json#extensionEnabledApiProposals' extension 'ms-dotnettools.dotnet-interactive-vscode' wants API proposal 'languageConfigurationAutoClosingPairs' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope text.tex.
Old grammar file: file:///d%3A/Microsoft%20VS%20Code/resources/app/extensions/latex/syntaxes/TeX.tmLanguage.json.
New grammar file: file:///c%3A/Users/Administrator/.vscode/extensions/james-yu.latex-workshop-9.15.0/syntax/TeX.tmLanguage.json
register @ TMScopeRegistry.ts:46
TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope text.tex.latex.
Old grammar file: file:///d%3A/Microsoft%20VS%20Code/resources/app/extensions/latex/syntaxes/LaTeX.tmLanguage.json.
New grammar file: file:///c%3A/Users/Administrator/.vscode/extensions/james-yu.latex-workshop-9.15.0/syntax/LaTeX.tmLanguage.json
register @ TMScopeRegistry.ts:46
TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope text.bibtex.
Old grammar file: file:///d%3A/Microsoft%20VS%20Code/resources/app/extensions/latex/syntaxes/Bibtex.tmLanguage.json.
New grammar file: file:///c%3A/Users/Administrator/.vscode/extensions/james-yu.latex-workshop-9.15.0/syntax/Bibtex.tmLanguage.json
register @ TMScopeRegistry.ts:46
TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope text.tex.markdown_latex_combined.
Old grammar file: file:///d%3A/Microsoft%20VS%20Code/resources/app/extensions/latex/syntaxes/markdown-latex-combined.tmLanguage.json.
New grammar file: file:///c%3A/Users/Administrator/.vscode/extensions/james-yu.latex-workshop-9.15.0/syntax/markdown-latex-combined.tmLanguage.json
register @ TMScopeRegistry.ts:46
TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope source.cpp.embedded.latex.
Old grammar file: file:///d%3A/Microsoft%20VS%20Code/resources/app/extensions/latex/syntaxes/cpp-grammar-bailout.tmLanguage.json.
New grammar file: file:///c%3A/Users/Administrator/.vscode/extensions/james-yu.latex-workshop-9.15.0/syntax/cpp-grammar-bailout.tmLanguage.json
register @ TMScopeRegistry.ts:46
TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope text.tex.
Old grammar file: file:///d%3A/Microsoft%20VS%20Code/resources/app/extensions/latex/syntaxes/TeX.tmLanguage.json.
New grammar file: file:///c%3A/Users/Administrator/.vscode/extensions/james-yu.latex-workshop-9.15.0/syntax/TeX.tmLanguage.json
register @ TMScopeRegistry.ts:46
TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope text.tex.latex.
Old grammar file: file:///d%3A/Microsoft%20VS%20Code/resources/app/extensions/latex/syntaxes/LaTeX.tmLanguage.json.
New grammar file: file:///c%3A/Users/Administrator/.vscode/extensions/james-yu.latex-workshop-9.15.0/syntax/LaTeX.tmLanguage.json
register @ TMScopeRegistry.ts:46
TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope text.bibtex.
Old grammar file: file:///d%3A/Microsoft%20VS%20Code/resources/app/extensions/latex/syntaxes/Bibtex.tmLanguage.json.
New grammar file: file:///c%3A/Users/Administrator/.vscode/extensions/james-yu.latex-workshop-9.15.0/syntax/Bibtex.tmLanguage.json
register @ TMScopeRegistry.ts:46
TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope text.tex.markdown_latex_combined.
Old grammar file: file:///d%3A/Microsoft%20VS%20Code/resources/app/extensions/latex/syntaxes/markdown-latex-combined.tmLanguage.json.
New grammar file: file:///c%3A/Users/Administrator/.vscode/extensions/james-yu.latex-workshop-9.15.0/syntax/markdown-latex-combined.tmLanguage.json
register @ TMScopeRegistry.ts:46
TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope source.cpp.embedded.latex.
Old grammar file: file:///d%3A/Microsoft%20VS%20Code/resources/app/extensions/latex/syntaxes/cpp-grammar-bailout.tmLanguage.json.
New grammar file: file:///c%3A/Users/Administrator/.vscode/extensions/james-yu.latex-workshop-9.15.0/syntax/cpp-grammar-bailout.tmLanguage.json
register @ TMScopeRegistry.ts:46
webviewElement.ts:512 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
mountTo @ webviewElement.ts:512
log.ts:421  INFO [perf] Render performance baseline is 53ms
webviewElement.ts:512 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
mountTo @ webviewElement.ts:512
DevTools failed to load source map: Could not load content for http://127.0.0.1:53840/out/viewer/latexworkshop.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:53840/out/viewer/components/connection.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:53840/out/viewer/components/synctex.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:53840/out/viewer/components/pagetrimmer.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:53840/out/viewer/components/htmleditor.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:53840/out/viewer/components/utils.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:53840/out/viewer/components/externalpromise.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:53840/build/pdf.mjs.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:53840/out/viewer/components/viewerhistory.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://127.0.0.1:53840/build/pdf.worker.mjs.map: Fetch through target failed: Target not supported; Fallback: Unknown error
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant