Mike Boone | 2 Jun 17:27
Favicon
Gravatar

Xapian .lemony files

Hi All,

I wanted to add a small tweak to my installation of the Query Parser.
Should I be editing queryparser.lemony? I tried that and the make
didn't include my change. I applied the same change to
queryparser_internal.cc and it worked fine. Is the .lemony file
something used internally and I can ignore? Or do I need to run
something prior to make to convert the files?

Thanks,
Mike Boone.
http://boonedocks.net/mike
Adam Sjøgren | 4 Jun 07:55
X-Face
Picon
Favicon
Gravatar

Re: Xapian .lemony files

On Tue, 2 Jun 2009 11:27:01 -0400, Mike wrote:

> I wanted to add a small tweak to my installation of the Query Parser.
> Should I be editing queryparser.lemony? I tried that and the make
> didn't include my change. I applied the same change to
> queryparser_internal.cc and it worked fine. Is the .lemony file
> something used internally and I can ignore? Or do I need to run
> something prior to make to convert the files?

I'm sure someone will correct me if I'm wrong, but I think you need to
run configure with the --enable-maintainer-mode flag to have the .lemony
file translated into the .cc file when building.

I think the .lemony is the correct place to make your changes, otherwise
they will be overwritten when the .cc is regenerated later (ok, if
you're not going to do that, it doesn't matter, but losing the changes
because of forgetting something like that sucks...)

I'm no expert on these things, so take my comments with an appropriate
pinch of salt.

  Best regards,

    Adam

--

-- 
 "Although I've tested that it works, I recommend no          Adam Sjøgren
  people it."                                            asjo <at> koldfront.dk
Olly Betts | 7 Jun 15:02
Favicon
Gravatar

Re: Xapian .lemony files

On Thu, Jun 04, 2009 at 07:55:46AM +0200, Adam Sjøgren wrote:
> On Tue, 2 Jun 2009 11:27:01 -0400, Mike wrote:
> 
> > I wanted to add a small tweak to my installation of the Query Parser.
> > Should I be editing queryparser.lemony? I tried that and the make
> > didn't include my change. I applied the same change to
> > queryparser_internal.cc and it worked fine. Is the .lemony file
> > something used internally and I can ignore? Or do I need to run
> > something prior to make to convert the files?
> 
> I'm sure someone will correct me if I'm wrong, but I think you need to
> run configure with the --enable-maintainer-mode flag to have the .lemony
> file translated into the .cc file when building.

That's right.  If you do that "make" will (re)generate such files when
required.

Cheers,
    Olly
Martin Margo | 1 Jul 02:08
Picon
Favicon

Sample quickstartindex unable to create database on Windows 2008


Hello

My desktop is running Windows 2008 and I used Microsoft Visual Studio 2008 to compile 1.0.13 Xapian and Ruby
bindings. 
I then copy and paste this code from xapian website to my new project and link it with Xapian lib. Everything
builds and links nicely

http://xapian.org/docs/quickstartindex.cc.html

I ran it with the following args
XapianIndex.exe C:\tmp\junk14 "hello hello" hello 

C:\tmp\junk14 exists and empty.

The app crashed. 

First-chance exception at 0x7771f328 in XapianIndex.exe: Microsoft C++ exception:
Xapian::DatabaseCreateError at memory location 0x006bf9d8..
Unhandled exception at 0x7771f328 in XapianIndex.exe: Microsoft C++ exception:
Xapian::DatabaseCreateError at memory location 0x006bf9d8..
The program '[4800] XapianIndex.exe: Native' has exited with code 0 (0x0).

Has anyone encountered this error before? How can I fix it?

Thanks in advance
Olly Betts | 1 Jul 04:30
Favicon
Gravatar

Re: Sample quickstartindex unable to create database on Windows 2008

On Tue, Jun 30, 2009 at 05:08:33PM -0700, Martin Margo wrote:
> My desktop is running Windows 2008 and I used Microsoft Visual Studio
> 2008 to compile 1.0.13 Xapian and Ruby bindings.  I then copy and
> paste this code from xapian website to my new project and link it with
> Xapian lib. Everything builds and links nicely
> 
> http://xapian.org/docs/quickstartindex.cc.html
> 
> I ran it with the following args
> XapianIndex.exe C:\tmp\junk14 "hello hello" hello 
> 
> C:\tmp\junk14 exists and empty.

And is a directory?  You don't need it to exist, but if it exists and is
a file that won't work.

> The app crashed. 
> 
> First-chance exception at 0x7771f328 in XapianIndex.exe: Microsoft C++
> exception: Xapian::DatabaseCreateError at memory location 0x006bf9d8..
> Unhandled exception at 0x7771f328 in XapianIndex.exe: Microsoft C++
> exception: Xapian::DatabaseCreateError at memory location 0x006bf9d8..
> The program '[4800] XapianIndex.exe: Native' has exited with code 0 (0x0).

It seems to have failed to catch the exception, which is pretty broken.
Are you using any unusual compiler options?

And does "simpleindex" in the example work?

> Has anyone encountered this error before? How can I fix it?
(Continue reading)

Martin Margo | 1 Jul 20:11
Picon
Favicon

Re: Sample quickstartindex unable to create database on Windows 2008


Thanks for your reply.

C:\tmp\junk14 existed. I deleted the dir and XapianIndex.exe still crashes.

I debugged the program and in database.cc in Xapian code line 205 function 
WritableDatabase::WritableDatabase(const std::string &path, int action) : Database ()

'path' variable is preceeded with weird characters, such as so:
"ÌÌÌÌC:\tmp\junk14"

const std::basic_string<char,std::char_traits<char>,std::allocator<char> > &

While it should have read 'C:\tmp\junk14'. 

Thanks for your help.

Martin

----- Original Message ----
From: Olly Betts <olly <at> survex.com>
To: Martin Margo <martin_margo <at> yahoo.com>
Cc: xapian-devel <at> lists.xapian.org
Sent: Tuesday, June 30, 2009 7:30:09 PM
Subject: Re: [Xapian-devel] Sample quickstartindex unable to create database on  Windows 2008

On Tue, Jun 30, 2009 at 05:08:33PM -0700, Martin Margo wrote:
> My desktop is running Windows 2008 and I used Microsoft Visual Studio
> 2008 to compile 1.0.13 Xapian and Ruby bindings.  I then copy and
> paste this code from xapian website to my new project and link it with
(Continue reading)

Mike Boone | 1 Jun 03:45
Favicon
Gravatar

Xapian .lemony files

Hi All,

I wanted to add a small tweak to my installation of the Query Parser.
Should I be editing queryparser.lemony? I tried that and the make
didn't include my change. I applied the same change to
queryparser_internal.cc and it worked fine. Is the .lemony file
something used internally and I can ignore? Or do I need to run
something prior to make to convert the files?

Thanks,
Mike Boone.
http://boonedocks.net/mike

Gmane