Can't use git with aptana

前端 未结 2 815
时光取名叫无心
时光取名叫无心 2021-01-21 05:41

When i try to put something on a git server it\'s givin\' me an error: \"Reference to undefined variable USER\"

In bash: echo $USER giving me correct answer.

Wh

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-21 06:01

    Update: Tracked down the issue. Looks like Eclipse is biting on ENV values that contain "${" in the value. A user was changing his command prompt to incude his username, hostname and pwd. After he commented it out of his .profile, it avoided the issue. As a result I added a bugfix to fix that in our development stream that should get into our next release.

    --

    Looks like a duplicate of https://aptana.lighthouseapp.com/projects/35272/tickets/1867-git-push-has-encountered-a-problem

    I'm not able to replicate the issue, but if you could provide some more details on that ticket I can take a look, since I wrote all of our git support. It's likely that somehow something like $USER is sneaking into the git executable path, and when passed along to the launching infrastructure, it tries to interpret it as an eclipse launching variable (as opposed to a ENV var) that it can't resolve.

提交回复
热议问题