Strange problem related to \usemodule
Hi, I have access to three machines both running GNU/Linux x86-64, I call them "Laptop", "Desktop" and "Remote" respectively here on. The "Laptop" has full access to the internet, so I always install and upgrade my ConTeXt Standalone on it when I'm home. At workplace, I can surfer the internet with the "Desktop" while the RSYNC port is blocked. I only can access the "Remote" through ssh from the "Desktop" without root privilege and can not access the internet. So, I always copied the ConTeXt standalone from my "Laptop" onto my "Desktop", and from my "Desktop" onto "Remote" if necessary. Then, I'll delete the cache before I set the PATH to the appropriate location and run context --make and mtxrun --generate. So the ConTeXt standalones are almost identical on both my "Desktop" and "Remote". And the following minimal example just works fine on my "Desktop" but failed on the "Remote", =========== Minimal Example ============================ \usemodule[vim] \definevimtyping[RUBY][syntax=ruby] \starttext \startRUBY puts "Hello" \stopRUBY \stoptext ========================================================= Actually, on "Remote", whatever module I use, it will prompt the Undefined Control Sequence error regarding the first command I used from that module with the module loaded correctly. Attached is the error log accompany the above minimal example. So, what can be the problem with my "Remote". TIA. for any help.
On 10-10-2011 06:57, Hongwen Qiu wrote:
Actually, on "Remote", whatever module I use, it will prompt the Undefined Control Sequence error regarding the first command I used from that module with the module loaded correctly. Attached is the error log accompany the above minimal example.
So, what can be the problem with my "Remote".
weird, as the log mentions that the file is loaded can you run with \enabletrackers[modules.loading] ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Tue, 11 Oct 2011, Hongwen Qiu wrote:
On Mon, 2011-10-10 at 14:09 +0200, Hans Hagen wrote:
can you run with \enabletrackers[modules.loading] Attached is the log with \enabletrackers[modules.loading].
What are the first 10-15 lines of /ifs2/S2PH/qiuhw/opt/context-1008/tex/texmf-modules/tex/context/third/vim/t-vim.tex? The vim module usually gives a message loading > Vim syntax highlighting (or some variation of it...I have changed the default message recently), but that message is missing in your log. My guess is that the t-vim module that you have is somehow corrupted, and therefore, \definevimtyping command is undefined. Aditya
On Mon, 2011-10-10 at 23:09 -0400, Aditya Mahajan wrote:
What are the first 10-15 lines of /ifs2/S2PH/qiuhw/opt/context-1008/tex/texmf-modules/tex/context/third/vim/t-vim.tex?
$ head -15 /ifs2/S2PH/qiuhw/opt/context-1008/tex/texmf-modules/tex/context/third/vim/t-vim.tex %D \module %D [ file=t-vim, %D version=2011.09.03, %D title=\CONTEXT\ User Module, %D subtitle=Vim syntax highlighting, %D author=Aditya Mahajan, %D date=\currentdate, %D copyright=Aditya Mahajan, %D email=adityam <at> ieee <dot> org, %D license=Simplified BSD License] \writestatus{loading}{Vim syntax highlighting (ver: 2011.09.03)} \startmodule [vim] \usemodule [filter]
The vim module usually gives a message
loading > Vim syntax highlighting
(or some variation of it...I have changed the default message recently), but that message is missing in your log.
My guess is that the t-vim module that you have is somehow corrupted, and therefore, \definevimtyping command is undefined.
This couldn't be the problem (anyhow, I attached the 15 lines of t-vim.tex above), since I have said in my previous messages that if I copied the neccessary files from the tex/texmf-modules to the current directory it works just fine, and the problem are not only relates to t-vim module, all of the modules under tex/texmf-modules and tex/texmf-local just does not work.
On 11-10-2011 03:39, Hongwen Qiu wrote:
On Mon, 2011-10-10 at 14:09 +0200, Hans Hagen wrote:
can you run with \enabletrackers[modules.loading] Attached is the log with \enabletrackers[modules.loading].
can you try to load the file directly with \input{/ifs2/S2PH/qiuhw/opt/context-1008/tex/texmf-modules/tex/context/third/vim/t-vim.tex} and see if the command is defined then? Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Tue, 2011-10-11 at 09:26 +0200, Hans Hagen wrote:
can you try to load the file directly with
\input{/ifs2/S2PH/qiuhw/opt/context-1008/tex/texmf-modules/tex/context/third/vim/t-vim.tex}
and see if the command is defined then? This method works with other modules, e.g. t-ruby.tex, but not t-vim.tex, I think that's because the vim module depends on other modules that's still in texmf-modules.
participants (3)
-
Aditya Mahajan
-
Hans Hagen
-
Hongwen Qiu