On 06/02/2017 05:40 AM, Louis Turk wrote:
Hi everyone,

I'm a long-time user of Lyx. It is a great piece of software. Many
thanks to the developers.

I just installed Lyx 2.2.2 and an error message is popping up: "Error
reading module basic"

I find this file on my harddrive: /usr/share/lyx/layouts/basic.module

So, I did:

sudo cp /usr/share/lyx/layouts/basic.module
/home/l/lyx/lyx-devel/lib/layouts/basic.module

to see it that would help.  I then ran Reconfigure, and restarted Lyx.
But it did not help: the error still pops up every few minutes.

Is there a solution?

Louis

First question: does this happen only when you work with a document in which the basic module is selected (in Documents > Settings... > Modules), or does it happen with all documents?

Second question: Is read permission set on the basic.module file in /usr/share/lyx/layouts? I would think so, else the copy should have failed, but better safe than sorry.

If both answers are yes, my suggestion would be to delete the copy you made in your home directory and then install a fresh copy of the module file in /usr/share/lyx/layouts. I'm attaching the one from my system, but be warned that I'm on 2.2.3, so you might want to check the Format field in your existing copy of the module and make sure it's the same (60) as in mine. Otherwise, I suppose you could download the source for 2.2.2 from the LyX server and then extract just the basic.module file.

If that doesn't fix it, let us know and we can try digging deeper.

Paul

# \DeclareLyXModule{Default (basic)}
# DescriptionBegin
#   Use the basic citation capabilities provided by plain LaTeX.
# DescriptionEnd
# Excludes: jurabib | natbib
# Category: Citation engine

# Author: Julien Rioux <jri...@lyx.org>

Format 60

CiteEngineType default
DefaultBiblio  plain

CiteEngine default
        cite[]
        nocite
End

CiteFormat default
        # translatable bits
        _notcited not cited
        _addtobib Add to bibliography only.

        # macros
        !open [
        !sep ,
        !close ]

        !startlink {!<a href='#LyXCite-%clean:key%'>!}
        !endlink {!</a>!}

        !cite 
%!startlink%{%label%[[%label%]][[{%numericallabel%[[%numericallabel%]][[#%key%]]}]]}%!endlink%%!nextcite%

        !nextcite {%next%[[%!sep% %!cite%]]}
        !nexthashkey {%next%[[%!sep% #%key%%!nexthashkey%]]}
        !nextkey {%next%[[%!sep% %key%%!nextkey%]]}

        !textafter {%textafter%[[, %textafter%]]}

        # cite styles
        cite %!open%{%dialog%[[#ID]][[%!cite%]]}%!textafter%%!close%
        nocite {%dialog%[[%_addtobib%]][[%key%%!nextkey% (%_notcited%)]]}
End

Reply via email to