Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - NeoLight from Patch 4 not working for me
NeoLight from Patch 4 not working for me
 
   NeoOffice Forum Index -> NeoLight Development
View previous topic :: View next topic  
Author Message
JKT
The Anomaly
(earlier version)


Joined: Sep 18, 2003
Posts: 434
Location: London, UK

PostPosted: Tue May 17, 2005 6:24 am    Post subject: NeoLight from Patch 4 not working for me

I'm not having any success at all with NeoLight as installed by patch 4 - it wasn't deposited in my /Library or ~/Library and no indexing has occurred (at least my test searches haven't identified a single NeoJ document). I did install one of the earlier versions of NeoLight (1.0.1 IIRC) but didn't manage to test it out - would this be interfering with the patch 4 installation and if so what should I do to correct it?

If I look in the NeoOfficeJ package contents there is a NeoOfficeJ/Contents/Library/Spotlight/neolight.mdimporter file (version 1.0.3 from the Get Info window) - can I simply move this to the MDImporter folder in my /Library folder?

_________________
PBG4, 1.5GHz, SuperDrive, 1GB RAM, 128MB VRAM, 5400rpm 80GB HD, MacOS X 10.4.5

Please visit The Land Gallery at http://www.thelandgallery.com for nature-inspired British Fine Art
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Tue May 17, 2005 8:32 am    Post subject:

You shouldn't need to move the plugin. Instead, you probably need to force Mac OS X to recognize the new NeoLight plugin. Do so by executing the following command:

Code:
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -r /Applications/NeoOfficeJ.app


Let me know if this works and I will add it to the postinstall script in the next patch.

Patrick
Back to top
Guest






PostPosted: Wed May 18, 2005 5:09 am    Post subject:

Sorry, but do I copy paste that entire phrase into Terminal and execute it, or do I need to add anything else to it... my knowledge of Unix is relatively limited?

Cheers.
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Wed May 18, 2005 11:10 am    Post subject:

You need to copy and paste the command into a Terminal window and execute it there.

If executing the command does not fix the problem, then try executing the following command:

Code:
sudo /System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -r /Applications/NeoOfficeJ.app


Patrick
Back to top
JKT
The Anomaly
(earlier version)


Joined: Sep 18, 2003
Posts: 434
Location: London, UK

PostPosted: Thu May 19, 2005 5:37 am    Post subject:

Weird, my reply didn't get submitted... anyway here it is again:

I had to use the sudo command to get it to work and now documents that I have edited since updating to patch 4 are being found by Spotlight searches. Unfortunately, any that haven't been opened/edited since that update are not. I guess that my Spotlight md database needs to be re-indexed or would a restart do?

Cheers,

Jonathan

_________________
PBG4, 1.5GHz, SuperDrive, 1GB RAM, 128MB VRAM, 5400rpm 80GB HD, MacOS X 10.4.5

Please visit The Land Gallery at http://www.thelandgallery.com for nature-inspired British Fine Art
Back to top
OPENSTEP
The One
The One


Joined: May 25, 2003
Posts: 4752
Location: Santa Barbara, CA

PostPosted: Fri May 20, 2005 8:10 am    Post subject:

If you want to reindex documents that exist on your hard drive prior to the update you'll need to force Spotlight to reindex all of the documents that are supported by the plugin:

Code:

/usr/bin/mdimport -r /Applications/NeoOfficeJ.app/Contents/Library/Spotlight/neolight.mdimporter


That's all one line...copy it into a Terminal and execute it. Note that it will cause Spotlight to reindex all files, so your computer may experience some heavy load for a while depending on how many OOo documents are on your computer.

The standalone plugin is performing this reindexing step...perhaps we should do it in the NeoJ installer as well. Personally, it seems like a performance issue with Spotlight. I'd think that when the metadata server detects that a new plugin is available it should automatically go adn reindex all of the files of that plugin's supported UTI types. It seems funny that Spotlight does not do that reindexing automatically.

ed
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Fri May 20, 2005 10:15 pm    Post subject:

OPENSTEP wrote:
I'd think that when the metadata server detects that a new plugin is available it should automatically go adn reindex all of the files of that plugin's supported UTI types. It seems funny that Spotlight does not do that reindexing automatically.


Maybe in the "rush" to get 10.4 out the door, Apple decided it would just be better to have plugin installers run the aforementioned command, and polishing the metadata server would be something to add for 10.4.5 Smile

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
JKT
The Anomaly
(earlier version)


Joined: Sep 18, 2003
Posts: 434
Location: London, UK

PostPosted: Sat May 21, 2005 8:15 am    Post subject:

OPENSTEP wrote:
If you want to reindex documents that exist on your hard drive prior to the update you'll need to force Spotlight to reindex all of the documents that are supported by the plugin:

Code:

/usr/bin/mdimport -r /Applications/NeoOfficeJ.app/Contents/Library/Spotlight/neolight.mdimporter


That's all one line...copy it into a Terminal and execute it. Note that it will cause Spotlight to reindex all files, so your computer may experience some heavy load for a while depending on how many OOo documents are on your computer.

The standalone plugin is performing this reindexing step...perhaps we should do it in the NeoJ installer as well. Personally, it seems like a performance issue with Spotlight. I'd think that when the metadata server detects that a new plugin is available it should automatically go adn reindex all of the files of that plugin's supported UTI types. It seems funny that Spotlight does not do that reindexing automatically.

ed

Thanks ed, this has worked. Smile

_________________
PBG4, 1.5GHz, SuperDrive, 1GB RAM, 128MB VRAM, 5400rpm 80GB HD, MacOS X 10.4.5

Please visit The Land Gallery at http://www.thelandgallery.com for nature-inspired British Fine Art
Back to top
OPENSTEP
The One
The One


Joined: May 25, 2003
Posts: 4752
Location: Santa Barbara, CA

PostPosted: Sat May 21, 2005 10:49 pm    Post subject:

(got back from 2nd time watching ROTS...I am a Lucas whore)

OK, if that seems to be the trick then I'll try to coordinate with Patrick to get that into the patch installers and only execute it on 10.4 systems...I think we should be able to check via a uname or test in postflight.

I'm still unsure of how spotlight would handle things upon upgrading to 10.4 from 10.3 and having NeoJ installed previously with the plugin. I'd expect that the NeoJ Spotlight plugin would be detected in the app bundle prior to the initial reindexing of hard drives post 10.4 install. It'd suck if that initial indexing is limited only to the default Apple-supplied plugins and we have to worry about redoing this junk each time.

In my mind the only time a plugin installation should have to trigger a reindexing is if something fundamental has changed in the metadata plugin itself that would cause all old information to become stale (e.g. a change in file format).

ed
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Sun May 22, 2005 12:25 am    Post subject:

OPENSTEP wrote:
I'm still unsure of how spotlight would handle things upon upgrading to 10.4 from 10.3 and having NeoJ installed previously with the plugin. I'd expect that the NeoJ Spotlight plugin would be detected in the app bundle prior to the initial reindexing of hard drives post 10.4 install. It'd suck if that initial indexing is limited only to the default Apple-supplied plugins and we have to worry about redoing this junk each time.

In my mind the only time a plugin installation should have to trigger a reindexing is if something fundamental has changed in the metadata plugin itself that would cause all old information to become stale (e.g. a change in file format).


These two bits do seem to present something of a conundrum. On the one hand, you really don't want to trigger a reindex on every patch or release install (as I hear it, Spotlight indexing can take over your CPU for a while), but you certainly want to new installs on 10.4 to have that command run (test for existance of Neo/J receipt?).

And I'd certainly hope that Spotlight would recognize pre-installed plugins when a system goes from 10.3 to 10.4, but since none of the registration mechanisms existed (did they?) on 10.3, I'm not sure how it would know.

Anyway, I've been pondering these questions for the last couple of weeks as I read and hear things about Spotlight, and now seemed to be a good point to verbalize them (in fact, I expect to see the latter--"I have patch-4 installed and now I'm upgrading to 10.4; what do I need to do?"--as a support question sooner rather than later)....

Smokey

P.S. I take it ROTS really is that good? Smile

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Sun May 22, 2005 1:00 am    Post subject:

sardisson wrote:
Anyway, I've been pondering these questions for the last couple of weeks as I read and hear things about Spotlight, and now seemed to be a good point to verbalize them (in fact, I expect to see the latter--"I have patch-4 installed and now I'm upgrading to 10.4; what do I need to do?"--as a support question sooner rather than later)....


But we haven't heard it yet Smile. Maybe we'll get lucky.

sardisson wrote:
P.S. I take it ROTS really is that good? Smile


Well, no it isn't, IMHO. It is more of a non-stop action flick than an adventure movie and the on-screen chemistry between Anakin and Padme is non-existant at best. I feel that Lucas overshot his target.

_________________
"What do you think of Western Civilization?"
"I think it would be a good idea!"
- Mohandas Karamchand Gandhi
Back to top
OPENSTEP
The One
The One


Joined: May 25, 2003
Posts: 4752
Location: Santa Barbara, CA

PostPosted: Sun May 22, 2005 6:53 pm    Post subject:

Yeah, I know I haven't tried the procedure yet of installing a plugin within an application bundle on 10.3 then doing a 10.4 upgrade. I suppose I could do it on a partition if I get curious...

Worse comes to worse, the minimum that would need to be done after a 10.4 update would be to rerun that mdimport -r command from above. I definitely don't want to start triggering that on each patch. It took over two days to fully index all of my hard drives on my main box after a 10.4 update, and I have so many OOo formatted documents (I've been "eating my own dogfood" since 2000) that it would take a long time to reindex them all.

Compounding the Spotlight indexing time is the damned OOo/OpenDocument format itself.

It's compressed.

In order to parse it, it has to be uncompressed and, on top of that, parsed by an XML parser. To uncompress it requires reading portions of the entire zip file into memory to uncompress it, including uncompressing the entire text content of the file in a separate process. This is definitely something that we want to try to avoid doing many times in succession if possible. For individual files when they're modified is one thing; to do thousands of files will require quite some time.

The OOo file format is quite unforgiving considering the "minimal file parsing" approach favored by Spotlight design recommendations.

ed
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoLight Development All times are GMT - 7 Hours
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.