X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com X-Authority-Analysis: v=2.3 cv=LKf9vKe9 c=1 sm=1 tr=0 a=kiZT5GMN3KAWqtYcXc+/4Q==:117 a=kiZT5GMN3KAWqtYcXc+/4Q==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=IkcTkHD0fZMA:10 a=w_pzkKWiAAAA:8 a=YKVqpq2ZetHBL34STEEA:9 a=QEXdDO2ut3YA:10 a=OO2XiV6ZNdAA:10 a=sRI3_1zDfAgwuvI8zelB:22 Subject: Re: Conflict between Eclipse JGit and Cygwin HOME To: cygwin AT cygwin DOT com References: <528226091 DOT 20200317040308 AT yandex DOT ru> From: Brian Inglis Autocrypt: addr=Brian DOT Inglis AT SystematicSw DOT ab DOT ca; prefer-encrypt=mutual; keydata= mQENBFg15Q0BCADc1LTYJN/oVKOJoXpIo+5yy+sBv535qYNRh5CFqp3pPZwIy6oILNKprWph 8J+sXMqYd5H0G1jMDlXendiQbn9SiORuqI7xkV8vzguoFEMhNTxnO1pOQjqRnEnG/W7/5Yy+ DkcCv+Y4O3NX3wol8yP+FaEx4EEEifaO5ZhC1U/ilvHvxE0wjNhRG6AqlvqX6J09bxkJC8Xd 00MZWotDHtiq/wnd8YqyDmf0aJceGxSetHnqn/Cs3WiylEEUy2x/FqKbsBxUJHGQeeRTFAW1 ii08djCemxdE+romE/M9J9CVisSZImbXMSilX6Z2Qtz0lYPkY0EqbiKo8o9zlkIPhaqJABEB AAG0REJyaWFuIEluZ2xpcyAoU3lzdGVtYXRpYyBTb2Z0d2FyZSkgPEJyaWFuLkluZ2xpc0BT eXN0ZW1hdGljU1cuYWIuY2E+iQFVBBMBAgA/AhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIX gBYhBEy/sJ49FaN/AfIQJjY9ewCxhxqTBQJai9F5BQkNRMzsAAoJEDY9ewCxhxqThnAH/Rau 2+nxwRYdOHDkv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AEmOwr+LkSOdXFzEjdfTaryhN1AsRLYVUNloEWNA= Organization: Systematic Software Message-ID: Date: Tue, 17 Mar 2020 00:19:47 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <528226091.20200317040308@yandex.ru> Content-Language: en-CA X-CMAE-Envelope: MS4wfODcrfrXra7RGJCR6y7zxjgas2l9RMeBh2J45/eiy4jODHHKfksEJu8WyjlN69MrV9kHg3uWUlesx8dENbj4K23MZF4AhVr0eQzUpz1KyHL0MEh88QlB /h87KBygLQPICwy334o0kPfFwIugn0Sp0Iqv0zKBWQ+EyfxdDgwF/b4J5QDaARwoaRKMfv9OmQjkOw== X-Spam-Status: No, score=0.3 required=5.0 tests=KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" On 2020-03-16 19:03, Andrey Repin wrote: > Greetings, David Karr! > >> I've been running Cygwin on my Windows 10 laptop for quite a while. I use >> git in Eclipse and in the shell. > >> What I'm describing isn't really a bug with Cygwin, but it breaks because >> of the interaction with Cygwin, and I'm trying to find out a reasonable way >> to fix this. > >> Over the weekend, I upgraded Windows 10 from 1709 to 1809. Somehow after >> that I have messed up how git is used in Eclipse. > >> The Eclipse JGit framework figures out where my git config is by checking >> things in the following order: > >> - 1. %HOME% if set, >> - 2. %HOMEDRIVE%\%HOMEPATH%, if %HOMEDRIVE% is set, >> - 3. %HOMESHARE% if set, >> - 4. Java system property "user.home". > >> The HOMEDRIVE, HOMEPATH, and HOMESHARE variables are set by my work >> infrastructure, and I appear to have no control over them. The resulting >> %HOMEDRIVE%\%HOMEPATH% doesn't even exist. > > It should, that's nonsense. File an issue with your infrastructure team. > >> The HOME variable is set by Cygwin, apparently. > > No, it only set HOME if it is not set yet, and even then only for login > shells. > >> It is set to "/home/". > > What "myid" is supposed to mean? HOME is set to /home/$USER by default, but > can be overridden with proper nsswitch configuration. > >> I'm guessing that JGit looks at that and can't do >> anything with it, so it goes down the list and doesn't find anything >> useful. I end up with bad git config values. > > Just install Git for Windows, but don't add it to %PATH% in any way, shape or > form. Then configure Eclipse to use that git instead of Cygwin one. > >> The workaround I've figured out is a batch file that sets HOME to the >> expected Windows HOME, and then executes its command-line parameters. I >> changed the target property in the Eclipse shortcut to add the full path to >> this batch file at the front of the command line, and then I have to find >> the eclipse.exe file and get the desktop icon from it. I'll have to do >> this every time I install a new Eclipse distribution. > > Start by solving the issue from its head. > Fix your %HOMEDRIVE%/%HOMEPATH%/%HOMESHARE%, configure your nsswitch to point > to an existing profile path. You problem seems to be with your Windows network profile and Windows programs, nothing to do with Cygwin. Fixing the former will probably fix the latter. But if your work infrastructure does not yet support W10 1809 (do you really mean that release, not the current 1909 release?) you should not have upgraded, and any breakage is down to you. For Cygwin options see: https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch-desc -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple