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

Transpiler fails silently on C++ syntax error in patch, must restart app to continue #2135

Open
crashkopf opened this issue Dec 20, 2023 · 0 comments

Comments

@crashkopf
Copy link

Environment

  • Scope: desktop IDE
  • Version: 038.0
  • OS: Windows 10
  • Machine: N/A

Steps to reproduce

faulty.zip
Open the attached project, open the "deploy-me" patch. Try to deploy the project.

Expected behavior

An error message should appear in the compiler log.

Actual behavior

Depending on how you try to deploy, you might get no error at all. If you were trying to upload to an Arduino, the upload dialog now has the message "Another deployment job is in progress", and the Upload button is inactive. If you try to simulate you get a red error pop-up that ends with the message, "The error has no formatter, which is a bug. Report the issue to XOD developers."

Console output

The relevant portion of the error output is: Uncaught Error: Syntax error at line X col Y: } ^ Unexpected rParen token: "}"."

How to fix

Sounds like the parser exception-handling code in the transpiler needs some love, but also, the reason for the syntax error in the patch is the automatic addition of the matching brace by the code editor, a feature which doesn't seem to have an off switch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant