XojoScript "CompileError" Bug? 2021r3.1

Windows 10 System -

Is anyone else having issues with creating handlers for XojoScript’s CompileError event in the new API? Figured I would check with community before placing a bug report. One of my old projects works fine - assuming it’s still using API 1.0 framework under-the-hood in the latest Xojo, but if I create an entirely new XojoScript control and attempt what has always worked, I’m getting signature/type mismatch issues, but the signatures & types do match… has something changed? I’m assuming it’s broken in the current Xojo version?

For Example:

AddHandler XDJ.CompilerError, Addressof CompilerError

is tied to method…

Public Sub CompilerError(sender as XojoScript, location as XojoScriptLocation, error as XojoScript.Errors, errorInfo as Dictionary)
  
End Sub

Can anyone confirm this for Windows / other platforms?

it’s expecting you to return a boolean… not to be a Sub.

Public Function CompilerError(sender as XojoScript, location as XojoScriptLocation, error as XojoScript.Errors, errorInfo as Dictionary) As Boolean
  
End Sub

it could be that xojo added this later.

@Matthew_Combatti time to take a coffee break… :sunglasses:

Bwahah - No joke - It really is time for coffee :slight_smile: Thanks for setting me straight Derk!!! Totally over-looked the return type altogether.

Go Teamwork! :smiley:

1 Like

Yeah these kind of things happen all the time in coding…

Forum for Xojo Programming Language and IDE. Copyright © 2021 Xojo, Inc.