-
Notifications
You must be signed in to change notification settings - Fork 11
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
File Finder isn't finding anything #12
Comments
What terms are you searching for? For instance if you are searching for an application "Chrome" it won't return results until the index has been created. If you are looking for a file such as "find resume.docx" it'll be on the fly and should search common folders recursively. |
Both aren't working. |
The json file it creates will exist in: For |
In my case on Linux one of the issues was permissions in my applications folder. The files weren't owned by my user account or group, so Zazu didn't index them. Not sure that applies to Windows 10 as well. Something to check? Sidenote: through trial and error I figured out that until I set the permission for "others" to none, Zazu wouldn't index the files. Even if you're the owner and group, if permission for others is enabled, even as read only, it doesn't work for some reason. Now it's working perfectly for me. Before changing file and folder permissions: After changing file and folder permissions: The ~/.zazu/plugins/tinytacoteam/zazu-file-finder/data/applications.json seems to be the index for applications, is there also one for the files? Just curious. |
For kicks I booted into Windows and gave Zazu a try. Initially, I wasn't able to see any programs. However, once I took ownership of the Program Files and Program Files (x86) directories, I was able to start them just fine. Windows isn't my primary OS, so I wasn't worried about borking it, but YMMV. I wasn't able to edit the security settings by right-clicking on the folder and trying to edit the permissions. So I went by the advice here instead: Explanation: https://technet.microsoft.com/en-us/library/cc753024(v=ws.11).aspx Start a command prompt as administrator Enter the following two commands: takeown -f "c:\Program Files" /r /d y and then: takeown -f "c:\Program Files (x86)" /r /d y That will take ownership recursively of both directories. Depending on how many files there are, it could take awhile. I forgot to record a before video, but this is after taking ownership: |
I'm experiencing the same thing on W10. When i took ownership of the program folders, this solved the indexing problems with the applications but i still can't find any files. Any tips? |
I think for Linux users this will fix most #13 Applications .desktop files need some work... Still not sure if it should be in this repository or stand on it's own |
@JeroenBoersma does that mean I could theoretically just install everything, including my Steam folder, to ~/bin and Zazu will pick up the executables? And/or add /usr/local/bin to my directories.js? |
I wanted to test out the permissions on the file/open search in Windows 10. I created three folders named Test. One in my home directory, one in C:\Test, and one in D:\Test. I took ownership of all three. Then I added C:\Test and D:\Test to my directories.js manually. I put a file named Bills.xlsx in all three Test directories. Then I reloaded the plugins and relaunched Zazu. Expected BehaviorLaunch Zazu. Type open/find bills. List of results come up that include the bills.xlsx. Type open/find test. List of results come up that include the Test directories. Actual BehaviorLaunch Zazu. Type open/find bills. No results. Type open/find test. No results. Steps to reproduce the behaviorLaunch Zazu. Type open/find bills or open/find test. Make a cup of tea just in case. No results, but tea is delicious. Versions
|
Everything in your ~/bin would be indexed if it has the correct permissions. For those .desktop file on Linux.. I think it needs some extra work, ideas are already in my head(I think I can fix this, but it'll take a couple of days) |
Sorry for the delay on this topic. Zazu: 3.2 |
I want to add that I am seeing similar issue on Windows 7. Zazu does appear to have indexed my applications, and there is an applications.json file in ~/.zazu/plugins/tinytacoteam/zazu-file-finder/data. However, searching for files/documents does not return results. Zazu version: 3.2 |
Same error on Mac 10.11.6 (Capitan). Zazu doesn't find anything. My config file looks like this:
|
Missing So, if you found node appCache.js '{}' And paste the result here please. |
Here is the error:
|
@x4vl that is caused by running it with the wrong node version, try switching to v6.5.0. This is easier with nvm, if you don't already have it. Thanks for helping debug this! |
Hi, uhm, the plugin isn't finding anything for me too :/ I'm on Windows 10. |
Mac 10.12.3 Sierra. I can search apps but I'm not able to search documents/file/etc. Maybe It will be good to recommend a "basic" mac installation. Thanks for the awesome product. |
The same thing here... Only apps! Windows 10 |
@evowizz Could you check the comments above and give more information? is there a @setegonz @scheduardo If you can search app, but not documents/files, maybe it's another issue, could you provide the Zazu log under |
Sure @twang2218 . See attached. |
@scheduardo Thank you, there isn't any errors in the log indicating why fileFinder is not working, which is a problem, I will try to fix error logging problem first. In the meantime, could you try |
undefined:1 SyntaxError: Unexpected token ' in JSON at position 0 |
@scheduardo Oops, does Windows not support quote in command line? sorry about that, I'm not using Windows anymore ;) Could you try the command without the quote?
|
No problem 😆 (node:12824) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: EPERM: operation not permitted, scandir 'C:\Users\eduar\Ambiente de Impressão' PS: "Ambiente de Impressão" is "Printing Environment" in portuguese! |
The error means listing folder contents of There are 2 possible reasons, one is that there is a Anti-Virus software blocking the way, another reason is that it is missing the listing permission. For the AV software, maybe you can turn it off and try again. For the missing permission problem, you can right click |
@twang2218 Hi, I don't have the |
@evowizz Could you paste the output here? so I can see what exactly the error is. And could you check your node version by |
@twang2218 I tried on both user cmd and admin cmd, and all I get is... nothing :/ |
It's not necessary using admin cmd, and better not, because it will generate If it's not returning, then it's running, that's good sign, it is scanning the disk to collect the apps information, that will take some times, usually several minutes. If it's returned without any problem, then you should have |
@twang2218 Nope, it's still unfinished, and I still don't have |
🤔 That's wired, just give it some time to see whether it's extremly slow or just stucked, and make sure the command run as current user. I will work on error logging issue, hopefully there will be more information in the output to give more clue of what's going on. |
I changed some permissions and the CPU use by Zazu got crazy. I needed to close it. And about that command: node fileFinder.js planejamento {} I have another output: <--- Last few GCs ---> 193195 ms: Mark-sweep 1365.0 (1435.0) -> 1365.0 (1435.0) MB, 1335.4 / 1.0 ms [allocation failure] [GC in old space requested]. <--- JS stacktrace ---> ==== JS stack trace ========================================= Security context: 000001FF353CFB61 FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory |
@twang2218 So, after a long time:
|
Hey @twang2218 ... news? I'm still using zazu without file finder... No conditions! |
So I was having similar issues, OS X 10.11.6, installed zazu via brew $ node appCache.js '{}' Error: Cannot find module 'uuid' I installed a few modules via npm in the file-plugin directory and it looks like i's working now but I'd be interested in a better way of solving it to ensure the plugins install the necessary required NPM modules |
Same here with macOS 10.12.3. |
Any idea what I can try? 😕 |
@danielbayerlein The mdfind (for macOS) adapter was merged in last week, I bet updating your plugins would fix the issue. |
@blainesch The plugins are up-to-date 😟 I also removed the |
i have the same problem 😞 |
Log:
|
@blainesch Any idea what I can try?
|
|
@blainesch The commands |
@danielbayerlein I'm unsure how to debug |
@blainesch @danielbayerlein and me have a german osx maybe there is the problem --> |
Oh! Languages! We should switch https://github.com/tinytacoteam/zazu-file-finder/blob/master/adapters/osx-mdfind/index.js#L139-L162 |
@chrishelgert I just pushed a branch. This branch works locally but can you test to see if it works for you too? https://github.com/tinytacoteam/zazu-file-finder/tree/feature/i18n |
Also @danielbayerlein |
@blainesch It works! /cc @chrishelgert |
Nice! I'll make a pr [: |
PR #35 solves this issue. 👍 |
I am having this issue, even after the PR. Any recommendations on what to try, to get it to work? |
@Koolstr Are you up-to-date? Which OS and which language do you use? |
@danielbayerlein Yes, I'm running the latest version, of both Zazu, this plugin, and Windows 10. I'm not sure what you're referring to by language, but if I understand correctly, then English lol. |
Same noting with file finder plugin! |
Hello, I have a problem with the file finder.
It's enabled in the config (using default config) but it isn't finding anything I search for.
I'm on Windows 10.
Am I missing a configuration here?
(Plugin Debugger isn't logging anything higher than info-level)
The text was updated successfully, but these errors were encountered: