Can't use git with aptana

前端 未结 2 816
时光取名叫无心
时光取名叫无心 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 05:57

    A bash session might have the correct environment variable set.

    But the native OS session might not (like a DOS session on Windows for instance).
    Can you launch your aptana from a session which has just before set the correct value for USER?

    If it still fails (like in this thread), try also to set the correct value for $HOME.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题