You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there are syntax errors in the code, such as unclosed parentheses () or curly braces {}, some function names do not get auto-completed. This can be quite inconvenient during the coding process as it slows down the development workflow. It would be great if the auto-completion feature could still work properly even in the presence of such syntax errors or at least provide a warning or indication that the syntax error might be affecting the auto-completion.
Steps to Reproduce:
Start a mission where some functions are imported from other modules (e.g. consecutively from sound).
Start typing a function name in the code editor.
Introduce a syntax error by intentionally leaving a parenthesis or curly brace unclosed.
Observe that the function name auto-completion does not work.
The text was updated successfully, but these errors were encountered:
if the auto-completion feature could still work properly even in the presence of such syntax errors or at least provide a warning or indication that the syntax error might be affecting the auto-completion
Since it's a syntax error, the program cannot be parsed properly, thus there is no way to generate the autocompletion symbols for the (syntactically incorrect) program.
Perhaps what we can do is:
If there's a syntax error, the auto-completion should use the most recent valid program (most recent version of the program that is free of syntax errors, and thus, parseable).
But this comes at a downside which is people might not know why the autocomplete is not working with newly added symbols. But I think it's fine.
Nice ideas and options. Let's see if we can define a CP3108 project along these lines. I feel that we need to properly define the problem before we look for a solution.
When there are syntax errors in the code, such as unclosed parentheses () or curly braces {}, some function names do not get auto-completed. This can be quite inconvenient during the coding process as it slows down the development workflow. It would be great if the auto-completion feature could still work properly even in the presence of such syntax errors or at least provide a warning or indication that the syntax error might be affecting the auto-completion.
Steps to Reproduce:
Start a mission where some functions are imported from other modules (e.g. consecutively from sound).
Start typing a function name in the code editor.
Introduce a syntax error by intentionally leaving a parenthesis or curly brace unclosed.
Observe that the function name auto-completion does not work.
The text was updated successfully, but these errors were encountered: