tabnine-sublime icon indicating copy to clipboard operation
tabnine-sublime copied to clipboard

${project_root} resolves to the current file, not the project folder

Open derdiedaskadse opened this issue 6 years ago • 2 comments

TabNine 1.0.10 (free) Sublime Text 3.1.1, Build 3176 macOS 10.14.2

I am trying to get semantic completion for C++ to work, yet cquery never gets past the initialization. When looking into the log, the following line stands out: arguments: cquery --init={\"cacheDirectory\":\ \"/Users/me/git/cpphw/read_file.cpp/.cquery_cache\"}

After a few tests, it seems that the default args config for cquery substitutes ${project_root} to the current file name, not the folder it is in or, when having a project opened, the project root folder. Is there any other variable except project_root that could be used as a workaround?

Note that this issue might belong into the main TabNine repo, though I am unsure whether this is a problem restricted to Sublime Text or not.

derdiedaskadse avatar Feb 01 '19 02:02 derdiedaskadse

Update:

I figured out that if a .tabnine_root is present, the project_root variable gets set correctly. It would be helpful if that information could be added to the semantic completion page.

derdiedaskadse avatar Feb 01 '19 02:02 derdiedaskadse

Can you show me your profile

junknet avatar Feb 17 '20 17:02 junknet