parser errors in editor for advanced function types
See original GitHub issueThis issue is for valid Haxe code that compiles but gets red lines in the editor. The advanced function types are ones that start with optional parameters, and functions that pass functions. Code examples:
var a:?Int->Void; // '(', ID, or '{' expected, got '?'
var f:Int->(Int->Void)->Void; // <type or anonymous> or '?' expected, got '('
Plugin version: Version: 0.10.1.1 for IDEA 2016.1 through 2016.3.2 IDEA version: IntelliJ IDEA 2016.3.3 - Build #IU-163.11103.6, built on January 16, 2017 (IDEA JRE: 1.8.0_112-release-408-b6 x86) (IDEA JVM: OpenJDK Server VM by JetBrains s.r.o) OS and OS version: Windows 7 Ultimate SP1 JDK version: 1.8.0_45-b15
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Parser.Advanced - parser 1.1.0 - Elm Packages
An advanced Parser gives two ways to improve your error messages: problem — Instead of all errors being a String , you can...
Read more >Callbacks and Error Handling - Actipro WPF Controls Docs
We've now seen how both terminals and non-terminals are capable of reporting parse errors that can be displayed in the user interface. In...
Read more >Formula Parse Errors In Google Sheets And How To Fix Them
This formula parse error typically occurs when your formula is expecting a certain data type as an input but receives the wrong type,...
Read more >How to Fix "Parse Error: Syntax Error Unexpected" in WordPress
A syntax error tells you that something is wrong with your code. Luckily, we have some tips that can help you prevent these...
Read more >PHP parse/syntax errors; and how to solve them
You can freely add newlines between operators or constants and strings. The parser will then concretize the line number for parsing errors. Instead...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@as3boyan Thanks for the reminder. I had forgotten about that.
I found the exact same issue again (incorrectly built nested function types), and spent a few days trying to fix them. I need to move on at the moment, but I’ll definitely be coming back to the issue.
BTW, nested function types https://github.com/HaxeFoundation/intellij-haxe/pull/294 I can’t remember how this works, but maybe that could help