Any thoughts/feedback on this?  This just happened again, where I simply put in a statement to break after a line of execution, and everything just spins in BaseX GUI.  I take it out, and it runs find.  It is making debugging virtually impossible when these situations happen and I have no idea why this would be happening (meaning, if I’m doing something wrong – but I do not believe I am).

 

Buddy Kresge

buddy.kresge@known2u.com

o: 860-800-6677  ext: 501

c: 860-986-4830

 

From: Buddy Kresge
Sent: Monday, August 19, 2019 8:15 AM
To: BaseX <basex-talk@mailman.uni-konstanz.de>
Subject: BaseX GUI just spins?

 

I have a situation that I don’t know if others are experiencing – but it has happened quite a bit over the last week with 9.2.4

 

I have the below function.

 

declare function base:employeeIdMostRecentInstancesBetweenMap ($rangeBeginDate as xs:date, $rangeEndDate as xs:date, $employee as element()?, $query as function(xs:date, xs:date, item()*) as item()*) as map(xs:string, item()*)

{

let $allInstances := $query($rangeBeginDate, $rangeEndDate, $employee )

let $resultsMap := base:instancesBetweenMap($allInstances, $rangeBeginDate, $rangeEndDate)                   

return

    $resultsMap

};

 

I then wanted to  put in a statement that would throw an error and return some information so that I could debug a situation.  Basically I just added one statement to throw the error.  Now when I run, BaseX Gui just spins and spins and spins.  No value is returned.  Never gets to this statement.  I take out the let statement and it all works again. 

 

declare function base:employeeIdMostRecentInstancesBetweenMap ($rangeBeginDate as xs:date, $rangeEndDate as xs:date, $employee as element()?, $query as function(xs:date, xs:date, item()*) as item()*) as map(xs:string, item()*)

{

let $foo := error(xs:QName("err"), concat("val: ", "here – this is where I would put the info I wanted to display."  ))

let $allInstances := $query($rangeBeginDate, $rangeEndDate, $employee )

let $resultsMap := base:instancesBetweenMap($allInstances, $rangeBeginDate, $rangeEndDate)                   

return

    $resultsMap

};

 

Any insights you can provide would be greatly appreciated.

 

Buddy