mtxrun

Bug #379146 reported by Mojca Miklavec
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ConTeXt distribution
New
Undecided
Unassigned

Bug Description

from Alan BRASLAU, untested

I did a fresh install of the minimals today and observed a fleeting, obscure
mtxrun bug:
$ context myfile
did not find the script mtx-context.lua
$ mtxrun --script /usr/local/context/tex/texmf-context/\
scripts/context/lua/mtx-context.lua myfile
ran fine, as now does all subsequent runs of "context myfile".
So something gets initialized, but is not found by default.
You will only notice this upon a (totally) fresh install.

Revision history for this message
Hans Hagen (pragma-wxs) wrote : Re: [Context] [Bug 379146] [NEW] mtxrun

Mojca Miklavec wrote:
> Public bug reported:
>
> from Alan BRASLAU, untested
>
> I did a fresh install of the minimals today and observed a fleeting, obscure
> mtxrun bug:
> $ context myfile
> did not find the script mtx-context.lua
> $ mtxrun --script /usr/local/context/tex/texmf-context/\
> scripts/context/lua/mtx-context.lua myfile
> ran fine, as now does all subsequent runs of "context myfile".
> So something gets initialized, but is not found by default.
> You will only notice this upon a (totally) fresh install.

maybe mtxrun is generating the file database?

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

Revision history for this message
Runa (arundhati-bakshi) wrote :

I am getting a similar error: MTXrun | unknown script 'context.lua' or 'mtx-context.lua' upon a fresh install of context.

Revision history for this message
Mojca Miklavec (mojca-miklavec-lists) wrote :

Can you please describe:
- the platform you are using
- the base path where you store minimals
- how exactly you install
- how exactly you initialize the environment
- how exactly you run your hello-world document

Since I cannot reproduce the problem ... not even on a completely fresh install.

Thanks.

Revision history for this message
mathew (meta23) wrote :

Ubuntu 10.10.

# mkdir /usr/local/context
# chown meta /usr/local/context
# cd /usr/local/context
# su meta
$ wget http://minimals.contextgarden.net/setup/first-setup.sh
$ sh first-setup.sh --context=current
$ cd ~/Documents/Reference/ConTeXt
$ . /usr/local/context/tex/setuptex
Setting "/usr/local/context/tex" as ConTeXt root.
$ context test.tex
MTXrun | forcing cache reload
MTXrun | resolvers: loading configuration file '/usr/local/context/tex/texmf/web2c/texmfcnf.lua'
MTXrun | resolvers
MTXrun | resolvers
MTXrun | resolvers
MTXrun | the resolver databases are not present or outdated
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | resolvers: remembering file 'mtx-context.lua'
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
$ which context
/usr/local/context/tex/texmf-linux/bin/context
$

Revision history for this message
mathew (meta23) wrote :

$ mtxrun --script /usr/local/context/tex/texmf-context/scripts/context/lua/mtx-context.lua test.tex
MTXrun | forcing cache reload
MTXrun | resolvers: loading configuration file '/usr/local/context/tex/texmf/web2c/texmfcnf.lua'
MTXrun | resolvers
MTXrun | resolvers
MTXrun | resolvers
MTXrun | the resolver databases are not present or outdated
MTXrun | warning: no format found, forcing remake (commandline driven)
MTXrun | resolvers: loading configuration file '/usr/local/context/tex/texmf/web2c/texmfcnf.lua'
MTXrun | resolvers
MTXrun | resolvers
MTXrun | resolvers
MTXrun | format path: /usr/local/context/tex/texmf-cache/luatex-cache/context/9900c4dbe97a1b14af2919f718cfda5b/formats
MTXrun | resolvers: using given filetype 'tex'
MTXrun | no tex source file with name: cont-en.tex
MTXrun | error, no format found with name: cont-en, aborting
MTXrun | total runtime: 0.021
$

The cache directory does exist.

Revision history for this message
mathew (meta23) wrote :

Tried again without "--context=current" on the execution of first-setup.sh, and that works.

So I conclude that the stable release is broken, but the beta works.

Revision history for this message
Kip Warner (kip) wrote :

I had the same problem. I found running 'luatools --generate' fixed it. Maybe it should be run as part of a postinst hook.

Revision history for this message
Taco Hoekwater (taco) wrote : Re: [Context] [Bug 379146] Re: mtxrun

On 06/11/2011 06:48 AM, Kip Warner wrote:
> I had the same problem. I found running 'luatools --generate' fixed it.
> Maybe it should be run as part of a postinst hook.
>

Probably this happened because some changes have been made to
the variable 'cnfluaspec'. That is used to find texmfcnf.lua,
and it is also used as part of the hashed cache path, so any
changes to it make the old already generated cache unreachable.

The problem is transient indeed, and in a fully new install it
would not have happened at all.

Best wishes,
Taco

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.