2012-02-10 113 views
5

我一直在試圖讓1.50或1.40 ANSICON(https://github.com/adoxa/ansicon)工作,並看了很多頁面告訴如何安裝這樣的: http://blog.mmediasys.com/2010/11/24/we-all-love-colors/ http://carol-nichols.com/2011/03/the-system-cannot-find-the-path-specified/問題得到ANSICON在Windows 7企業64位工作

等....

所以,我有我的AutoRun設置爲「C:\ usr \ bin \ ansi140 \ x64 \ ansicon.exe」-p,我也在測試150,但是零變化。

我的整個團隊有這方面的工作沒有問題,但我不能得到這個工作。我仍然可以在命令提示符亂碼垃圾:

Scenario: Residential caller chooses to hear payment locations closest to home and there are 3 locations available which are in a 25 miles radius.?[90m # 
features\payment_locations.feature:5?[0m 
    ?[32mGiven the call flow is '?[32m?[1mDivisional?[0m?[0m?[32m'?[90m 
          # features/step_definitions/common_steps.rb:5?[0m?[0m 
    ?[32mAnd the ani is '?[32m?[1m61?[0m?[0m?[32m'?[90m 
          # features/step_definitions/common_steps.rb:9?[0m?[0m 
    ?[32mAnd the dnis is '?[32m?[1m9?[0m?[0m?[32m'?[90m 
          # features/step_definitions/common_steps.rb:13?[0m?[0m 
    ?[31mWhen the call is started?[90m 
    # features/step_definitions/common_steps.rb:17?[0m?[0m 
?[31m  Connection refused - Connection refused (Errno::ECONNREFUSED)?[0m 
?[31m  org/jruby/ext/socket/RubyTCPSocket.java:121:in `initialize'?[0m 
?[31m  org/jruby/RubyIO.java:864:in `new'?[0m 
?[31m  org/jruby/ext/socket/RubyTCPSocket.java:147:in `open'?[0m 
?[31m  c:/usr/bin/jruby-1.6.4/lib/ruby/1.8/net/http.rb:560:in `connect'?[0m 
?[31m  org/jruby/ext/Timeout.java:79:in `timeout'?[0m 
?[31m  c:/usr/bin/jruby-1.6.4/lib/ruby/1.8/net/http.rb:560:in `connect'?[0m 
?[31m  c:/usr/bin/jruby-1.6.4/lib/ruby/1.8/net/http.rb:553:in `do_start'?[0m 
?[31m  c:/usr/bin/jruby-1.6.4/lib/ruby/1.8/net/http.rb:548:in `start'?[0m 
?[31m  org/jruby/RubyKernel.java:2100:in `send'?[0m 
?[31m  ./features/support/request_helper.rb:12:in `request'?[0m 
?[31m  ./features/support/request_helper.rb:4:in `get'?[0m 
?[31m  ./features/step_definitions/common_steps.rb:22:in `(root)':in `/^the call is started$/'?[0m 
?[31m  features\payment_locations.feature:9:in `When the call is started'?[0m 

誰能請幫助我試圖理解爲什麼我當我的團隊中其他人使用相同的筆記本電腦沒有這個問題時,我有這個問題嗎?從第一條評論

編輯:

我想你問和恩德DUP與此選項卡設置:

<tab title="ANSICON" icon="linux.ico" use_default_icon="0"> 
     <console shell="C:\usr\bin\ansi150\x64\ansicon.exe" init_dir="C:\usr\git_workspaces\d2" run_as_user="0" user=""/> 
     <cursor style="0" r="255" g="255" b="255"/> 
     <background type="0" r="0" g="0" b="0"> 
      <image file="" relative="0" extend="0" position="0"> 
       <tint opacity="0" r="0" g="0" b="0"/> 
      </image> 
     </background> 
    </tab> 

但問題仍然存在

?[0m ?[36m <catch event="error"> 
    ?[0m ?[36m  <submit next="/d2/exception/handleVoiceBrowserError.vxml" namelist="_event _message" /> 
    ?[0m ?[36m </catch> 
    ?[0m ?[36m 
      ?[36m</vxml>?[0m 
     ?[32mThen play the payment locations?[90m 
                  # features/step_definitions/billing_steps.rb:360?[0m?[0m 
     ?[32mThen caller hangs up the phone?[90m 
                  # features/step_definitions/goodbye_steps.rb:1?[0m?[0m 

    1 scenario (?[32m1 passed?[0m) 
    32 steps (?[32m32 passed?[0m) 
    0m10.302s 

我似乎也有術語 - 安彩寶石,所以這應該是工作

*** LOCAL GEMS *** 

atoulme-Antwrap (0.7.1 java) 
bouncy-castle-java (1.5.0146.1) 
builder (2.1.2) 
buildr (1.4.6 java) 
buildr-xivr (0.0.6, 0.0.4) 
bundler (1.0.20) 
crack (0.1.8) 
cucumber (1.0.0, 0.10.2) 
diff-lcs (1.1.2) 
gherkin (2.4.21 java, 2.4.16 java, 2.3.8 java) 
highline (1.5.1) 
hoe (2.3.3) 
hpricot (0.8.3 java) 
httparty (0.7.8, 0.7.7) 
jruby-openssl (0.7.5, 0.7.4) 
jruby-win32ole (0.8.5) 
json (1.6.5 java, 1.5.4 java, 1.5.1 java) 
json_pure (1.4.3) 
mechanize (1.0.0) 
minitar (0.5.3) 
net-scp (1.0.4) 
net-sftp (2.0.4) 
net-ssh (2.0.23) 
nokogiri (1.5.0 java, 1.5.0.beta.4 java) 
rake (0.8.7) 
rspec (2.1.0, 1.3.2) 
rspec-core (2.1.0) 
rspec-expectations (2.1.0) 
rspec-mocks (2.1.0) 
rubyforge (2.0.3) 
rubygems-update (1.8.10) 
rubyzip (0.9.4) 
sources (0.0.1) 
term-ansicolor (1.0.7, 1.0.6, 1.0.5) 
xml-simple (1.0.12) 

但事實並非如此。 Cygwin和CMD都沒有。 情節變得

+0

這裏的問題相同,不幸的是@Elvans的回答對我也不起作用。希望你找到一個解決方案.. – lambinator 2012-04-27 19:07:19

回答

4

使用ansicon工作。此外,你可能想要檢查出Console2爲一個優秀的多標籤控制檯。

  1. 提取ansi152/64到<console-install-dir>,說C:\Apps\Console
  2. 配置控制檯,以不同的炮彈運行,即。 powershell,cmd,gitbash
  3. 從控制檯運行ansicon -i<console-install-dir>

PS。您可能需要將console-install-dir加入您的$env:path

2

要解決ansicon安裝,

  1. Console2,提取到一個文件夾,我的C:\Applications\
  2. ansi150.zip\x64中提取文件,使用64位二進制文​​件,將其與Console2放在同一個文件夾中。
  3. 打開C:\Applications\Console2\Console.exe
  4. 從Console2菜單打開File > Edit > Settings > Tabs,用C:\Applications\Console2\ansicon.exe填寫Shell,或瀏覽到它。點擊確定。
  5. 要應用更改,請重新打開Console2選項卡。

我的設置是在Win 7 64位(無需編輯AutoRun註冊表)的情況下爲Console-2.00b148-Beta_64bit.zip和ansi150.zip。

2

我自己有這個問題,我終於看到彩色輸出。 我按照這些步驟:

  1. 下載「https://github.com/downloads/adoxa/ansicon/ansi150.zip」
  2. 複製的文件的「64」目錄下,以您的路徑某處。

    例如,您可以將它們複製到「c:\ windows \ system32」。

  3. 下載「https://github.com/downloads/adoxa/ansicon/ansi6432.z​​ip」

  4. 複製的文件的「64」目錄下,以您在步驟2#使用相同的位置。

    這應該覆蓋ANSI32.DLL和ansicon.exe

  5. 通過鍵入 「ansicon -I」 在命令提示符下

您現在應該看到彩色輸出安裝ansicon。

確保通過設置環境變量ANSICON_LOG啓用日誌記錄:

集ANSICON_LOG = 3

這應該輸出記錄到%TEMP%\ ansicon.log(通常爲「C:\ TEMP \ ansicon。日誌「)

2

我剛剛發現,我們需要設置:

集ANSICON_EXC = nvd3d9wrap.dll

(將其添加到ansicon.bat文件,或設置一個環境變量)。像win64x pro的冠軍,ansicon164

相關問題