James-Yu / LaTeX-Workshop

Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.
MIT License
10.74k stars 535 forks source link

Nothing - View in VsCode tab #1299

Closed qingdujun closed 5 years ago

qingdujun commented 5 years ago

Make sure to visit the wiki FAQ before filling an issue.

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'

  2. Click on '....'

View in VsCode tab
  1. See error
Nothing - view in vscode tab, but click the external is work.
屏幕快照 2019-04-12 下午10 42 40 屏幕快照 2019-04-12 下午10 46 50

Expected behavior A clear and concise description of what you expected to happen.

Logs Please paste the log messages here. It is very important to identify problems. If you think the logs are unrelated, please say so.

LaTeX Workshop Output
OUTPUT - LaTeX Workshop

[22:44:36] VIEW command invoked.
Developer Tools Console
[Extension Host] debugger listening on port 51477
textMateService.ts:52 Overwriting grammar scope name to file mapping for scope source.python.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/python/syntaxes/MagicPython.tmLanguage.json.
New grammar file: file:///Users/qingdujun/.vscode/extensions/tht13.python-0.2.3/syntaxes/python.tmLanguage
register @ textMateService.ts:52
textMateService.ts:52 Overwriting grammar scope name to file mapping for scope source.regexp.python.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/python/syntaxes/MagicRegExp.tmLanguage.json.
New grammar file: file:///Users/qingdujun/.vscode/extensions/tht13.python-0.2.3/syntaxes/Regular%20Expressions%20%28Python%29.tmLanguage
register @ textMateService.ts:52

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

jlelong commented 5 years ago

The pdf tab viewer works out of the box. If it does not work with your configuration, please post the full logs from the extension.

qingdujun commented 5 years ago

The pdf tab viewer works out of the box. If it does not work with your configuration, please post the full logs from the extension.

Thanks, but how to post the full logs from the extension?

qingdujun commented 5 years ago

@jlelong And this is my config. Is there a problem?

By the way, this built-in PDF is bad, I am using an external one (via skim).

{
    "files.autoSave": "afterDelay",
    "latex-workshop.view.pdf.viewer": "tab", //external
    "files.eol": "\n",
    "latex-workshop.latex.tools": [
        {
            "name": "xelatex",
            "command": "xelatex",
            "args": [
                "-synctex=1",
                "-interaction=nonstopmode",
                "-file-line-error",
                "-pdf",
                "-outdir=%OUTDIR%",
                "%DOC%"
            ],
            "env": {}
        },
        {
            "name": "pdflatex",
            "command": "pdflatex",
            "args": [
                "-synctex=1",
                "-interaction=nonstopmode",
                "-file-line-error",
                "%DOC%"
            ],
            "env": {}
        },
        {
            "name": "bibtex",
            "command": "bibtex",
            "args": [
                "%DOCFILE%"
            ],
            "env": {}
        },
    ],
    "latex-workshop.latex.recipes": [
        {
            "name": "xelatex 🔃",
            "tools": [
                "xelatex"
            ]
        },
        {
            "name": "xelatex ➞ bibtex ➞ xelatex × 2",
            "tools": [
                "xelatex",
                "bibtex",
                "xelatex",
                "xelatex"
            ]
        },
        {
            "name": "pdflatex",
            "tools": [
                "pdflatex"
            ]
        }
    ],
    "latex-workshop.view.pdf.external.command": {
        "command": "/usr/local/bin/displayline",
        "args": [
            "0",
            "%PDF%"
        ]
    },
    "latex-workshop.view.pdf.external.synctex": {
        "command": "/usr/local/bin/displayline",
        "args": [
            "-forward-search",
            "%TEX%",
            "%LINE%",
            "%PDF%"
        ]
    },
    // "latex-workshop.latexindent.args": [
    //     "-c",
    //     "%DIR%/",
    //     "%TMPFILE%",
    //     // "-y=\"defaultIndent: '%INDENT%'\"",
    //     "-y=defaultIndent: '%INDENT%'"
    // ],
    "editor.fontFamily": "Consolas, Menlo, Monaco, 'Courier New', monospace",
    "editor.fontSize": 15,
    "git.autofetch": true,
    "git.confirmSync": false,
    "git.enableSmartCommit": true,
    "C_Cpp.updateChannel": "Insiders",
    //"python.pythonPath": "/Users/qingdujun/venv/bin/python"
}
qingdujun commented 5 years ago

@jlelong Should I install other plugins or configurations?

jlelong commented 5 years ago

No other plugging is needed. You can get the logs from the TeX badge (left panel) and then View LaTeX Workshop extension log.

qingdujun commented 5 years ago

No other plugging is needed. You can get the logs from the TeX badge (left panel) and then View LaTeX Workshop extension log.

屏幕快照 2019-04-13 下午2 31 49

View in VSCode tab

OUTPUT,  LaTeX-Workshop

[14:30:31] VIEW command invoked.
[14:30:31] Found root file from active editor: /Users/qingdujun/googol/TeX/NRE/test.tex
[14:30:31] Root file remains unchanged from: /Users/qingdujun/googol/TeX/NRE/test.tex.
[14:30:31] Serving PDF file at http://127.0.0.1:63835/viewer.html?file=/pdf:%25252FUsers%25252Fqingdujun%25252Fgoogol%25252FTeX%25252FNRE%25252Ftest.pdf
[14:30:31] Open PDF tab for /Users/qingdujun/googol/TeX/NRE/test.pdf

View LaTeX Workshop extension log

OUTPUT,  LaTeX-Workshop

[14:33:57] LOG command invoked.
jlelong commented 5 years ago

By the way, this built-in PDF is bad, I am using an external one (via skim).

So do it and forget about the tab viewer and we can close this issue. If my memory serves me right, the built-in PDF viewer is incompatible with the vscode-pdf extension.

qingdujun commented 5 years ago

By the way, this built-in PDF is bad, I am using an external one (via skim).

So do it and forget about the tab viewer and we can close this issue. If my memory serves me right, the built-in PDF viewer is incompatible with the vscode-pdf extension.

emmm, but I found that others can use the build-in view tab?

jlelong commented 5 years ago

It works for everyone and it is almost impossible to debug such problems remotely. Try to disable all other extensions, completely remove LW extension and reinstall it.

qingdujun commented 5 years ago

It works for everyone and it is almost impossible to debug such problems remotely. Try to disable all other extensions, completely remove LW extension and reinstall it.

Thank you for your patience. I have disabled all latex extensions, and how to completely remove LW? I tried to uninstall LaTeX-Workshop and reinstall. But the problem has not been solved.

tamuratak commented 5 years ago

Please do the followings.

  1. Open the command palette.
  2. Enter Developer: Toggle Developer Tools and press enter.
  3. Show us messages in the console.

2018-11-27 20 42 47

2018-11-27 20 43 43

2018-11-27 20 44 45

Thank you for your cooperation.

qingdujun commented 5 years ago

Please do the followings.

  1. Open the command palette.
  2. Enter Developer: Toggle Developer Tools and press enter.
  3. Show us messages in the console.

2018-11-27 20 42 47

2018-11-27 20 43 43

2018-11-27 20 44 45

Thank you for your cooperation.

Hello, I have posted this part of the question, is it what you asked for?

[Extension Host] debugger listening on port 51477
textMateService.ts:52 Overwriting grammar scope name to file mapping for scope source.python.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/python/syntaxes/MagicPython.tmLanguage.json.
New grammar file: file:///Users/qingdujun/.vscode/extensions/tht13.python-0.2.3/syntaxes/python.tmLanguage
register @ textMateService.ts:52
textMateService.ts:52 Overwriting grammar scope name to file mapping for scope source.regexp.python.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/python/syntaxes/MagicRegExp.tmLanguage.json.
New grammar file: file:///Users/qingdujun/.vscode/extensions/tht13.python-0.2.3/syntaxes/Regular%20Expressions%20%28Python%29.tmLanguage
register @ textMateService.ts:52
tamuratak commented 5 years ago

Try View in web browser. Check if it works. Then, please post the console log of the web browser.

スクリーンショット 2019-04-14 7 44 53

qingdujun commented 5 years ago

@tamuratak It's not work.

屏幕快照 2019-04-14 下午5 15 39
tamuratak commented 5 years ago

Try the following.

  1. Compile your TeX file.
  2. Check that the pdf file exists.
  3. Invoke View in VSCode tab command.
  4. View LaTeX Workshop extension log.
  5. From your browser (Chrom, Firefox, ...), access a url http://127.0.0.1:63835/viewer.html?file=... in the log. The port number may be different.
  6. Check if it works.
  7. Post the console log of your browser.

Thank you for your cooperation.

qingdujun commented 5 years ago

@tamuratak

Compile TeX file

