ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] [t-vim] doesn't load, can't find `module-catcodes`
@ 2025-02-03  6:09 Kirill Davidov
  2025-02-03 14:34 ` [NTG-context] " Aditya Mahajan
  0 siblings, 1 reply; 5+ messages in thread
From: Kirill Davidov @ 2025-02-03  6:09 UTC (permalink / raw)
  To: ntg-context

Greetings,

I have been using `t-vim` more or less extensively and I have found that 
in some recent update it stopped loading. It fails to find and load 
`module-catcodes`, which apparently defines 
`\(un)protectmodulecatcodes`. Is there a workaround? I have tried 
replacing the special (un)protects with regular ones, but it didn't seem 
to get me further.

Kirill

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [NTG-context] Re: [t-vim] doesn't load, can't find `module-catcodes`
  2025-02-03  6:09 [NTG-context] [t-vim] doesn't load, can't find `module-catcodes` Kirill Davidov
@ 2025-02-03 14:34 ` Aditya Mahajan
  2025-02-04  7:15   ` Kirill Davidov
  0 siblings, 1 reply; 5+ messages in thread
From: Aditya Mahajan @ 2025-02-03 14:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

> I have been using `t-vim` more or less extensively and I have found that in
> some recent update it stopped loading. It fails to find and load
> `module-catcodes`, which apparently defines `\(un)protectmodulecatcodes`. Is
> there a workaround? I have tried replacing the special (un)protects with
> regular ones, but it didn't seem to get me further.

Can you double check if the module is installed correctly? 

I tested on a new machine with the following test file (I use neovim rather than vim as I don't have vim installed here) and everything works fine.

\usemodule[vim]
\setupvimtyping[vimcommand=nvim]

\definevimtyping[JULIA][syntax=julia]

\starttext
\startJULIA
  print("Hello world")
\stopJULIA
\stoptext

Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [NTG-context] Re: [t-vim] doesn't load, can't find `module-catcodes`
  2025-02-03 14:34 ` [NTG-context] " Aditya Mahajan
@ 2025-02-04  7:15   ` Kirill Davidov
  2025-02-04  8:00     ` Henning Hraban Ramm
  0 siblings, 1 reply; 5+ messages in thread
From: Kirill Davidov @ 2025-02-04  7:15 UTC (permalink / raw)
  To: ntg-context

I have just reinstalled ConTeXt and the module in hopes I was missing a 
file for whatever reason. The steps I took are:
- Deleted last installation's folder;
- Got the ConTeXt LMTX archive from the installation page on PRAGMA 
ADE's website and extracted it;
- Ran the installation script after making it executable;
- Ran `mtxrun --generate` and `context --make` just in case;
- Went into <ConTeXt root>/tex and ran `mtxrun --script install-modules 
--install vim`.

Unfortunately, the issue hasn't been fixed. I tried compiling a test 
document that just loads the module and has some text and it fails on 
the `\usemodule`. The compilation log says that `vim` is loaded, 
`syntax-highlight` and `syntax-groups` are loaded, but it could not find 
`filter` and `module-catcodes`. Should there perhaps be a 
`t-module-catcodes` (and/or `t-filter`) file somewhere within module 
files? I have ConTeXt version 2024.12.30 16:14.

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [NTG-context] Re: [t-vim] doesn't load, can't find `module-catcodes`
  2025-02-04  7:15   ` Kirill Davidov
@ 2025-02-04  8:00     ` Henning Hraban Ramm
  2025-02-04  8:28       ` Kirill Davidov
  0 siblings, 1 reply; 5+ messages in thread
From: Henning Hraban Ramm @ 2025-02-04  8:00 UTC (permalink / raw)
  To: ntg-context

Am 04.02.25 um 08:15 schrieb Kirill Davidov:
> Unfortunately, the issue hasn't been fixed. I tried compiling a test 
> document that just loads the module and has some text and it fails on 
> the `\usemodule`. The compilation log says that `vim` is loaded, 
> `syntax-highlight` and `syntax-groups` are loaded, but it could not find 
> `filter` and `module-catcodes`. Should there perhaps be a `t-module- 
> catcodes` (and/or `t-filter`) file somewhere within module files? I have 
> ConTeXt version 2024.12.30 16:14.

The vim module requires the filter module (also by Aditya), install it.

Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [NTG-context] Re: [t-vim] doesn't load, can't find `module-catcodes`
  2025-02-04  8:00     ` Henning Hraban Ramm
@ 2025-02-04  8:28       ` Kirill Davidov
  0 siblings, 0 replies; 5+ messages in thread
From: Kirill Davidov @ 2025-02-04  8:28 UTC (permalink / raw)
  To: ntg-context

Yup, I was just missing `filter` as a dependency. Installed that and it 
works now. Thanks!
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-02-04  8:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-03  6:09 [NTG-context] [t-vim] doesn't load, can't find `module-catcodes` Kirill Davidov
2025-02-03 14:34 ` [NTG-context] " Aditya Mahajan
2025-02-04  7:15   ` Kirill Davidov
2025-02-04  8:00     ` Henning Hraban Ramm
2025-02-04  8:28       ` Kirill Davidov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).