Forum OpenACS Development: HEAD acs-templating/tcl/spellcheck-init.tcl ERROR

Today's CVS HEAD (last line shows Error):
[12/Oct/2003:14:08:35][5738.1074170432][-main-] Debug: Loading packages/acs-templating/tcl/spellcheck-init.tcl...
[12/Oct/2003:14:08:35][5738.1074170432][-main-] Debug: NO FULLQUERY FOR dbqd..NULL --> using default SQL
[12/Oct/2003:14:08:35][5738.1074170432][-main-] Notice: Querying '
	select package_id from apm_packages where package_key = 'acs-templating';'
[12/Oct/2003:14:08:35][5738.1074170432][-main-] Notice: dbinit: sql(localhost::openacs5b): '
	select package_id from apm_packages where package_key = 'acs-templating'
    '
[12/Oct/2003:14:08:35][5738.1074170432][-main-] Debug: NO FULLQUERY FOR dbqd..NULL --> using default SQL
[12/Oct/2003:14:08:35][5738.1074170432][-main-] Notice: Querying '
	select package_key from apm_packages where package_id = '165';'
[12/Oct/2003:14:08:35][5738.1074170432][-main-] Notice: dbinit: sql(localhost::openacs5b): '
	select package_key from apm_packages where package_id = '165'
    '
[12/Oct/2003:14:08:35][5738.1074170432][-main-] Notice: Querying '
      select apm_parameter_values.attr_value
      from apm_parameters, apm_parameter_values
      where apm_parameter_values.package_id = '165'
      and apm_parameter_values.parameter_id = apm_parameters.parameter_id
      and apm_parameters.parameter_name = 'SpellcheckDialectsP';'
[12/Oct/2003:14:08:35][5738.1074170432][-main-] Notice: dbinit: sql(localhost::openacs5b): '
      select apm_parameter_values.attr_value
      from apm_parameters, apm_parameter_values
      where apm_parameter_values.package_id = '165'
      and apm_parameter_values.parameter_id = apm_parameters.parameter_id
      and apm_parameters.parameter_name = 'SpellcheckDialectsP'
    '
[12/Oct/2003:14:08:35][5738.1074170432][-main-] Error: Gettings dicts and default_lang for aspell failed with error message: "Error: Unknown Action: dump dicts"
Collapse
Posted by Ola Hansson on
Randy,

This is not a show stopper, is it?

I think the version of aspell you're using is too old for the "aspell dump dicts" command, but Peter added a catch to the relevant part of spellcheck-init.tcl so that it wouldn't cause a problem.

You might want to upgrade to the latest version of aspell, then you should get all the dictionaries you have installed in the spellcheck pull-downs, not just the default one. (Not all actually - many of them, or a few of them, depending on the value of the SpellcheckDialectsP param, are filtered out in the init file).

ola@debian:~$ aspell -v
@(#) International Ispell Version 3.1.20 (but really Aspell 0.50.4)

ola@debian:~$ aspell dump dicts
en
en_CA
en_CA-w-accents
en_GB
en_GB-w-accents
en_US
en_US-w-accents
fr-40
fr-60
fr
fr-80
fr_CH-40
fr_CH-60
fr_CH
fr_CH-80
fr_FR-40
fr_FR-60
fr_FR
fr_FR-80
sv
ola@debian:~$
Collapse
Posted by Randy O'Meara on
Ola,

It's not a show stopper at all. I'm running the latest aspell RPM available through the Redhat Linux 9 RHN update channel. I use the up2date tool to manage the configuration. I wanted to point out that an error was generated (where maybe it shouldn't be?).

# rpm -q aspell
    aspell-0.33.7.1-21

# aspell -v
    @(#) International Ispell Version 3.1.20 (but really Aspell .33.7.1 alpha)

Collapse
Posted by Ola Hansson on
I changed "ns_log Error" to "ns_log Notice" since it is not that critical.
Collapse
Posted by Randy O'Meara on
That's a good solution. Is a hint logged also? Maybe a pointer to upgrade the aspell app at http://aspell.sourceforge.net/.
Collapse
Posted by Ola Hansson on
A hint to upgrade Aspell is logged, but not any URL.

I'll add it though. Good idea. 😊