question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

parser errors in editor for advanced function types

See original GitHub issue

This 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:open
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
EricBishtoncommented, Mar 16, 2017

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

1reaction
as3boyancommented, Mar 16, 2017

BTW, nested function types https://github.com/HaxeFoundation/intellij-haxe/pull/294 I can’t remember how this works, but maybe that could help

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found