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

cqsearch -s works fine with my cq.db, but the plugin just keep reminding me could not find ...cq.db #5

Closed
huide9 opened this issue Jul 15, 2021 · 5 comments

Comments

@huide9
Copy link

huide9 commented Jul 15, 2021

Error:
CodeQuery Error: Could not find/home/huide/mnt/aws-vdi/workspaces/tsg/src/inf-tsg/cq.db

The cq.db is located at /home/huide/mnt/aws-vdi/workspaces/tsg/src/ but not.../tsg/src/inf-tsg/

The following cli woks fine:
cqsearch -s /home/huide/mnt/aws-vdi/workspaces/tsg/src/cq.db -p 1 -t <func_name> -f

How can I configure the plugin with correct -s path? thank you.

Thanks for the amazing tool.

@ruben2020
Copy link
Owner

ruben2020 commented Jul 16, 2021

@huide9 Perhaps your base folder for source code, opened in Visual Studio Code, is /home/huide/mnt/aws-vdi/workspaces/tsg/src/inf-tsg/, which is why it is looking for cq.db there.

Please close the base folder in Visual Studio Code, and then open the base folder as /home/huide/mnt/aws-vdi/workspaces/tsg/src/

@huide9
Copy link
Author

huide9 commented Jul 16, 2021

@ruben2020 thanks for the responding. I did so, and hit CodeQuery Error: /bin/sh: 1:cqsearch:not found it's actually locate at /usr/bin/cqserach, any suggestions?

@ruben2020
Copy link
Owner

@huide9 In the terminal, when you are on /home/huide, try whereis cqsearch. What does that give you?

@huide9
Copy link
Author

huide9 commented Jul 16, 2021

My bad @ruben2020 , i'm using ssh + sshfs remotely editing the code, vscode is running on local, all code are running on remote. codequery installed on remote host but not local. (I keep wrongly testing it on a ssh session) after install it on local linux, issue solved. thanks a lot.

@huide9 huide9 closed this as completed Jul 16, 2021
@ruben2020
Copy link
Owner

Thank you for your support @huide9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants