I’m trying to write my first extension for Komodo Edit. I created the templates using koext and I have basic syntax highlighting working. For code intelligence though, for every key press I get this under ‘Notifications’:
No preceding trigger point within range of current position.
I have not edited codeintel_mylang.py or cile_mylang.py yet.
My question is, how can I debug by extension (or add-ons?)? I don’t know who is generating those warnings/errors. Apparently not the add-on itself. I’m rather stuck at this point since I cannot find a basic tutorial or getting-started guide that will explain the development of add-ons.
I won’t be doing any serious development yet. I’m just getting started and learning the basic structure of CodeIntel. Could you at least give me some hints to help resolve the current issue so I can continue to make progress? If even the templates for codeintel_xxxx.py and cile_xxxx.py are not expected to work properly yet, then I will just wait until 11.1.
Hi, both errors stem from the fact you haven’t added any code to your codeintel Python files yet.
The first error, “got unexpected style”, comes from the lack of a declared language (m_lang, css_lang, csl_lang, ssl_lang, or tpl_lang).
The second error, “no preceding trigger point”, comes from the lack of a routine that scans backwards from the current position and returns a codeintel trigger.
Once you add the necessary code to your codeintel Python files, these errors should go away. I would recommend taking a look at other Komodo addons that supply code intelligence for languages to get an idea of what it takes to add.