delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/04/04/00:42:05

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,TVD_RCVD_IP,TW_HR
X-Spam-Check-By: sourceware.org
Date: Sun, 3 Apr 2011 21:40:00 -0700 (PDT)
From: "Peter A. Castro" <doctor AT fruitbat DOT org>
To: Vikas Mishra <vikasm AT vikasmishra DOT org>
cc: cygwin AT cygwin DOT com
Subject: Re: Zsh completion problem
In-Reply-To: <AANLkTinp3tu+tZWxiLM651sihdjxdnx_pCX-a52imWQ1@mail.gmail.com>
Message-ID: <alpine.LNX.2.00.1104032133370.3497@gremlin.fruitbat.org>
References: <AANLkTimvuT=oHRV0+wCjudgV6zoHr-OoHLUR1n9=MN9t AT mail DOT gmail DOT com> <alpine DOT LNX DOT 2 DOT 00 DOT 1103241753160 DOT 3447 AT gremlin DOT fruitbat DOT org> <AANLkTi=xxj7m78uwDGEFCVQqrs-_VHvrb8bJb0K1Cw66 AT mail DOT gmail DOT com> <AANLkTinp3tu+tZWxiLM651sihdjxdnx_pCX-a52imWQ1 AT mail DOT gmail DOT com>
User-Agent: Alpine 2.00 (LNX 1167 2008-08-23)
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

---1463811017-451225891-1301892000=:3497
Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8BIT

On Fri, 1 Apr 2011, Vikas Mishra wrote:

Greetings, Vikas,

> Any suggestions anyone?
> I would really like to have completion in my zsh shells. Incidentally
> I installed from source in cygwin and still have the same issue. So I
> don't believe it is a package issue. I think it may be a bigger issue
> with my cygwin environment.

I think you're going to have to give me some examples of what completion
you are attempting.  I still can't make this fail no matter what I try.
Your .zcompdump looks fine to me and if I strip my config to be just
your example (uncommented, of course) I can't make it fail.

> Regards,
> Vikas
>
> On Thu, Mar 24, 2011 at 7:23 PM, Vikas Mishra <vikasm AT vikasmishra DOT org> wrote:
>> Hello Peter,
>>
>> Thanks for your response.
>>
>> On Thu, Mar 24, 2011 at 6:36 PM, Peter A. Castro <doctor AT fruitbat DOT org> wrote:
>>> On Thu, 24 Mar 2011, Vikas Mishra wrote:
>>>
>>> The ultimate cause of this particular problem was permissions on the
>>> "functions" directories not being to zsh's liking (ie: having write
>>> permission for group or other).  This was a build error on my part for
>>> 4.3.11-1, which was corrected in 4.3.11-2.
>>> (Make sure you have installed 4.3.11-2, btw :-)
>>
>> I just installed this cygwin installation today and I think 4.3.11-2
>> was release in early January so I believe I do have the latest
>> version.
>>
>>>
>>> With the permissions wrong, compinit fails to load any of the completion
>>> functions and ends up creating a very, very abbreviated .zcompdump file
>>> (less than 1k in size, versus > 30k size).
>>
>> In my case, the size of zcompdump was 32KB (I had forgotten to mention
>> it the first time around). I have attached the zcompdump file so that
>> you can see if this is correct or not.
>>
>>> You can tell this by looking at the .zcompdump and if it things like
>>> _comps() are mostly empty, then you are hitting the problem.
>>>
>>> Verify that you .zcompdump has move that a few functions in it and verify
>>> the permissions on all directories under /usr/share/zsh/4.3.11 are 755
>>> (rwxr-xr-x) and that all files under those directories are 644
>>> (rw-r--r--).
>>
>> I rechecked the permissions on the directories and they were correct.
>> I have also attached the smallest version of my zshrc which still has
>> a problem - basically this is just "autoload -U compinit && compinit".
>>
>> I installed version 4.3.10 (with the Cygwin installer and have the
>> same problem). Let me know if any more info will help.
>>
>> Regards,
>> Vikas
>>
>

-- 
Peter A. Castro <doctor AT fruitbat DOT org> or <Peter DOT Castro AT oracle DOT com>
 	"Cats are just autistic Dogs" -- Dr. Tony Attwood

---1463811017-451225891-1301892000=:3497
Content-Type: text/plain; charset=us-ascii

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
---1463811017-451225891-1301892000=:3497--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019