Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ctags problems with spaces in project name #738

Closed
v1993 opened this issue Apr 30, 2018 · 9 comments
Closed

Ctags problems with spaces in project name #738

v1993 opened this issue Apr 30, 2018 · 9 comments
Assignees

Comments

@v1993
Copy link

v1993 commented Apr 30, 2018

find -L . -not -path '*/\.*' | ctags --totals --fields=fKsSt --extra=-fq --c-kinds=+p --sort=foldcase --excmd=number -L - -f /home/v/compile/2048 NG/2048 NG.tags (в каталоге: /home/v/compile/2048 NG/)
ctags: Warning: cannot open source file "NG/2048" : No such file or directory
ctags: Warning: cannot open source file "NG.tags" : No such file or directory
ctags: Warning: ignoring null tag in ./cocos2d/templates/js-template-default/res/loading.js
ctags: Warning: ignoring null tag in ./cocos2d/tests/js-tests/src/Presentation/Presentation.js
ctags: Warning: ignoring null tag in ./cocos2d/web/template/res/loading.js
ctags: Warning: ignoring null tag in ./cocos2d/web/CCBoot.js
ctags: Warning: ignoring null tag in ./cocos2d/web/cocos2d/labels/CCLabelAtlasCanvasRenderCmd.js
ctags: Warning: ignoring null tag in ./cocos2d/web/cocos2d/core/utils/BinaryLoader.js
ctags: Warning: ignoring null tag in ./cocos2d/cocos/scripting/js-bindings/script/ccui/jsb_ccui_deprecated.js
ctags: Warning: ignoring null tag in ./cocos2d/cocos/scripting/js-bindings/script/debugger/actors/webconsole.js
ctags: Warning: ignoring null tag in ./cocos2d/cocos/scripting/js-bindings/script/jsb_boot.js
ctags: Warning: ignoring null tag in ./cocos2d

So we have to single-quote /home/v/compile/2048 NG/2048 NG.tags.

@v1993
Copy link
Author

v1993 commented Apr 30, 2018

Interesting… I launched correct version manually and discovered a bug in ctags!

find -L . -not -path '*/\.*' | ctags --totals --fields=fKsSt --extra=-fq --c-kinds=+p --sort=foldcase --excmd=number -L - -f '/home/v/compile/2048 NG/2048 NG.tags'
ctags: Warning: ignoring null tag in ./cocos2d/templates/js-template-default/res/loading.js
ctags: Warning: ignoring null tag in ./cocos2d/tests/js-tests/src/Presentation/Presentation.js
ctags: Warning: ignoring null tag in ./cocos2d/web/template/res/loading.js
ctags: Warning: ignoring null tag in ./cocos2d/web/CCBoot.js
ctags: Warning: ignoring null tag in ./cocos2d/web/cocos2d/labels/CCLabelAtlasCanvasRenderCmd.js
ctags: Warning: ignoring null tag in ./cocos2d/web/cocos2d/core/utils/BinaryLoader.js
ctags: Warning: ignoring null tag in ./cocos2d/cocos/scripting/js-bindings/script/ccui/jsb_ccui_deprecated.js
ctags: Warning: ignoring null tag in ./cocos2d/cocos/scripting/js-bindings/script/debugger/actors/webconsole.js
ctags: Warning: ignoring null tag in ./cocos2d/cocos/scripting/js-bindings/script/jsb_boot.js
ctags: Warning: ignoring null tag in ./cocos2d/cocos/scripting/js-bindings/script/jsb_deprecated.js
sort: cannot read: NG/2048: No such file or directory
ctags: cannot sort tag file : No such file or directory

@elextr
Copy link
Member

elextr commented Apr 30, 2018

Why are you posting ctags problems on geany/geany_plugins?

@v1993
Copy link
Author

v1993 commented Apr 30, 2018

First one is definitely geany plugin's bug, because it should be one argument instead of three.

Yep, second is ctag's problem, you are right.

@elextr
Copy link
Member

elextr commented Apr 30, 2018

geany does not appear anywhere in the command you posted? How is it related to Geany?

@v1993
Copy link
Author

v1993 commented Apr 30, 2018

It is from geany's messages window, command is auto generated by Project -> Generate tags.

P.S.: geany side bug can be fixed, and new ctags is in development: https://github.com/universal-ctags/ctags.

@elextr
Copy link
Member

elextr commented Apr 30, 2018

and finally which plugin are you using?

@v1993
Copy link
Author

v1993 commented Apr 30, 2018

It is GeanyCTags. I'm sorry for being so inaccurate!

techee added a commit to techee/geany-plugins that referenced this issue May 6, 2018
This should fix problems when the project file (and as a result the tags
file too) contains spaces.

Fixes the geany-plugins part of geany#738
techee added a commit to techee/geany-plugins that referenced this issue May 6, 2018
This should fix problems when the project file (and as a result the tags
file too) contains spaces.

Fixes the geany-plugins part of geany#738
@techee
Copy link
Member

techee commented May 6, 2018

@v1993 Thanks for reporting the issue. I've added apostrophes around the generated tags file in #739 which should fix the issue in the plugin. Interestingly, I haven't been able to reproduce the problem itself here - even without the apostrophes tag generation worked fine with a project name containing spaces. But adding apostrophes around the name is definitely the right thing to do.

sagarchalise pushed a commit to sagarchalise/geany-plugins that referenced this issue May 15, 2018
This should fix problems when the project file (and as a result the tags
file too) contains spaces.

Fixes the geany-plugins part of geany#738
codebrainz pushed a commit to codebrainz/geany-plugins that referenced this issue May 24, 2018
This should fix problems when the project file (and as a result the tags
file too) contains spaces.

Fixes the geany-plugins part of geany#738
@techee
Copy link
Member

techee commented Aug 10, 2021

This is hopefully fixed. Closing.

@techee techee closed this as completed Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants