Errors do not show up in problems (VS code) window
Describe the bug
I downloaded the extension and logged in using the cookie method. Everything is working fine. Then I tested the error handling by manually changing the syntax for example I deleted \end{itemize}. The compiler did not compile i.e. pdf latex turned red at the bottom but I could not see any related error in the error window. This makes it hard to debug. The editor also does not show colored errors.
Expected behavior
It should show the errors in the errors box and should be separated from the warning. Also, the editor should show the line number using color or underline.
How To Reproduce
Just try breaking the code and see if it reports the right error.
Environment
- Overleaf Workshop Extension version: v0.13.2
- VS Code version: Version: 1.93.1
- Overleaf Edition: Free plan
[Optional] Developer Logs
If applicable, please paste the logs inside the details section below. Please find the logs via: Title bar "Help" > "Toggle Developer Tools" > "Console".
Hi @kumaarajesh, please add the necessary logs and screenshots to help locate the issue. Also, make sure to check the first line of the document, as Overleaf sometimes reports errors without specifying a line number, which will default to the first line of the document.
Please check, I removed the closing bracket in line 208. It does not compile and does not show an error.
Hi @kumaarajesh, thank you for your response! Following your example, I created a minimal test case, as demonstrated in this test_case.zip file, where the error is correctly reported. If possible, could you provide a minimal test case to help reproduce and diagnose the issue?
Thanks, I tried the minimal example you provided and it is working fine.
I had the same issue as kumaarajesh with very similar settings, and the minimal example test case.zip above works perfectly fine (the problems pane works) like kumaaarajesh. Then, it must be my and his project specific problem, but still, there must be some configuration or other issues attached to Overleaf Workshop since the error pane on Overleaf browser works fine. But configuration is default setting in my case, except that I changed the word wrap setting from off (default) to wordwrapcolumn in VS code.
is there any issue similar to this (https://github.com/James-Yu/LaTeX-Workshop/issues/852?utm_source=chatgpt.com)?
Hi @hidetokoizumi, thank you for the update! I believe this issue might be related to the provided link and could involve the regex. Could you please share the Developer Logs and the ./output/output.log file to assist in investigating the issue further?
Hi @QianrenLi sorry for being late in responding to your question. Inserting "XXX" into my repo folder name for the legibility, the Developer Logs display
WARN Ignoring the error while validating workspace folder overleaf-workshop://www.overleaf.com/XXX?user%YYY- ENOPRO: No file system provider found for resource 'overleaf-workshop://www.overleaf.com/XXX?user%YYY
which may be coming from ENONENT error I keep getting:
2024-12-26 12:48:34.447 [warning] [Model][traverseWorkspaceFolder] Unable to read workspace folder '/XXX': Error: ENOENT: no such file or directory, scandir '/XXX'
2024-12-26 12:48:34.447 [warning] [Model][getRepositoryExact] Failed to get repository realpath for: "/XXX". Error:Error: ENOENT: no such file or directory, realpath '/XXX'
2024-12-26 12:48:34.449 [info] [Model][doInitialScan] Initial repository scan completed - repositories (0), closed repositories (0), parent repositories (0), unsafe repositories (0)
2024-12-26 12:48:39.337 [warning] [Model][getRepositoryExact] Failed to get repository realpath for: "/XXX". Error:Error: ENOENT: no such file or directory, realpath '/XXX'
2024-12-26 12:48:39.455 [warning] [Model][getRepositoryExact] Failed to get repository realpath for: "/XXX". Error:Error: ENOENT: no such file or directory, realpath '/XXX'
the output.log is empty by the way.
I'm also seeing the exact same behavior, output.log is empty with errors in the Extension Developer Logs
exthost.log
@hidetokoizumi @AlexB8675 Thank you for providing the log. It appears that the compilation process has not been completed, and as a result, no 'output.log' file has been generated. This naturally means there is no error information available since the file empty.
Does this problem persist if the compilation completes? (i.e., when the 'output.log' is not empty)
Same problem 2025-01-26 10:45:07.181 [error] [iamhyc.overleaf-workshop] provider FAILED 2025-01-26 10:45:07.181 [error] TypeError: Cannot read properties of undefined (reading 'code') at MisspellingCheckProvider.provideCodeActions (c:\Users\TommyGong.vscode\extensions\iamhyc.overleaf-workshop-0.15.0\out\intellisense\langMisspellingCheckProvider.js:102:61)