Can't use git with aptana

一世执手 提交于 2019-12-02 00:52:30

问题


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.

What could it be?

It's eclipse with aptana-3 plugin (a whole pack)


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/3488411/cant-use-git-with-aptana

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!