Comments (4)
i cannot reproduce anything with https://gitlab.archlinux.org/dvzrv/linux-rt/-/blob/fe82702ad8dd2918a86949902fc2d1c0bc375274/lib/fonts/font_8x8.c#L474
can you provide example and search keyword?
--
Sorry for the very late reply... I have fixed this problem myself by adding --no-pcre2-unicode argument to rg in the autoload/search.vim file.
diff --git a/autoload/search.vim b/autoload/search.vim
index bd95509..fad4a85 100644
--- a/autoload/search.vim
+++ b/autoload/search.vim
@@ -3,7 +3,7 @@
let s:regexp_keyword_word = 'KEYWORD'
let s:engines = ['rg', 'ag']
-let s:rg_base_cmd = "rg -n --auto-hybrid-regex --json"
+let s:rg_base_cmd = "rg -n --auto-hybrid-regex --json --no-pcre2-unicode"
let s:ag_base_cmd = "ag --nogroup --noheading"
let s:rg_filetype_convertion_map = {
@@ -39,6 +39,7 @@ let s:non_standard_ft_extensions_map = {
\}
let s:filetypes_comments_map = {
+ \"c": ["//"],
\"cpp": ["//"],
\"elisp": [";"],
\"commonlisp": [";"],
I've pulled the origin/master and this error is still present. This is the offending file: https://elixir.bootlin.com/u-boot/latest/source/include/video_font_data.h
This error shows up when searching (coma J) for any word, as it (I assume) calls rg for the whole repo and rg fails without that argument on that font file. Perhaps you have PCRE2 disabled in config of rg itself ?
from any-jump.vim.
Bumping this issue because it happens in more repositories and it's really annoying. This plugin really rules and I don't want to change to another :( Please help.
Error detected while processing function 15_Jump[30]..search#SearchDefinitions[33]..46_RunRgDefinitionSearch[8]..46_ParseRgResult
s:
line 7:
E474: Unidentified byte: lib/fonts/font_8x8.c: PCRE2: error matching: UTF-8 error: isolated byte with 0x80 bit set
E474: Failed to parse lib/fonts/font_8x8.c: PCRE2: error matching: UTF-8 error: isolated byte with 0x80 bit set
from any-jump.vim.
i cannot reproduce anything with https://gitlab.archlinux.org/dvzrv/linux-rt/-/blob/fe82702ad8dd2918a86949902fc2d1c0bc375274/lib/fonts/font_8x8.c#L474
can you provide example and search keyword?
from any-jump.vim.
@pseregiet thanks for the initial leg work here. I was seeing a similar issue for C files that I was using as well, although the error message wasn't providing a file or line... just error. From what I could see, it looked like the C regexs for any-jump were all PCRE2 only.
I ended up changing the line to support rg v12 and 13 and got it working locally with:
let s:rg_base_cmd = "rg -n --pcre2 --engine auto --json --unicode"
from any-jump.vim.
Related Issues (20)
- road to 1.0
- TS and JS pattern definition causes error on RunXDefinitionSearch HOT 10
- E716: Key not present in Dictionary: "text" HOT 2
- autoload/search.vim not loaded when using Plug and Vim 9.0 HOT 2
- error E491 in C++ files
- feature request: prioritize current file
- Support custom key binds in results window
- set not modifiable when possible
- Dynamically extend the `grep`-bin scan paths? HOT 1
- Feature Request: consider adding support for adding lang_map definitions
- Last cursor position lost HOT 3
- Feature Request: Push results to quickfix list HOT 2
- go to definition support HOT 1
- I am feeling lucky command HOT 1
- Crash/Hang when Running from Large Directory HOT 1
- Unable to use any function in large respository HOT 1
- Haskell: jump not working HOT 2
- Customizable options to base rg and ag commands
- Move images in project root to this issue
- When i use the anyjump, The following error prompt appears HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from any-jump.vim.