[code] 答复: [code] [textadept]catgs plugin freeze when try to jump not exist symbol in tags file twic

From: Outlook Yuki <X1353135.att.outlook.com>
Date: Tue, 25 Jul 2017 15:28:31 +0000

Hi Mitchel

Thank you for your comment.

> Can you spawn ctags from Textadept? (e.g. in the command entry run `spawn('ctags "'..buffer.filename..'"'))

I tried above step, but I couldn't see any reaction on textadept.
What's the expected behavior of textadept?
Then, textadept freeze when I press close button on upper right corner of textadept window.
I checked I can run ctags on Windows command prompt.


[cid:9a53f08f-2e4e-4e23-95aa-c598896c557f]

[cid:272dd003-b0b4-4e41-b0d6-375cc5c5d9cc]


[cid:d920e2b6-31e8-4717-9302-ced1fbacf0e7]

As additional test, I tried to spawn notepad.
I can spawn notepad from textadept.
But, textadept also freeze when I press close button on upper right corner of textadept window after I close notepad window.

[cid:bf5ce432-3a2a-4ebf-b07d-addeefaf7349]

[cid:e01ac853-a32a-4c7f-9700-2c61568ceb43]

[cid:a8b7a7eb-0cdf-426f-9d09-198d4986fc74]

Yuki


________________________________
发件人: Mitchell <m.att.foicica.com>
发送时间: 2017年7月23日 17:49
收件人: code.att.foicica.com
主题: Re: [code] [textadept]catgs plugin freeze when try to jump not exist symbol in tags file twice

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.

-- 
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.
ta_spawn_ctags1.png
ta_spawn_ctags2.png
ta_spawn_ctags3.png
ta_spawn_notepad1.png
ta_spawn_notepad2.png
ta_spawn_notepad3.png
Received on Tue 25 Jul 2017 - 11:28:31 EDT

This archive was generated by hypermail 2.2.0 : Wed 26 Jul 2017 - 06:34:49 EDT