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

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

Open
kumaarajesh opened this issue Sep 26, 2024 · 10 comments
Open

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

kumaarajesh opened this issue Sep 26, 2024 · 10 comments
Assignees
Labels
bug Something isn't working

Comments

@kumaarajesh
Copy link

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 kumaarajesh added the bug Something isn't working label Sep 26, 2024
@QianrenLi
Copy link
Collaborator

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.

@kumaarajesh
Copy link
Author

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.

@QianrenLi
Copy link
Collaborator

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

@kumaarajesh
Copy link
Author

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

@hidetokoizumi
Copy link

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

@QianrenLi
Copy link
Collaborator

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?

@hidetokoizumi
Copy link

hidetokoizumi commented Dec 26, 2024

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.

@AlexB8675
Copy link

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

@QianrenLi
Copy link
Collaborator

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

@luziyi
Copy link

luziyi commented Jan 26, 2025

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants