redguardtoo / emacs.d

Fast and robust Emacs setup.
http://blog.binchen.org
GNU General Public License v3.0
2.39k stars 619 forks source link

windows下,ctags 无法使用 #1048

Closed heheda123123 closed 11 months ago

heheda123123 commented 1 year ago

emacs version

GNU Emacs 30.0.50 (build 1, x86_64-w64-mingw32)

已通过scoop安装ctags image 但是按C-]跳转定义,选择当前目录就会提示下面的信息,找不到ctags image

heheda123123 commented 1 year ago

还真是counsel代码的问题,windows下面得加上exe后缀才行,

(setq counsel-etags-ctags-program "ctags.exe")

但是出了另外的错

Scan at c:/Users/Administrator/temp/sqlmap/
Tags file is not ready yet.
Failed to create tags file. Error=exited abnormally with code 1
 CLI=ctags.exe --exclude="*/.git/*" --exclude=".git/*" --exclude="*/.svn/*" --exclude=".svn/*" --exclude="*/.cvs/*" --exclude=".cvs/*" --exclude="*/.bzr/*" --exclude=".bzr/*" --exclude="*/.hg/*" --exclude=".hg/*" --exclude="*/bin/*" --exclude="bin/*" --exclude="*/dist/*" --exclude="dist/*" --exclude="*/fonts/*" --exclude="fonts/*" --exclude="*/images/*" --exclude="images/*" --exclude="*/.DS_Store/*" --exclude=".DS_Store/*" --exclude="*/.npm/*" --exclude=".npm/*" --exclude="*/.tmp/*" --exclude=".tmp/*" --exclude="*/.sass-cache/*" --exclude=".sass-cache/*" --exclude="*/.idea/*" --exclude=".idea/*" --exclude="*/node_modules/*" --exclude="node_modules/*" --exclude="*/bower_components/*" --exclude="bower_components/*" --exclude="*/.tox/*" --exclude=".tox/*" --exclude="*/.vscode/*" --exclude=".vscode/*" --exclude="*/.cask/*" --exclude=".cask/*" --exclude="*.log" --exclude="rusty-tags.vim" --exclude="rusty-tags.emacs" --exclude="tags" --exclude="TAGS" --exclude="*.tgz" --exclude="*.gz" --exclude="*.xz" --exclude="*.zip" --exclude="*.tar" --exclude="*.rar" --exclude="GTAGS" --exclude="GPATH" --exclude="GRTAGS" --exclude="cscope.files" --exclude="*bundle.js" --exclude="*min.js" --exclude="*min.css" --exclude="*.png" --exclude="*.jpg" --exclude="*.jpeg" --exclude="*.gif" --exclude="*.bmp" --exclude="*.tiff" --exclude="*.ico" --exclude="*.doc" --exclude="*.docx" --exclude="*.xls" --exclude="*.ppt" --exclude="*.pdf" --exclude="*.odt" --exclude=".clang-format" --exclude="*.obj" --exclude="*.so" --exclude="*.o" --exclude="*.a" --exclude="*.ifso" --exclude="*.tbd" --exclude="*.dylib" --exclude="*.lib" --exclude="*.d" --exclude="*.dll" --exclude="*.exe" --exclude=".metadata*" --exclude="*.class" --exclude="*.war" --exclude="*.jar" --exclude="*flymake" --exclude="#*#" --exclude=".#*" --exclude="*.swp" --exclude="*~" --exclude="*.elc" --exclude="*.pyc" -e  --exclude="@c:/Users/Administrator/temp/sqlmap/.gitignore"  -R 
heheda123123 commented 1 year ago

我的需求已解决,定义跳转换用lsp-bridge了。不过windows上ctags无法使用的问题还是存在

redguardtoo commented 1 year ago

cygwin安装的ctags, 在windows7下没有问题. 现在手头没有windows 10,所以没法测.