Overleaf-Workshop icon indicating copy to clipboard operation
Overleaf-Workshop copied to clipboard

Errors do not show up in problems (VS code) window

Open kumaarajesh opened this issue 1 year ago • 10 comments

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".

...

kumaarajesh avatar Sep 26 '24 15:09 kumaarajesh

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.

QianrenLi avatar Sep 27 '24 04:09 QianrenLi

Screenshot 2024-09-27 at 8 51 59 AM

Please check, I removed the closing bracket in line 208. It does not compile and does not show an error.

kumaarajesh avatar Sep 27 '24 12:09 kumaarajesh

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? image

QianrenLi avatar Sep 29 '24 09:09 QianrenLi

Thanks, I tried the minimal example you provided and it is working fine.

kumaarajesh avatar Sep 30 '24 02:09 kumaarajesh

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)?

hidetokoizumi avatar Dec 11 '24 08:12 hidetokoizumi

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?

QianrenLi avatar Dec 11 '24 09:12 QianrenLi

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.

hidetokoizumi avatar Dec 26 '24 04:12 hidetokoizumi

I'm also seeing the exact same behavior, output.log is empty with errors in the Extension Developer Logs exthost.log

AlexB8675 avatar Dec 26 '24 20:12 AlexB8675

@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)

QianrenLi avatar Jan 10 '25 11:01 QianrenLi

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)

luziyi avatar Jan 26 '25 02:01 luziyi