[18:31:50] RECIPES command invoked.
[18:31:50] BUILD command invoked.
[18:31:50] Found root file from active editor: /Users/qingdujun/googol/TeX/NRE/test.tex
[18:31:50] Root file remains unchanged from: /Users/qingdujun/googol/TeX/NRE/test.tex.
[18:31:50] Building root file: /Users/qingdujun/googol/TeX/NRE/test.tex
[18:31:50] Build root file /Users/qingdujun/googol/TeX/NRE/test.tex
[18:31:50] Recipe step 1: xelatex, -synctex=1,-interaction=nonstopmode,-file-line-error,-pdf,-outdir=/Users/qingdujun/googol/TeX/NRE,/Users/qingdujun/googol/TeX/NRE/test
[18:31:50] LaTeX build process spawned. PID: 2374.
[18:31:51] LaTeX log parsed with 0 messages.
[18:31:51] Recipe of length 1 finished. PID: 2374.
[18:31:51] Successfully built /Users/qingdujun/googol/TeX/NRE/test.tex.
[18:31:51] No PDF viewer connected for /Users/qingdujun/googol/TeX/NRE/test.pdf
[18:31:51] Cannot find file /Users/qingdujun/googol/TeX/NRE/test.fls

Check the pdf, yes and look at the time is just generated!

屏幕快照 2019-04-14 下午6 33 43

invoke View in VS Code tab

It's now work.

屏幕快照 2019-04-14 下午6 36 22

View LaTeX Workshop extension log

It's not work.

屏幕快照 2019-04-14 下午6 37 30

None, No related logs.

http://127.0.0.1:63835/viewer.html?file=

tamuratak commented 5 years ago

Restart VSCode. Then, try 1-7 as above. Previously, you had a url in the log, https://github.com/James-Yu/LaTeX-Workshop/issues/1299#issuecomment-482781569. You will see a new one.

When you post a log, please post the whole log, not a part of it. That should start with [XX:XX:XX] Initializing LaTeX Workshop.

Thank you for your cooperation.

qingdujun commented 5 years ago

Restart VSCode. Then, try 1-7 as above. Previously, you had a url in the log, #1299 (comment). You will see a new one.

When you post a log, please post the whole log, not a part of it.

Thank you for your cooperation.

Hello,I got some logs. That's whole log, not a part.

[19:13:29] Initializing LaTeX Workshop.
[19:13:29] Creating LaTeX Workshop http and websocket server.
[19:13:29] LaTeX Workshop initialized.
[19:13:29] Found root file from active editor: /Users/qingdujun/googol/TeX/NRE/test.tex
[19:13:30] Root file changed from: undefined. Find all dependencies.
[19:13:30] Instantiating a new file watcher for /Users/qingdujun/googol/TeX/NRE/test.tex
[19:13:30] Parsing /Users/qingdujun/googol/TeX/NRE/test.tex
[19:13:30] Cannot find file /Users/qingdujun/googol/TeX/NRE/test.fls
[19:13:30] Server created on 127.0.0.1:62606
[19:13:30] Snippet data loaded.
[19:13:30] LaTeX Workshop version: 6.4.0
[19:13:39] RECIPES command invoked.
[19:13:39] BUILD command invoked.
[19:13:39] Found root file from active editor: /Users/qingdujun/googol/TeX/NRE/test.tex
[19:13:39] Root file remains unchanged from: /Users/qingdujun/googol/TeX/NRE/test.tex.
[19:13:39] Building root file: /Users/qingdujun/googol/TeX/NRE/test.tex
[19:13:39] Build root file /Users/qingdujun/googol/TeX/NRE/test.tex
[19:13:39] Recipe step 1: xelatex, -synctex=1,-interaction=nonstopmode,-file-line-error,-pdf,-outdir=/Users/qingdujun/googol/TeX/NRE,/Users/qingdujun/googol/TeX/NRE/test
[19:13:39] LaTeX build process spawned. PID: 2519.
[19:13:41] LaTeX log parsed with 0 messages.
[19:13:41] Recipe of length 1 finished. PID: 2519.
[19:13:41] Successfully built /Users/qingdujun/googol/TeX/NRE/test.tex.
[19:13:41] No PDF viewer connected for /Users/qingdujun/googol/TeX/NRE/test.pdf
[19:13:41] Cannot find file /Users/qingdujun/googol/TeX/NRE/test.fls
[19:13:50] VIEW command invoked.
[19:14:02] VIEW command invoked.
[19:14:07] LOG command invoked.

