Jump to content


Photo

Valid search syntax fails with errors


  • Please log in to reply
5 replies to this topic

#1 דָנִיאֶל

דָנִיאֶל

    Ruby

  • Super Member
  • PipPipPipPipPipPipPip
  • 5,545 posts
  • Gender:Male
  • Accordance Version:12.x
  • Platforms:Mac OS X, Windows, Android

Posted 03 October 2013 - 09:46 PM

Hi ya,

 

  I was working on a simple search for my flashcard tool on windows. I entered a very simple search which is valid on Mac. The search string is this :

 

  [count 1-50] < AND> [range john]

 

  When run with the search mode set to Words I get this error :


Attached File  WordsCtx.JPG   14.09KB   55 downloads

 

  When run in Verse mode I get :

 

Attached File  VersesCtx.JPG   9.89KB   49 downloads

 

  Running in either mode on the Mac works just fine as auto context flips verses to words and words is happy with it.

 

  Running this instead works fine in either mode :

 

  [range john] <AND> [count 1-50]

 

  So it really seems to be related to the order of the predicates.

 

Thx

D


Edited by Daniel Semler, 03 October 2013 - 09:55 PM.

Sola lingua bona est lingua mortua
ἡ μόνη ἀγαθὴ γλῶσσα γλῶσσα νεκρὰ ἐστιν
lišanu ēdēnitu damqitu lišanu mītu

"Du stammst vom Herrn Adam und der Herrin Eva ab", sagte Aslan. "Und das ist zugleich Ehre genug, um das Häupt des ärmsten Bettlers zu erheben, und genug, um die Schultern des größten Kaisers auf Erden zu beugen. Sei zufrieden." Aslan, Die Chroniken von Narnia, Prinz Kaspian von Narnia. CS Lewis. Übersetzt von Wolfgang Holbein und Christian Rendel.

Accordance Syntax Search For Wallace's Greek Grammar Beyond the Basics : https://github.com/4...WallaceInSyntax

 

Accordance Crib Sheets: http://47rooks.com/l...ch-crib-sheets/

 

 

Accordance Configurations :

Mac : 2009 27" iMac
12GB RAM

Windows : MSI GE72 7RE Apache Pro laptop
Intel Core Duo Intel i7 Kabylake

Android : Samsung Note III 5.0, Samsung Tab S3 7.0 and Lenovo TAB4 8" 7.1


#2 Anon

Anon

    Platinum

  • Validating
  • PipPipPipPipPip
  • 658 posts
  • Gender:Not Telling
  • Accordance Version:10.x
  • Platforms:None

Posted 03 October 2013 - 10:14 PM

**This isn't a response to the question/report, but there is a typo in the warning. It should read, "…it represents a word…" not "…it represents an word…"***



#3 דָנִיאֶל

דָנִיאֶל

    Ruby

  • Super Member
  • PipPipPipPipPipPipPip
  • 5,545 posts
  • Gender:Male
  • Accordance Version:12.x
  • Platforms:Mac OS X, Windows, Android

Posted 03 October 2013 - 10:17 PM

Nice one - I would usually notice such a thing but not this time. Thx James.


Sola lingua bona est lingua mortua
ἡ μόνη ἀγαθὴ γλῶσσα γλῶσσα νεκρὰ ἐστιν
lišanu ēdēnitu damqitu lišanu mītu

"Du stammst vom Herrn Adam und der Herrin Eva ab", sagte Aslan. "Und das ist zugleich Ehre genug, um das Häupt des ärmsten Bettlers zu erheben, und genug, um die Schultern des größten Kaisers auf Erden zu beugen. Sei zufrieden." Aslan, Die Chroniken von Narnia, Prinz Kaspian von Narnia. CS Lewis. Übersetzt von Wolfgang Holbein und Christian Rendel.

Accordance Syntax Search For Wallace's Greek Grammar Beyond the Basics : https://github.com/4...WallaceInSyntax

 

Accordance Crib Sheets: http://47rooks.com/l...ch-crib-sheets/

 

 

Accordance Configurations :

Mac : 2009 27" iMac
12GB RAM

Windows : MSI GE72 7RE Apache Pro laptop
Intel Core Duo Intel i7 Kabylake

Android : Samsung Note III 5.0, Samsung Tab S3 7.0 and Lenovo TAB4 8" 7.1


#4 Anon

Anon

    Platinum

  • Validating
  • PipPipPipPipPip
  • 658 posts
  • Gender:Not Telling
  • Accordance Version:10.x
  • Platforms:None

Posted 03 October 2013 - 10:24 PM

Details are my forte.



#5 Joel Brown

Joel Brown

    Administrator

  • Admin
  • 5,692 posts
  • Gender:Male
  • Location:Houston, TX
  • Accordance Version:12.x
  • Platforms:Mac OS X, Windows

Posted 05 October 2013 - 08:53 PM

Daniel, I'm having trouble reproducing this.  The search [COUNT 1-50] <AND> [RANGE john] works just fine on my Windows.  Are you typing the search in by hand, or using the command keys (Shift-Control-U, Shift-Control-A, Shift-Control-R)?  Also, I noticed in your first example you had a space between the '<' and the 'A', was this the case in your search as well?


Joel Brown

By day: Lead Software Engineer at Accordance
By night: Freelance Trombonist


#6 דָנִיאֶל

דָנִיאֶל

    Ruby

  • Super Member
  • PipPipPipPipPipPipPip
  • 5,545 posts
  • Gender:Male
  • Accordance Version:12.x
  • Platforms:Mac OS X, Windows, Android

Posted 05 October 2013 - 09:15 PM

In the first case it has a space and yes that seems to be the problem. I am not sure how it got there exactly.

It was not typed in - it was programmatically inserted by a GUI macro programming language. I then used the same string manually - probably by c & p.

You are correct though that removing the space sorts it out. I've gone back to my script and its inserting the right thing now so I have now idea how it happened at this point.

Thanx for clearing that one up.

 

Actually I think I know how it happened and I must have corrected it to the range first form and at the same time removed a typo.

Sorry - false alarm on that front.

 

The error however doesn't highlight the space issue, but rather the 1-50] is highlighted and the message doesn't mention the < and> at all. So perhaps there is a case to improve the error reporting. I re-read the error message text and I'm not exactly sure how I should understand it in this context with the 1-50] being highlighted : "The command "%@" must be surrounded by the characters "[]", since it represents an word or is used to modify a word" I just tried this on Mac and its consistent there. I then tried swapping the range and count clauses to opposite sides of the "< AND>". In that case the first < is highlighted and the message changes to "The command "[TAG]" must be surround by the characters "[]", since it represents an word or is used to modify a word". Here the highlight is better.

 

Thx

D


Edited by Daniel Semler, 05 October 2013 - 09:36 PM.

Sola lingua bona est lingua mortua
ἡ μόνη ἀγαθὴ γλῶσσα γλῶσσα νεκρὰ ἐστιν
lišanu ēdēnitu damqitu lišanu mītu

"Du stammst vom Herrn Adam und der Herrin Eva ab", sagte Aslan. "Und das ist zugleich Ehre genug, um das Häupt des ärmsten Bettlers zu erheben, und genug, um die Schultern des größten Kaisers auf Erden zu beugen. Sei zufrieden." Aslan, Die Chroniken von Narnia, Prinz Kaspian von Narnia. CS Lewis. Übersetzt von Wolfgang Holbein und Christian Rendel.

Accordance Syntax Search For Wallace's Greek Grammar Beyond the Basics : https://github.com/4...WallaceInSyntax

 

Accordance Crib Sheets: http://47rooks.com/l...ch-crib-sheets/

 

 

Accordance Configurations :

Mac : 2009 27" iMac
12GB RAM

Windows : MSI GE72 7RE Apache Pro laptop
Intel Core Duo Intel i7 Kabylake

Android : Samsung Note III 5.0, Samsung Tab S3 7.0 and Lenovo TAB4 8" 7.1





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users