Thanks for these ideas and will try these. As far as #4, what is ‘SSCCE’ – sorry in advance for the not recognizing (ha ha).
Buddy Kresge buddy.kresge@known2u.commailto:buddy.kresge@known2u.com o: 860-800-6677 ext: 501 c: 860-986-4830
From: Christian Grün christian.gruen@gmail.com Sent: Wednesday, August 21, 2019 12:19 AM To: Buddy Kresge buddy.kresge@known2u.com Cc: BaseX basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] BaseX GUI just spins?
Hi Buddy,
Some questions in return:
1. What happens if you run the same query on command line? 2. As $foo will never be referenced in your query: What happens if you replace "let $foo := error(...)" by "error(...)," ? 3. What happens if you use prof:dump(...) instead of error( ..)? 4. As there are various factors that cannot be derived from the query snippet (type and size of processed data, other parts of your code that influence how your query will be compiled, …): Could your provide us with an SSCCE?
Thanks in advance, Christian
Buddy Kresge <buddy.kresge@known2u.commailto:buddy.kresge@known2u.com> schrieb am Mi., 21. Aug. 2019, 00:05: 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.commailto: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.demailto: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