Re: [code] [textadept]catgs plugin freeze when try to jump not exist symbol in tags file twice

From: Mitchell <m.att.foicica.com>
Date: Sun, 23 Jul 2017 13:49:15 -0400 (EDT)

Hi Yuki,

On Sat, 22 Jul 2017, First Last wrote:

> Hi, I'm Yuki
>
>
> It seems ctags plugin makes textadept of windows version freeze when user tries to jump a symbol which doesn't exist in tags file twice.
>
> My steps to reproduce the problem are:
>
>
> 1. Download gtk+2.24.31 source code
> 2. Create tags file using Exberant Ctags
> 3. Configure init.lua
>
> _M.ctags = require('ctags')
> keys['a&'] = textadept.menu.menubar[_L['_Search']]['_Ctags']['_Goto Ctag'][2]
> keys['a,'] = textadept.menu.menubar[_L['_Search']]['_Ctags']['Jump _Back'][2]
> keys['a.'] = textadept.menu.menubar[_L['_Search']]['_Ctags']['Jump _Forward'][2]
> keys['ac'] = textadept.menu.menubar[_L['_Search']]['_Ctags']['_Autocomplete Tag'][2]
>
> _M.ctags[#_M.ctags + 1] = 'C:/Programs/src/gtk+-2.24.31/tags'
>
> 4. Open gtk\gtkaction.c
> 5. Select string of "GObjectClass" in gtk_action_class_int()
> 6. Select "Go to ctag" from menu twice
>
> This problem occurs always in my environment.
> I'm using textadept on wIndows7 of English version with changing the encoding to cp932.

When a ctags search fails within all known tags files, Textadept invokes `ctags` on the current file, waits for output, and then looks for the tag in question. It appears that ctags/init.lua:83:

     spawn('ctags -o "'..tmpfile..'" "'..buffer.filename..'"'):wait()

is causing Textadept to "freeze" on your machine. Can you spawn ctags from Textadept? (e.g. in the command entry run `spawn('ctags "'..buffer.filename..'"'))

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Sun 23 Jul 2017 - 13:49:15 EDT

This archive was generated by hypermail 2.2.0 : Mon 24 Jul 2017 - 06:54:30 EDT