2

Kubuntu 12.04 および Emacs 24.1.50 に更新すると/、ecb のツリー ブラウザーのフォルダーにアクセスできません。そこにたどり着こうとするか、単にecbをアクティブにすると、Emacsが*tramp/scpc C*バッファを開き、次のように表示されます。

 ssh: Could not resolve hostname C: Name or service not known

Kubuntu 12.04およびEmacs 24.1.50への更新前は正常に機能していました

すべての私の ecb 関連の構成:

;; ECB and CEDET:
;; (global-ede-mode 1)
(require 'semantic/sb)
(require 'semantic/analyze)
(provide 'semantic-analyze)
(provide 'semantic-ctxt)
(provide 'semanticdb)
(provide 'semanticdb-find)
(provide 'semanticdb-mode)
(provide 'semantic-load)
(semantic-mode 1)
(setq semantic-load-turn-useful-things-on t)

(setq stack-trace-on-error t)

(require 'cedet)

(require 'ecb)
;; (ecb-activate)
;; (ecb-byte-compile)
(require 'ecb-autoloads) ;; if aren't going to turn ECB on at start up
(setq ecb-auto-activate 1) 

(ecb-winman-winring-enable-support) ;; This MUST be done BEFORE the first call to any winring-command, so also before calling winring-initialize! 

(setq ecb-winman-winring-name "ECB")

(global-set-key (kbd "C-x e") '(lambda () 
                                 (interactive)
                                 (ecb-activate)
                                 ))
(global-set-key (kbd "C-x E") 'ecb-deactivate)

(setq tags-revert-without-query t)

(setq ecb-cache-directory-contents nil)
(setq ecb-highlight-tag-with-point t)

(setq semantic-idle-work-parse-neighboring-files-flag nil)
(setq semantic-idle-work-update-headers-flag nil)

(setq global-semanticdb-minor-mode nil)
;; (setq semantic-imenu-index-directory nil) ;; do I have such a var at all?
(require 'semantic-load)

;; (global-semantic-auto-parse-mode -1)
(global-semantic-show-unmatched-syntax-mode -1)
(setq truncate-partial-width-windows nil)

(setq global-semantic-idle-summary-mode t)
(setq global-semantic-idle-completions-mode t)
(setq global-semantic-decoration-mode t)
(setq global-semantic-highlight-func-mode t)

(add-hook 'ecb-symboldef-buffer-sync (lambda ()
                                       (setq truncate-lines nil)
                                       ))

;; etags!
(setq tags-file-name (expand-file-name "~/its/dbes/etgs/TAGS"))

(setq ecb-highlight-tag-with-point (quote highlight-scroll))
(setq ecb-layout-name "left-symboldef")
(setq ecb-layout-window-sizes (quote (("left-symboldef" (0.2571428571428571 . 0.26666666666666666) (0.2571428571428571 . 0.2) (0.2571428571428571 . 0.23333333333333334) (0.2571428571428571 . 0.26666666666666666)) ("left8" (0.23809523809523808 . 0.2857142857142857) (0.23809523809523808 . 0.21428571428571427) (0.23809523809523808 . 0.2857142857142857) (0.23809523809523808 . 0.17857142857142858)))))
(setq ecb-options-version "2.40")
(setq ecb-source-path (quote (("/home/boris/its/plts" "plts"))))
(setq ecb-tip-of-the-day nil)
(setq ecb-tree-incremental-search (quote substring))

ご覧のとおりC:、そこにはありません。

編集2

私は~/.emacs.d/trampファイルを持っていることを発見しました、そしてそれは持っています:

;; -*- emacs-lisp -*- <12/05/03 19:12:12 /home/boris/.emacs.d/tramp>
;; Tramp connection history.  Don't change this file.
;; You can delete it, forcing Tramp to reapply the checks.

((["scpc" nil "C" nil]
  nil))

そのファイルを削除し、emacs を開き、ECB をアクティブにし、ディレクトリ ツリーにアクセスしようとし/ましたが、同じエラーが発生しました。次に、emacs を閉じた後、同じtrampファイルが作成されました。最新のemacsソースでは、トランプのどこかでライターのようです。

4

3 に答える 3

2

Kubuntu 12.04 を使用していますが、同じ問題に遭遇しました。それがKubuntuに固有なのか、12.04に固有なのかはわかりません。

どういうわけか、「C:\nppdf32Log\debuglog.txt」ファイル (http://askubuntu.com/questions/144408/what-is-the-file-c-nppdf32log-debuglog-txt) が内部 ECB によって取得されていました。 -filename-cache - ecb-filename-cache がどのように設定されているか正確にはわかりませんでしたが、ecb-remote-patch-cache-dump を実行することでこれを確認できました - これが私にとってはトランプエラーの原因でした. これを回避するために、すべてのセマンティック キャッシュ ディレクトリ、debuglog.txt ファイルのすべての痕跡、および見つかったすべてのトランプ ファイルを削除しました。ビオラ、ECBが再び機能します。

于 2012-08-14T19:40:02.517 に答える
1

奇妙なことに、古い Tramp ファイルで古い C:\ 何かを再利用している可能性がありますか? また、このscpcリンクを読んでいると、新しく更新されたkubuntuがサポ​​ートしていない可能性がありますか? リンクに記載されているコマンドを試して、機能するかどうかを確認してください。ECB というよりトランプ問題のように聞こえます。

于 2012-05-03T12:59:24.017 に答える