Help > Toggle Developer tools

屏幕快照 2019-04-14 下午7 14 36
[Extension Host] debugger listening on port 21816
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:3343 Couldn't find message for key python.snippet.launch.unitTests.description.
_logMessageInConsole @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:3343
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4342 Overwriting grammar scope name to file mapping for scope source.python.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/python/syntaxes/MagicPython.tmLanguage.json.
New grammar file: file:///Users/qingdujun/.vscode/extensions/tht13.python-0.2.3/syntaxes/python.tmLanguage
register @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4342
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4342 Overwriting grammar scope name to file mapping for scope source.regexp.python.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/python/syntaxes/MagicRegExp.tmLanguage.json.
New grammar file: file:///Users/qingdujun/.vscode/extensions/tht13.python-0.2.3/syntaxes/Regular%20Expressions%20%28Python%29.tmLanguage
register @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4342
qingdujun commented 5 years ago
qingdujundeMacBook-Pro:NRE qingdujun$ pwd
/Users/qingdujun/googol/TeX/NRE
qingdujundeMacBook-Pro:NRE qingdujun$ ls
nre.pdf     nre.tex     test.log    test.synctex.gz
nre.synctex.gz  test.aux    test.pdf    test.tex

http://127.0.0.1:62606/viewer.html?file=/Users/qingdujun/googol/TeX/NRE/test.pdf

屏幕快照 2019-04-14 下午7 24 32

tamuratak commented 5 years ago

The url must be encoded like http://127.0.0.1:62606/viewer.html?file=/pdf:%25252FUsers%25252Fqingdujun%25252Fgoogol%25252FTeX%25252FNRE%25252Ftest.pdf

tamuratak commented 5 years ago

Please remove the directory /Users/qingdujun/.vscode/extensions/ and restart VSCode. And reinstall LaTeX Workshop. Then try 1-7 as above.

Thank you for your cooperation.

qingdujun commented 5 years ago

Please remove the directory /Users/qingdujun/.vscode/extensions/ and restart VSCode. And reinstall LaTeX Workshop. Then try 1-7 as above.

http://127.0.0.1:62606/viewer.html?file=/pdf:%25252FUsers%25252Fqingdujun%25252Fgoogol%25252FTeX%25252FNRE%25252Ftest.pdf

