Repository navigation
Closed
Labels
🐤 blocked/need infoNeed more details about this issue or pull request
Description
Description
Search is not working.
Steps to reproduce
Try to search anything.
Expected behavior Search returning keyword related results.
Actual behavior
App error message
spawn /usr/lib/marktext/resources/app.asar.unpacked/node_modules/vscode-ripgrep/bin/rg
stdout
09:55:38.706 › {
constructor: 'Error',
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'spawn /usr/lib/marktext/resources/app.asar.unpacked/node_modules/vscode-ripgrep/bin/rg',
path: '/usr/lib/marktext/resources/app.asar.unpacked/node_modules/vscode-ripgrep/bin/rg',
spawnargs: [
'--json', '--fixed-strings', '--ignore-case',
'--follow', '--iglob', '**/*.markdown',
'--iglob', '**/*.markdown/**', '--iglob',
'**/*.mdown', '--iglob', '**/*.mdown/**',
'--iglob', '**/*.mkdn', '--iglob',
'**/*.mkdn/**', '--iglob', '**/*.md',
'--iglob', '**/*.md/**', '--iglob',
'**/*.mkd', '--iglob', '**/*.mkd/**',
'--iglob', '**/*.mdwn', '--iglob',
'**/*.mdwn/**', '--iglob', '**/*.mdtxt',
'--iglob', '**/*.mdtxt/**', '--iglob',
'**/*.mdtext', '--iglob', '**/*.mdtext/**',
'--iglob', '**/*.text', '--iglob',
'**/*.text/**', '--iglob', '**/*.txt',
'--iglob', '**/*.txt/**', '--',
'preguiça', '/home/daniel/Notas'
],
stack: 'Error: spawn /usr/lib/marktext/resources/app.asar.unpacked/node_modules/vscode-ripgrep/bin/rg ENOENT\n' +
' at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)\n' +
' at onErrorNT (internal/child_process.js:456:16)\n' +
' at processTicksAndRejections (internal/process/task_queues.js:80:21)'
}
System
Mark Text: v0.16.1 (3a6182b)
Node.js: 12.13.0
Electron: 8.2.3
Chromium: 80.0.3987.163
OS: Linux x64 5.4.33-3-MANJARO
Metadata
Metadata
Assignees
Labels
🐤 blocked/need infoNeed more details about this issue or pull request
Activity
fxha commentedon Apr 23, 2020
Thank you for taking the time to report this issue. I think this is the same issue as in #2055. Please follow the steps there and provide feedback.
alerque commentedon Apr 23, 2020
I can replicate this too. Again please assign to me since it seems to be an Arch packaging issue. Alternatively if you don't want packaging issues in this repo at all I'll give you access to migrate them to my AUR packages repo where they could be migrated.
alerque commentedon Apr 23, 2020
I don't think this is the same issue as #2055. If I run the original bundled electron build unmodified from the upstream build system the issue with the current directory and saved workspace goes away, but this search issue is still present.
fxha commentedon Apr 23, 2020
I don't really understand what you mean by that but
vscode-ripgrephas a hard-coded path that points to the executablerginside theapp.asar.unpackeddirectory like/home/felix/.bin/marktext_dev/resources/app.asar.unpacked/node_modules/vscode-ripgrep/bin/rg.Edit: The same applies to the error message below as we expect the hunspell dictionary (
en-US.bdict) in the resource folder.alerque commentedon Apr 23, 2020
This issue is fixed in the
0.16.1-4package version in the AUR.alerque commentedon Apr 23, 2020
Hunspell is a different issue, and not expected it work in the Arch package at this time. Let's track that elsewhere: alerque/aur#2