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 - Ooo BASIC libs from 1.1.2 not compat with 1.1.3 - resolved
Ooo BASIC libs from 1.1.2 not compat with 1.1.3 - resolved
 
   NeoOffice Forum Index -> NeoOffice Testing
View previous topic :: View next topic  
Author Message
yoxi
Cipher


Joined: Sep 07, 2004
Posts: 1799
Location: Dawlish, Devon

PostPosted: Tue Dec 21, 2004 3:49 pm    Post subject: Ooo BASIC libs from 1.1.2 not compat with 1.1.3 - resolved

There's a problem with the beta which I think is the same one I experienced when I was upgrading Ooo from 1.1.2 to 1.1.3 on winxx - that 1.1.3 can't use the previous version's BASIC libraries.

Not such a problem in winxx because each installation creates its own BASIC folder, so one can then copy/paste routines from one to the other. But in the case of upgrading from Neo/J alpha to beta, it's using the same prefs as the alpha, not overwriting the BASIC libraries (good), and these BASIC libraries are incompatible (bad - so, for example, saving a doc in Neo/J beta generates loads of BASIC error messages before the save can go ahead).

That may mean that to upgrade sensibly, we have to rename our existing prefs file before installing the beta, and then copy over everything except the new 1.1.3 BASIC folder - and anything else that turns out to be incompatible with 1.1.3... Sad

Unless you can tweak the beta installer to spot the existing 1.1.2 BASIC folder and rename-then-replace it in the prefs so people can then laboriously copy over their BASIC routines like I had to in winxx Smile

- yoxi


Last edited by yoxi on Wed Dec 22, 2004 12:33 am; edited 1 time in total
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Tue Dec 21, 2004 3:54 pm    Post subject:

So what is the exact steps that should be done? In other words, which files and config entries need to be changed?

Patrick
Back to top
yoxi
Cipher


Joined: Sep 07, 2004
Posts: 1799
Location: Dawlish, Devon

PostPosted: Tue Dec 21, 2004 5:03 pm    Post subject:

pluby wrote:
So what is the exact steps that should be done? In other words, which files and config entries need to be changed?

Patrick

Blimey, give me a chance! Wink The error messages all point to:

Error loading BASIC of document file:///Applications/NeoOfficeJ/NeoOfficeJ.app/Contents/share/basic/etc. etc.

so the problem is that the old prefs are telling Neo/J beta that for the purposes of loading basic stuff on save, it's still sitting in /Applications/NeoOfficeJ/NeoOfficeJ.app - even though the tools-options-paths-basic dialog shows the correct /Applications/NeoOfficeJ.app path for the new app itself. This must be something to do with one or both of the prefs /user/basic files dialog.xlc & script.xlc (which both have that old /NeoOfficeJ/NeoOfficeJ.app path string in them).

What works as a temporary workaround is:

1) rename the existing prefs folder ~/Library/NeoOfficeJ-1.1 to NeoOfficeJ-1.1-alpha
2) delete and reinstall Neo/J beta, launch it, fiddle with the toolbar icon customising (seems to be a good way to make sure a new prefs folder is generated), quit Neo/J beta
3) rename the new ~/Library/NeoOfficeJ-1.1 (that just got created) to NeoOfficeJ-1.1-beta (for tidiness) and change back name of ~/Library/NeoOfficeJ-1.1-alpha to NeoOfficeJ-1.1
4) rename the files dialog.xlc & script.xlc in NeoOfficeJ-1.1/user/basic to something else (keep them just in case...)
5) copy the files dialog.xlc & script.xlc from NeoOfficeJ-1.1-beta/user/basic into NeoOfficeJ-1.1/user/basic

So far, I believe that the only impact this will have (apart from fixing this bug!) is that anyone who has added basic libraries will have to re-add them in the Macro Organiser, but that's not a big job.

To overcome this problem for people with existing alpha installations who want to upgrade to beta, it seems to me the simplest and most useful thing would be to have your installation script do a global replace in those two files in the existing prefs user/basic folder to update the path names. If you want to write that in, I'd be happy to test it out.

This should probably all have been in bugzilla, but you replied before I'd had time to write in the original bug, and I thought people might want to know a workaround in the meantime. I'll go ahead and post this as a bug too...

- yoxi

*update* okay, posted to bugzilla now. Incidentally, this finally explains what that "bug" was that I was experiencing in winxx moving from 1.1.2 to 1.1.3 - I'd copied the /basic folder over, not realising that the absolute paths are coded into these .xlc files. I solved a problem! I feel warm all over... (apart from my feet - this is England, December, past midnight...)
Back to top
yoxi
Cipher


Joined: Sep 07, 2004
Posts: 1799
Location: Dawlish, Devon

PostPosted: Tue Dec 21, 2004 5:31 pm    Post subject:

*update 2*
Okay, I was being thick here - for people not afraid to edit, all the above "workaround" can be reduced to simply making backup copies of the 2 .xlc files and then editing them both in TextEdit, doing a global replace from
/NeoOfficeJ/NeoOfficeJ.app to /NeoOfficeJ.app - this preserves all existing basic macro libraries - hooray...

- yoxi
Back to top
yoxi
Cipher


Joined: Sep 07, 2004
Posts: 1799
Location: Dawlish, Devon

PostPosted: Tue Dec 21, 2004 5:42 pm    Post subject:

Bah - seems all this was irrelevant - Neo/J alpha was supposed to be in /Applications to begin with. I don't remember moving it, is the strange thing, since I'd read here that moving it makes it stop working.

Pff. And this might explain why I had problems getting macros to work. My warm feeling has moved up to my face. I'm going to bed.

- yoxi
Back to top
yoxi
Cipher


Joined: Sep 07, 2004
Posts: 1799
Location: Dawlish, Devon

PostPosted: Wed Dec 22, 2004 12:36 am    Post subject:

Hey, one thing though, Patrick:

What happens in the unlikely event that someone wants to install the beta to a different volume from the alpha (like when people wanted to run 0.8.4 alongside 1.1)?

The installer will let them do that, but assuming they're the same User, won't there be a conflict between the old and new prefs data as to paths?

- yoxi
Back to top
fabrizio venerandi
Guest





PostPosted: Wed Dec 22, 2004 1:09 am    Post subject:

I do not understand the problem. All the macro I have from 1.1.2 are working fine in 1.1.3...



f.
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Wed Dec 22, 2004 10:38 am    Post subject:

yoxi wrote:
What happens in the unlikely event that someone wants to install the beta to a different volume from the alpha (like when people wanted to run 0.8.4 alongside 1.1)?


Eh, why would anyone want to run Alpha now that there's Beta? It's not like there are any massive regressions, even Smile 0.8.4 vs Alpha was a different ballgame, since Alpha was under heavy dev and occasionally had big bugs, while 0.8.4 was "stable" and stagnant. Wink

yoxi wrote:
The installer will let them do that, but assuming they're the same User, won't there be a conflict between the old and new prefs data as to paths?


Yep; that's why it's not supported Smile If one were to install the apps in the same location, renaming one first, then one could rename the version one wished to use to NeoOfficeJ.app before one started it each time. If one really, really wanted to make a mountain of a molehill Wink

Smokey
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Wed Dec 22, 2004 10:41 am    Post subject:

fabrizio venerandi wrote:
I do not understand the problem. All the macro I have from 1.1.2 are working fine in 1.1.3...

fabrizio, yoxi finally determined that he had moved Neo/J at some time and that messed up the pathnames. As long as you haven't moved Neo/J since installing Alpha, your macros will be working Smile

Smokey
Back to top
yoxi
Cipher


Joined: Sep 07, 2004
Posts: 1799
Location: Dawlish, Devon

PostPosted: Thu Dec 23, 2004 8:13 am    Post subject:

sardisson wrote:
Eh, why would anyone want to run Alpha now that there's Beta? It's not like there are any massive regressions, even Smile 0.8.4 vs Alpha was a different ballgame, since Alpha was under heavy dev and occasionally had big bugs, while 0.8.4 was "stable" and stagnant. Wink

yeah, point - the '0.8.4' reference was a daft red herring that distracted attention from the point I was trying to make about installing on a different volume - which is actually also irrelevant, because a closer look shows me that these hardwired basic paths are not volume-related, as they just point to ~/Library/NeoOffceJ-1.1.

I'm sorry this whole thread has been a waste of airspace for everyone except me - I've learned some useful things about the insides of the basic folder, and also about not posting late at night when I need a holiday and haven't done enough homework first.

It is interesting to note that Neo/J on the whole hasn't minded at all me moving it from its original installation folder, apart from causing some macro problems. It'd be nice if in the far future the installer allowed one to choose a folder to install to, and then updated all the necessary path references along the way, but it's pretty low priority.

Wassail.

- yoxi
Back to top
fabrizio venerandi
Guest





PostPosted: Thu Dec 23, 2004 2:08 pm    Post subject:

I understand thank you.


f.
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Testing 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.