PDF.js v2.0.943 (build: dc98bf76)
信息:Missing PDF "http://127.0.0.1:62606/pdf:%252FUsers%252Fqingdujun%252Fgoogol%252FTeX%252FNRE%252Ftest.pdf".
qingdujun commented 5 years ago
qingdujundeMacBook-Pro:NRE qingdujun$ cd ~
qingdujundeMacBook-Pro:~ qingdujun$ cd .vscode/extensions/
qingdujundeMacBook-Pro:extensions qingdujun$ ls
ajshort.latex-preview-0.5.1     ms-vscode.cpptools-0.22.2-insiders
alanwalk.markdown-toc-1.5.6     sabertazimi.latex-snippets-0.1.1
dougfinke.vscode-pandoc-0.0.8       tht13.python-0.2.3
goessner.mdmath-2.3.9           tomoki1207.pdf-0.5.0
james-yu.latex-workshop-6.4.0       torn4dom4n.latex-support-3.0.1
ms-python.python-2019.3.6558        yzane.markdown-pdf-1.2.0
qingdujundeMacBook-Pro:extensions qingdujun$ rm -rf ./*

reinstall LaTeX-Workshop

屏幕快照 2019-04-14 下午7 33 14

Build LaTeX project > Recipe:xelatex

[19:33:07] Initializing LaTeX Workshop.
[19:33:07] Creating LaTeX Workshop http and websocket server.
[19:33:07] LaTeX Workshop initialized.
[19:33:07] Server created on 127.0.0.1:62985
[19:33:07] Snippet data loaded.
[19:33:07] LaTeX Workshop version: 6.4.0
[19:34:34] RECIPES command invoked.
[19:34:34] BUILD command invoked.
[19:34:34] Found root file from active editor: /Users/qingdujun/googol/TeX/NRE/test.tex
[19:34:34] Root file changed from: undefined. Find all dependencies.
[19:34:34] Instantiating a new file watcher for /Users/qingdujun/googol/TeX/NRE/test.tex
[19:34:34] Parsing /Users/qingdujun/googol/TeX/NRE/test.tex
[19:34:34] Cannot find file /Users/qingdujun/googol/TeX/NRE/test.fls
[19:34:34] Building root file: /Users/qingdujun/googol/TeX/NRE/test.tex
[19:34:34] Build root file /Users/qingdujun/googol/TeX/NRE/test.tex
[19:34:35] Recipe step 1: xelatex, -synctex=1,-interaction=nonstopmode,-file-line-error,-pdf,-outdir=/Users/qingdujun/googol/TeX/NRE,/Users/qingdujun/googol/TeX/NRE/test
[19:34:35] LaTeX build process spawned. PID: 2608.
[19:34:36] LaTeX log parsed with 0 messages.
[19:34:36] Recipe of length 1 finished. PID: 2608.
[19:34:36] Successfully built /Users/qingdujun/googol/TeX/NRE/test.tex.
[19:34:36] No PDF viewer connected for /Users/qingdujun/googol/TeX/NRE/test.pdf
[19:34:36] Cannot find file /Users/qingdujun/googol/TeX/NRE/test.fls

View in VSCode tab

It's not work. And View in web browser not work.

View LaTeX Workshop extension log

None

Toggle Developer tools

Failed to load resource: net::ERR_FILE_NOT_FOUND
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:3264 [Extension Host] debugger listening on port 46110
>

port=62985

But, how to encode this path?

http://127.0.0.1:62985/viewer.html?file=/pdf:%25252FUsers%25252Fqingdujun%25252Fgoogol%25252FTeX%25252FNRE%25252Ftest.pdf

PDF.js v2.0.943 (build: dc98bf76)
信息:Missing PDF "http://127.0.0.1:62985/pdf:%252FUsers%252Fqingdujun%252Fgoogol%252FTeX%252FNRE%252Ftest.pdf".
tamuratak commented 5 years ago

Please click View in VSCode Tab. In the new log, the line VIEW command invoked is not found. You did not invoke that.

jlelong commented 5 years ago

I am note sure the latex-preview extension plays well with LW.

qingdujun commented 5 years ago

Please click View in VSCode Tab. In the new log, the line VIEW command invoked is not found. You did not invoke that.

I have a click. This is the whole logs.

[19:33:07] Initializing LaTeX Workshop.
[19:33:07] Creating LaTeX Workshop http and websocket server.
[19:33:07] LaTeX Workshop initialized.
[19:33:07] Server created on 127.0.0.1:62985
[19:33:07] Snippet data loaded.
[19:33:07] LaTeX Workshop version: 6.4.0
[19:34:34] RECIPES command invoked.
[19:34:34] BUILD command invoked.
[19:34:34] Found root file from active editor: /Users/qingdujun/googol/TeX/NRE/test.tex
[19:34:34] Root file changed from: undefined. Find all dependencies.
[19:34:34] Instantiating a new file watcher for /Users/qingdujun/googol/TeX/NRE/test.tex
[19:34:34] Parsing /Users/qingdujun/googol/TeX/NRE/test.tex
[19:34:34] Cannot find file /Users/qingdujun/googol/TeX/NRE/test.fls
[19:34:34] Building root file: /Users/qingdujun/googol/TeX/NRE/test.tex
[19:34:34] Build root file /Users/qingdujun/googol/TeX/NRE/test.tex
[19:34:35] Recipe step 1: xelatex, -synctex=1,-interaction=nonstopmode,-file-line-error,-pdf,-outdir=/Users/qingdujun/googol/TeX/NRE,/Users/qingdujun/googol/TeX/NRE/test
[19:34:35] LaTeX build process spawned. PID: 2608.
[19:34:36] LaTeX log parsed with 0 messages.
[19:34:36] Recipe of length 1 finished. PID: 2608.
[19:34:36] Successfully built /Users/qingdujun/googol/TeX/NRE/test.tex.
[19:34:36] No PDF viewer connected for /Users/qingdujun/googol/TeX/NRE/test.pdf
[19:34:36] Cannot find file /Users/qingdujun/googol/TeX/NRE/test.fls
[19:35:34] VIEW command invoked.
[19:35:36] VIEW command invoked.
[19:35:40] VIEW command invoked.
[19:36:06] VIEW command invoked.
[19:36:06] VIEW command invoked.
[19:36:50] LOG command invoked.
[19:38:16] Error reading PDF file: %2FUsers%2Fqingdujun%2Fgoogol%2FTeX%2FNRE%2Ftest.pdf
qingdujun commented 5 years ago

I am note sure the latex-preview extension plays well with LW.

I have removed LaTeX-preview(rm -rf .vscode/extensions/*), and reinstall LaTeX-Workshop. It is an old plugin, last updated two years ago.

tamuratak commented 5 years ago

Remove your settings.json, /Users/qingdujun/Library/Application\ Support/Code/User/settings.json. Then try 1-7 as above.

Thank you for your cooperation.

qingdujun commented 5 years ago

Remove your settings.json, /Users/qingdujun/Library/Application\ Support/Code/User/settings.json. Then try 1-7 as above.

Thank you for your cooperation.

remove setting.json

qingdujundeMacBook-Pro:extensions qingdujun$ cd ~
qingdujundeMacBook-Pro:~ qingdujun$ cd Library/Application\ Support/Code/User/
qingdujundeMacBook-Pro:User qingdujun$ ls
globalStorage       settings.json       workspaceStorage
locale.json     snippets
qingdujundeMacBook-Pro:User qingdujun$ cat locale.json 
{
    // Defines VS Code's display language.
    // See https://go.microsoft.com/fwlink/?LinkId=761051 for a list of supported languages.

    "locale":"en" // Changes will not take effect until VS Code has been restarted.
}qingdujundeMacBook-Pro:User qingdujun$ 
qingdujundeMacBook-Pro:User qingdujun$ rm settings.json 
qingdujundeMacBook-Pro:User qingdujun$ 

logs

[20:19:53] Initializing LaTeX Workshop.
[20:19:53] Creating LaTeX Workshop http and websocket server.
[20:19:53] LaTeX Workshop initialized.
[20:19:53] Found root file from active editor: /Users/qingdujun/googol/TeX/NRE/test.tex
[20:19:53] Root file changed from: undefined. Find all dependencies.
[20:19:53] Instantiating a new file watcher for /Users/qingdujun/googol/TeX/NRE/test.tex
[20:19:53] Parsing /Users/qingdujun/googol/TeX/NRE/test.tex
[20:19:53] Parsing /Users/qingdujun/googol/TeX/NRE/test.fls to compute dependencies
[20:19:53] Parsing /Users/qingdujun/googol/TeX/NRE/test.tex
[20:19:53] Server created on 127.0.0.1:64078
[20:19:53] Snippet data loaded.
[20:19:53] LaTeX Workshop version: 6.4.0
[20:20:04] BUILD command invoked.
[20:20:04] Found root file from active editor: /Users/qingdujun/googol/TeX/NRE/test.tex
[20:20:04] Root file remains unchanged from: /Users/qingdujun/googol/TeX/NRE/test.tex.
[20:20:04] Building root file: /Users/qingdujun/googol/TeX/NRE/test.tex
[20:20:04] Build root file /Users/qingdujun/googol/TeX/NRE/test.tex
[20:20:04] Recipe step 1: latexmk, -synctex=1,-interaction=nonstopmode,-file-line-error,-pdf,-outdir=/Users/qingdujun/googol/TeX/NRE,/Users/qingdujun/googol/TeX/NRE/test
[20:20:04] LaTeX build process spawned. PID: 2792.
[20:20:04] Recipe of length 1 finished. PID: 2792.
[20:20:04] Successfully built /Users/qingdujun/googol/TeX/NRE/test.tex.
[20:20:15] VIEW command invoked.
[20:20:15] Found root file from active editor: /Users/qingdujun/googol/TeX/NRE/test.tex
[20:20:15] Root file remains unchanged from: /Users/qingdujun/googol/TeX/NRE/test.tex.
[20:20:15] Serving PDF file at http://127.0.0.1:64078/viewer.html?file=/pdf:%25252FUsers%25252Fqingdujun%25252Fgoogol%25252FTeX%25252FNRE%25252Ftest.pdf
[20:20:15] Open PDF tab for /Users/qingdujun/googol/TeX/NRE/test.pdf
[20:20:47] LOG command invoked.
屏幕快照 2019-04-14 下午8 21 11

Toggle Developer tools

[Extension Host] debugger listening on port 13287
>

port = 64078

http://127.0.0.1:64078/viewer.html?file=/pdf:%25252FUsers%25252Fqingdujun%25252Fgoogol%25252FTeX%25252FNRE%25252Ftest.pdf

PDF.js v2.0.943 (build: dc98bf76)
信息:Missing PDF "http://127.0.0.1:64078/pdf:%252FUsers%252Fqingdujun%252Fgoogol%252FTeX%252FNRE%252Ftest.pdf".
tamuratak commented 5 years ago

Now, the log of LaTeX Workshop seems normal. Please post the console log of your browser when accessing the url of pdf. On the devtools of Chrome, please refer to https://developers.google.com/web/tools/chrome-devtools/

qingdujun commented 5 years ago

Now, the log of LaTeX Workshop seems normal. Please post the console log of your browser when accessing the url of pdf. On the devtools of Chrome, please refer to https://developers.google.com/web/tools/chrome-devtools/

url = http://127.0.0.1:64078/viewer.html?file=/pdf:%25252FUsers%25252Fqingdujun%25252Fgoogol%25252FTeX%25252FNRE%25252Ftest.pdf

Chrome (cmd+opt+I, macOS)

Console

Failed to load resource: the server responded with a status of 404 (Not Found)
viewer.js:985 Uncaught (in promise) Error: 缺少 PDF 文件。
    at viewer.js:985
3viewer.html:1 Unchecked runtime.lastError: The message port closed before a response was received.
>

屏幕快照 2019-04-14 下午8 36 54

qingdujundeMacBook-Pro:NRE qingdujun$ ls
nre.pdf         test.fdb_latexmk    test.synctex.gz
nre.synctex.gz      test.fls        test.tex
nre.tex         test.log
test.aux        test.pdf
qingdujundeMacBook-Pro:NRE qingdujun$ pwd
/Users/qingdujun/googol/TeX/NRE
tamuratak commented 5 years ago

When accessing the url with your browser, do not copy and paste. It does not work. Please click View in web browser.

qingdujun commented 5 years ago

View in web browser is work now, but View in VSCode tab does not work.

屏幕快照 2019-04-14 下午8 51 03

[20:48:34] Initializing LaTeX Workshop.
[20:48:34] Creating LaTeX Workshop http and websocket server.
[20:48:34] LaTeX Workshop initialized.
[20:48:34] Server created on 127.0.0.1:51852
[20:48:34] Snippet data loaded.
[20:48:35] LaTeX Workshop version: 6.4.0
[20:48:40] BUILD command invoked.
[20:48:45] VIEW command invoked.
[20:48:51] VIEW command invoked.
[20:48:51] Found root file from active editor: /Users/qingdujun/googol/TeX/NRE/test.tex
[20:48:51] Root file changed from: undefined. Find all dependencies.
[20:48:51] Instantiating a new file watcher for /Users/qingdujun/googol/TeX/NRE/test.tex
[20:48:51] Parsing /Users/qingdujun/googol/TeX/NRE/test.tex
[20:48:51] Parsing /Users/qingdujun/googol/TeX/NRE/test.fls to compute dependencies
[20:48:51] Parsing /Users/qingdujun/googol/TeX/NRE/test.tex
[20:48:51] Serving PDF file at http://127.0.0.1:51852/viewer.html?file=/pdf:%25252FUsers%25252Fqingdujun%25252Fgoogol%25252FTeX%25252FNRE%25252Ftest.pdf
[20:48:51] Open PDF tab for /Users/qingdujun/googol/TeX/NRE/test.pdf
[20:49:02] VIEW command invoked.
[20:49:02] Found root file from active editor: /Users/qingdujun/googol/TeX/NRE/test.tex
[20:49:02] Root file remains unchanged from: /Users/qingdujun/googol/TeX/NRE/test.tex.
[20:49:02] Serving PDF file at http://127.0.0.1:51852/viewer.html?file=/pdf:%25252FUsers%25252Fqingdujun%25252Fgoogol%25252FTeX%25252FNRE%25252Ftest.pdf
[20:49:02] Open PDF viewer for /Users/qingdujun/googol/TeX/NRE/test.pdf
[20:49:03] Preview PDF file: /Users/qingdujun/googol/TeX/NRE/test.pdf
[20:49:46] VIEW command invoked.
[20:49:46] Found root file from active editor: /Users/qingdujun/googol/TeX/NRE/test.tex
[20:49:46] Root file remains unchanged from: /Users/qingdujun/googol/TeX/NRE/test.tex.
[20:49:46] Serving PDF file at http://127.0.0.1:51852/viewer.html?file=/pdf:%25252FUsers%25252Fqingdujun%25252Fgoogol%25252FTeX%25252FNRE%25252Ftest.pdf
[20:49:46] Open PDF tab for /Users/qingdujun/googol/TeX/NRE/test.pdf
[20:50:00] LOG command invoked.
[20:50:08] VIEW command invoked.
[20:50:10] VIEW command invoked.
[20:50:11] VIEW command invoked.
[20:50:11] VIEW command invoked.
tamuratak commented 5 years ago

Please uninstall VSCode and remove the directory /Users/qingdujun/Library/Application\ Support/Code. Then, reintall VSCode and try 1-7 as above.

Thank you for your cooperation.

qingdujun commented 5 years ago

Please uninstall VSCode and remove the directory /Users/qingdujun/Library/Application\ Support/Code. Then, reintall VSCode and try 1-7 as above.

Thank you for your cooperation.

Step1 : remove VSCode and Code/

qingdujundeMacBook-Pro:Applications qingdujun$ pwd
/Applications
qingdujundeMacBook-Pro:Applications qingdujun$ rm -rf Visual\ Studio\ Code.app/
qingdujundeMacBook-Pro:~ qingdujun$ cd Library/Application\ Support/
qingdujundeMacBook-Pro:Application Support qingdujun$ ls
AddressBook             Sogou
Adobe                   StarUML
App Store               SyncServices
Automator               TeamViewer
CEF                 Thunder
CallHistoryDB               accountsd
CallHistoryTransactions         com.apple.ProtectedCloudStorage
CloudDocs               com.apple.TCC
Code                    com.apple.backgroundtaskmanagementagent
CrashReporter               com.apple.sbd
DiskImages              com.apple.sharedfilelist
Dock                    com.apple.spotlight
Google                  com.apple.spotlight.Shortcuts
Knowledge               com.apple.touristd
Microsoft               com.baidu.BaiduNetdisk-mac
Microsoft AU Daemon         com.mathpix.snipping-tool-noappstore
Movist                  com.tencent.rqd
Oracle                  iCloud
Quick Look              icdd
ShadowsocksX-NG             videosubscriptionsd
qingdujundeMacBook-Pro:Application Support qingdujun$ rm -rf Code/
qingdujundeMacBook-Pro:Application Support qingdujun$ 

Step2: reinstall VSCode

https://code.visualstudio.com/

Then,

Sad, all don't work.

[21:25:14] Initializing LaTeX Workshop.
[21:25:14] Creating LaTeX Workshop http and websocket server.
[21:25:14] LaTeX Workshop initialized.
[21:25:14] Found root file from active editor: /Users/qingdujun/googol/TeX/NRE/test.tex
[21:25:15] Root file changed from: undefined. Find all dependencies.
[21:25:15] Instantiating a new file watcher for /Users/qingdujun/googol/TeX/NRE/test.tex
[21:25:15] Parsing /Users/qingdujun/googol/TeX/NRE/test.tex
[21:25:15] Parsing /Users/qingdujun/googol/TeX/NRE/test.fls to compute dependencies
[21:25:15] Parsing /Users/qingdujun/googol/TeX/NRE/test.tex
[21:25:15] Server created on 127.0.0.1:56649
[21:25:15] Snippet data loaded.
[21:25:15] LaTeX Workshop version: 6.4.0
[21:25:21] BUILD command invoked.
[21:25:21] Found root file from active editor: /Users/qingdujun/googol/TeX/NRE/test.tex
[21:25:21] Root file remains unchanged from: /Users/qingdujun/googol/TeX/NRE/test.tex.
[21:25:21] Building root file: /Users/qingdujun/googol/TeX/NRE/test.tex
[21:25:21] Build root file /Users/qingdujun/googol/TeX/NRE/test.tex
[21:25:21] Recipe step 1: latexmk, -synctex=1,-interaction=nonstopmode,-file-line-error,-pdf,-outdir=/Users/qingdujun/googol/TeX/NRE,/Users/qingdujun/googol/TeX/NRE/test
[21:25:21] LaTeX build process spawned. PID: 3111.
[21:25:21] Recipe of length 1 finished. PID: 3111.
[21:25:21] Successfully built /Users/qingdujun/googol/TeX/NRE/test.tex.
[21:25:38] VIEW command invoked.
[21:25:43] VIEW command invoked.
[21:25:45] VIEW command invoked.
[21:25:50] LOG command invoked.
qingdujun commented 5 years ago

I can not see Serving PDF file at http://127.0.0.1:port/viewer.html?file=/pdf... in logs.

tamuratak commented 4 years ago

If any progress, please open a new issue.