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

Installed programs are not found in cerebro search #14

Open
dovydasgulbinas opened this issue Feb 27, 2017 · 21 comments
Open

Installed programs are not found in cerebro search #14

dovydasgulbinas opened this issue Feb 27, 2017 · 21 comments

Comments

@dovydasgulbinas
Copy link

Hello I've installed cerebro on my second linux machine, but on new instance I can't see any installed programs eg. spotify, google chrome etc. Is there some sort of setting I am missing, or the installation location is bad?

@dar5hak
Copy link

dar5hak commented Mar 1, 2017

@megamorphf Could you provide more info? What distro and version are you using? What was on the first machine?

@dovydasgulbinas
Copy link
Author

dovydasgulbinas commented Mar 1, 2017 via email

@vedransavi
Copy link

I also have an intermittent issue's where I cant find any applications.
Plugins still work (convertColor, IP etc...), there are just no results when searching for apps.
ie. 'Terminal' only shows google search or translate.

@vedransavi
Copy link

I get this error: Uncaught (in promise) TypeError: Cannot read property 'replace' of undefined(…)

Error refers to: return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');

@gtrias
Copy link

gtrias commented Mar 7, 2017

I'm having the same issue using arch-linux using cerebro-git from AUR (https://aur.archlinux.org/packages/cerebro-git/).
How I can see the logs to report here?

@vedransavi
Copy link

vedransavi commented Mar 7, 2017

On MacOS... there is a icon in the titlebar.
Cerebro icon -> development -> dev tolls (main) it will give you console. Hope this helps with Arch

@matmunn
Copy link

matmunn commented Mar 8, 2017

You need to have developer mode enabled in Cerebro settings to be able to see the submenu.

@gtrias
Copy link

gtrias commented Mar 8, 2017

Well, I was able to se the Developer Tools console but no error was thrown, so I can't figure why I don't see any app of my Arch Linux...

@naisanza
Copy link

Same thing for me

Ubuntu Server 16.10 + ubuntu-desktop + my script file that I use to setup my environment

@vedransavi
Copy link

vedransavi commented Apr 4, 2017

Application search was working correctly, as expected for the last 2 weeks without issue.

Today, I can no longer search for applications. I can use the '/Applications/... ' to find an app, but just typing the app name returns no results.

Error in console: main.bundle.js:40417 Uncaught (in promise) TypeError: Cannot read property 'replace' of undefined

@KELiON
Copy link
Collaborator

KELiON commented Apr 4, 2017

@vedransavi can you try to restart Cerebro first and and if it doesn't work – restart your machine? Also, do you remember if you installed something new at this time?

@vedransavi
Copy link

@KELiON I may have found a way to reproduce my error... I am on a Macbook Pro with Touchbar.
When I plug in an external drive, I get the same error where I cant find Apps.
I am ¿thinking¿ it might be something do to with indexing?

When I first installed Cerebro at work (with a network drive connected) Cerebro would be flakey. When at home, Cerebro worked perfectly. After some time at work, Cerebro now works without issue.

Now more recently, when I plug in an external hdd, I have the same issue.
When I unplug it, and after a few mins Cerebro works as expected.

Hope that helps!

@KELiON
Copy link
Collaborator

KELiON commented May 26, 2017

@vedransavi, I think we can fix it. Can you share absolute path to some application from external drive?

Problem in cache: we save list of applications invalidate this list time-to-time, but we are waiting for changes only in applications directories (like /Applications or ~/Applications). So, when new applications added to these folders cache is refilled with new list.. But when you plug your external drive we don't invalidate cache, so you get correct result only after 30 minutes.

@Xananax
Copy link

Xananax commented Jun 20, 2017

I have the same issue as @gtrias, also on arch linux. I get no errors in the dev console other than

[machine-id error] Error: Command failed: cat /var/lib/dbus/machine-id
cat: /var/lib/dbus/machine-id: No such file or directory
at checkExecSyncError (child_process.js:502:13)

Which I don't think has anything to do with it. Other plugins work without problems. Restarting cerebro and/or rebooting does nothing. Other launchers (rofi, dmenu) find applications like normal. I think the problem @vedransavi describes is a different one as my problem (and I guess @gtrias' is consistent whether things are plugged or not)

@KELiON
Copy link
Collaborator

KELiON commented Jun 21, 2017

@Xananax

  1. Can you check what version do you use?
  2. If you use version 0.3 – can you check that apps plugin is installed?

@Xananax
Copy link

Xananax commented Jun 21, 2017

Oh my god I feel so utterly stupid. Yes, it needed the "basic apps" plugins. I even suspected something like that and looked quickly, but missed it.

It works! Thanks a ton

@KELiON
Copy link
Collaborator

KELiON commented Jun 21, 2017

@Xananax anyway, something happened in your machine, because this package had to be installed automatically. Just a question – did you update existing app to 0.3 or you just downloaded it and it was fresh install?

@Xananax
Copy link

Xananax commented Jun 27, 2017

@KELiON I updated it from the AUR. You can see what the package is doing in the install script:

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  yarn && cd ./app && yarn && cd ../
  yarn run build

  if [ $CARCH == 'x86_64' ]; then
    node_modules/.bin/build --linux --x64 --dir
  elif [ $CARCH == 'i686' ]; then
    node_modules/.bin/build --linux --ia32 --dir
  else
    echo "Unknown architecture"; exit 1;
  fi
}

So basically, runs build, if I understand correctly; then the package() function just distributes the icons and binaries to their respective places.

@Ziggoto
Copy link

Ziggoto commented Nov 7, 2017

Same here. At Ubuntu 16.04

@aksh1618
Copy link

aksh1618 commented Mar 7, 2018

Taking a hint from @Xananax's comment, I uninstalled the basic apps plugin, and then reinstalled it. Apps are shown now. (I'm also on arch)

@Abolfazl-MI
Copy link

also I ihave this problem with 0.7 version on ubuntu last version It dosent show me installed apps to open it

@dubisdev dubisdev transferred this issue from cerebroapp/cerebro Nov 9, 2022
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