Git Product home page Git Product logo

orsonteodoro / nano-ycmd Goto Github PK

View Code? Open in Web Editor NEW
32.0 5.0 2.0 38.08 MB

Modded GNU Nano using ycmd code completion and IntelliSense. The ycmd code completion support for nano is found in the ymcd-code-completion branch.

License: GNU General Public License v3.0

Makefile 0.58% Shell 0.34% M4 3.52% Perl 0.09% C 95.47%
nano gnu-nano ycmd nano-ycmd nano-editor gplv3 intellisense omnisharp python typescript javascript c csharp cpp cxx text-editor objective-c nodejs rust golang

nano-ycmd's Introduction

nano-ycmd

The ycmd code completion support for nano is found in the ymcd-code-completion branch.

Alt text

Branches

  • The master branch contains upstreams gnu nano source code untouched.
  • The ymcd-code-completion contains a modification to gnu nano that has ycmd support.

Which commits are working? Which one should I clone?

The latest may be broken.

You can use the following which have been tested:

Commit / Tree snapshot Source code download Notes
7efd128a4e4a9e5c3269ba04c3743e21bc364190 [zip] [tar.gz] Tested working for ycmd CORE_VERSION 47 on Jul 7, 2023. Security and completer suggestion improvements.
7b52887728a19e95c77c73a0f4cd39075379e45f [zip] [tar.gz] RECOMMENDED. Tested working for ycmd CORE_VERSION 47 on Jul 2, 2023 with upstream commits to 7f4c2c6.
8b35ad5481a02ce92bc0b9bd23140aed26cd9652 [zip] [tar.gz] RECOMMENDED. Tested working for ycmd CORE_VERSION 45, 46, 47 on Jun 30, 2023.
60b3cbb67c92a3d6068e386dc3b605a6543717a2 [zip] [tar.gz] Tested working for ycmd CORE_VERSION 43 and 44 on Apr 19, 2021.
d69e83799eab5a69f8e24e60d0b7c8690eb024f2 [zip] [tar.gz] In testing, quick test working on May 24, 2020, for ycmd core version 43
14e4255c52c9f64cabaa2af28354e9752d27ae65 [zip] [tar.gz] RECOMMENDED. Tested working on Feb 11, 2018, for ycmd core version 39 (commit date circa Aug 21, 2018)
1f1a50665877e6dd6f6d09999de3166f4b84a9a2 [zip] [tar.gz] Works, recently tested but old; non-simd non-multicore. A Feb 11, 2017 build.

Recognized ycmd core versions:

Commit Core version Clang/LLVM version End of Life (EOL) status
33922510b354bae0561b5de886d0d0767ed8822a 47 (Live snapshot) 16.0.1 Supported dev build
5f1e71240949ef9e6a64f47fa17ab63d1ec50a4c 46 14 Supported feature complete build
2ee41000a28fb6b2ae00985c231896b6d072af86 45 14 Deprecated, supported
6f2f818364bb5c52f60e720741ff583bf77b4cd5 44 11 EOL
ef48cfe1b63bcc07b88e537fb5b6d17b513e319c 43 10 EOL
  • Support for a particular ycmd core version is based on version availability of Python and Clang dependencies of the distro.
  • The End of Life (EOL) column is interpreted from the last tested commit snapshot of nano-ycmd.

Docker

You can use nano-ycmd fairly quickly with Docker. More information can be found at https://github.com/orsonteodoro/docker-gentoo-nano-ycmd

Dependencies

  • ycmd, confirmed working for 20180210 (commit 1a83224202c4381d6d791c245a893ce25db7a974)
  • >=jedi 0.10, for Python support and for completer commands to work.
  • Latest jedihttp, for Python completion commands support.
  • One cryptographic library of either Nettle, OpenSSL, or libgcrypt, to mitigate against a man-in-the-middle (MITM) attack between ycmd and the nano text editor.
  • neon, for http interprocess communication between nano editor and ycmd server
  • YCM-Generator (https://github.com/rdnetto/YCM-Generator), for C/C++/Objective-C/Objective-C++ support to generate a .ycm_extra_conf.py. It requires YCM-Generator to be patched for Python 3 support.
  • Bear (https://github.com/rizsotto/Bear), for C/C++/Objective-C/Objective-C++ support to generate a compile_commands.json.
  • Clang, for C/C++/Objective-C/Objective-C++ code completion.
  • GNU Make, to clean up the project files
  • Sed, for patching .ycm_extra_conf.py
  • Bash >=4, for &| support
  • Unix, Linux, Cygwin for /dev/null and /dev/random support
  • NXJSON, for server response parsing (A Makefile patch applied to NXJSON package needs to be applied https://github.com/orsonteodoro/oiledmachine-overlay/blob/master/dev-libs/nxjson/files/nxjson-9999.20141019-create-libs.patch so that it is a shared library)
  • compdb (https://github.com/Sarcasm/compdb) and Ninja, for Ninja build system support
  • jq (https://stedolan.github.io/jq/) (OPTIONAL) is json beautifier and filter. This is used to clean the DiagnosticResponse after parsing and inject an index on the node to allow for nano-ymcd to conveniently to find a FixIt based on an index selected by the user when the user hovers over this line/index with a shortcut key. Currently, the Display All FixIts is broken because of the non-deterministic bug.
  • GNU findutils, requires for the find utility to search for Makefile, configure, *.ninja, *.pro, files.
  • GNU coreutils, nano-ycmd needs tac command to reverse the clang system includes order for SIMD headers.
  • AVX512, AVX2, SSE2, MMX (OPTIONAL and undergoing testing, AVX2/AVX512 support untested) for string_replace and escape_json.
  • OpenMP (OPTIONAL and undergoing testing) via --with-openmp for multicore string_replace and escape_json.

My distribution doesn't have the required dependencies

You can look at my gentoo package overlay https://github.com/orsonteodoro/oiledmachine-overlay to see how to properly compile them or you can research them to build packages for your distribution.

What are the new hotkeys to use this functionality?

The hotkeys Ctrl-` brings up the completer commands menu. The table below in the which completer commands work section lists additional hotkeys that follow.

See https://github.com/orsonteodoro/nano-ycmd/blob/ymcd-code-completion/src/global.c#L1389 .

Some of these features require the user to begin to type their code before the completere commands menu shows.

Why does the completer command "Get Documentation" not work for c-sharp?

Your distribution has not packaged the xml files properly. Compile nano-ycmd in debug mode and inspect the logs (ynano.txt, jedihttp_.log, omnisharp_.log) in the /tmp folder to see which xml documentation files are required.

How do I use this code completion feature?

Just type and press Ctrl-letter when suggestions show.

Do Ctrl-X to exit the code completion suggestions list.

Which completer commands work and how do I access them and what is the expected behavior?

Completer commands add beyond code completion. It is optional but powerful features for the developer.

The features below are still in development. Some may be feature complete.

Do Alt-` to bring up the completer commands menu.

Do Ctrl-letter to execute a completer command.

Do Ctrl-space to exit the completer commands.

Some completer commands may not work or not made available for the particular language that you working with.

Hotkey after Ctrl-` Tested and passed (4) Feature Complete? Working? (5) Feature Description
Ctrl-i Yes Yes Yes GoToInclude Loads the include file in buffer
Ctrl-c Yes Yes Yes GoToDeclaration Puts the cursor at the variable declaration
Ctrl-d Yes Yes Yes GoToDefinition Puts the cursor at the function definition
Alt-d No No No GoToDefinitionElseDeclaration Puts the cursor at the definition first, or it puts it on the declaration if it can't find the definition.
Ctrl-g No No Yes GoTo Should display description in the status bar. Goes definition or declaration whatever makes sense.
Alt-g Yes Maybe Yes GoToImprecise Faster but less accurate version of GoTo but should put the cursor.
Alt-z No Yes Yes ReloadSolution Reloads a C# solution
Ctrl-e No No No GoToReferences Lists references
Ctrl-l No Yes Yes GoToImplementation Goes to abstract class
Alt-l No No No GoToImplementationElseDeclaration Goes to the implemention first then if it can't find it goes to the declaration
Ctrl-f Yes (1) Maybe (2) Yes FixIt Displays trivial changes and fixes chosen ones automatically
Ctrl-o Yes Yes Yes GetDoc Displays documentation in new buffer
Alt-o No Yes Yes GetDocImprecise Faster version but less accurate version of GetDoc.
Ctrl-r No Yes No (3) RefactorRename Renames a symbol in every file in the project
Ctrl-t Yes Yes Yes GetType Returns the type of a variable or return the function signature.
Alt-t Yes Yes Yes GetTypeImprecise Faster but less accurate version of GetType
Ctrl-z No Yes Yes RestartServer Reloads the subserver
Ctrl-y No Yes Yes GoToType Goes to a type
Ctrl-x No Yes Yes ClearCompilationFlagCache Clears and updates FlagsForFile from .ycm_extra_conf.py
Ctrl-p Yes Yes Yes GetParent Gets parent class or method
Ctrl-s No No No SolutionFile Gets the path to the solution file
Ctrl-n Yes Yes Yes - Sets the number of suggestions to show. Max 2, 4, 6 depending on characters per line.
Ctrl-space Yes Yes Yes - Exits the completer commands menu
  • (1) It triggers randomly (in a not deterministic way). It works for %d->%s format specifier, missing semicolon, identifier spelling errors. It was tested only with the C language.
  • (2) It needs more test cases.
  • (3) Subserver problems were encountered.
  • (4) Interactive testing is performed.
  • (5) The results currently shown are from an older evaluated version. Breakage may be encountered for newer versions.

Why use ycmd backend over the builtin WORDCOMPLETION?

ycmd allows to you use IntelliSense for C# sources using omnisharp-server/omnisharp-roslyn that the big IDE editors have. It goes beyond word completion providing documentation about method signatures and real time syntax checking (currently not supported in nano-ycmd).

What languages and dialects are supported?

  • JavaScript (1)
  • C# (2)
  • C (3)
  • C++ (3)
  • CUDA
  • Go
  • Python
  • Objective-C (3)
  • Objective-C++ (3)
  • Rust
  • TypeScript

Working with some of these languages require additional requirements:

  • (1) JavaScript support requires both .tern-project and .tern-config project files to work.
  • (2) C# support requires a .sln project file to work.
  • (3) C, C++, Objective-C, Objective-C++ requires either a *.pro, configure, CMakeList.txt, GNUmakefile, Makefile, or makefile to work. An optional *.ninja file may be supplied in your project and would require additional steps to handle. build.meson is supported through the YCM-Generator's develop branch.

Why does the autocompleter not work with C, C++, Objective C, Objective C++ with a single hello world file?

You may forgot to have a Makefile, makefile GNUmakefile for make, *.pro for qmake, configure for autotools, CMakeLists.txt for cmake or forgot to set the YCMG_PROJECT_PATH to point to your top level project folder. nano-ycmd will pass it to bear and YCM-Generator to properly create a .ycm_extra_conf.py and compile_commands.json. The compile_commands.json is for clang compliation database system (http://clang.llvm.org/docs/JSONCompilationDatabase.html). .ycm_extra_conf.py contains headers and constants that are per project defined.

The completer commands doesn't work for C, C++, Objective C, Objective C++

Try deleting the compile_commands.json file and .ycm_extra_conf.py in the current (working) directory. Those files should be only in the directory mentioned in the YCMG_PROJECT_PATH environmental variable passed into nano-ycmd.

Why is my intellisense not working with my C#?

You didn't set up ycmd correctly. It needs to see a sln file or maybe project.json file if json is supported in ycmd.

Why is the master branch old?

I don't have an update bot yet.

Why is this not a plugin?

I don't see any plugin support in nano.

What do I need to pass to configure?

Your setup may vary depending on if your distro patched ycmd. In my case, I modified ycmd to use absolute paths. The vanilla ycmd uses relative path to the thirdparty folder.

You need a crypto library. Choose ONE of either:

  • --with-libgcrypt

  • --with-nettle

  • --with-openssl

  • For license compatibility reasons, do not use older than OpenSSL 3.x.

You need to enable ycmd support

--enable-ycmd

You need to set up environmental variables to pass to the configure script:

(IMPORTANT) The python version must be the same as the compiled ycmd scripts.

YCMD_PATH="/usr/lib/python3.10/site-packages/ycmd"
PYTHON_PATH="/usr/bin/python3.10" 

The following are optional environmental variables to pass to the configure script pass empty "" if you don't want support:

for rust language:

RACERD_PATH="/usr/bin/racerd" 
RUST_SRC_PATH="/usr/share/rust/src" 

for go language:

GODEF_PATH="/usr/bin/godef" 
GOCODE_PATH="/usr/bin/gocode" 

for C / C++ / Objective-C / Objective-C++ language:

YCMG_PATH="/usr/bin/config_gen.py"

What would the resulting string look like to configure ycmd for the autotools build system?

./autogen.sh
CFLAGS="-g" \
YCMG_PATH="/usr/bin/config_gen.py" \
YCMG_PYTHON_PATH="/usr/bin/python3" \
YCMD_PYTHON_PATH="/usr/bin/python3" \
RACERD_PATH="/usr/bin/racerd" \
RUST_SRC_PATH="/usr/share/rust/src" \
GODEF_PATH="/usr/bin/godef" \
GOCODE_PATH="/usr/bin/gocode" \
YCMD_PATH="/usr/lib/python3.10/site-packages/ycmd" \
./configure --enable-ycmd --with-openssl
make

The -g adds debugging information for developers for the gdb debugger but not needed for regular users.

  • YCMG_PYTHON_PATH, YCMD_PYTHON_PATH is used in commit 61b82be3e3b18b642ef75a1eee693f890127ba77. YCMG is refers to ycm-generator.

  • PYTHON_PATH is used for earlier builds.

YCM-Generator

The following environmental variables are defined by nano-ycmd are required for C family support (C/C++/ObjC/ObjC++):

  • YCMG_PROJECT_PATH - This should point to the folder containing the top-level Makefile, configure, CMakeList.txt. (REQUIRED)
  • YCMG_FLAGS - This adds extra parameters to config_gen.py. I recommend using make over autotools specifically -b make because more include files are exposed instead of allowing YCM-Generator autodetect. This environment variable is optional but recommended be in use in certain situations.

So to use it in combination of nano-ycmd (ynano) without Ninja, it would look like:

YCMG_FLAGS="-b make" \
YCMG_PROJECT_PATH="/var/tmp/portage/app-editors/nano-ycmd-9999.20170201/work/nano-ycmd-7611e4eb827980da1057f6768d00bd322fa1c58f" \
ynano ycmd.c

Also, if you add new libraries or files, you should delete both the .ycm_extra_conf.py and compile_commands.json so that nano-ycmd can regenerate them.

Also, if you change languages between C, C++, Objective-C, Objective-C++ because your project uses multiple languages, you should regenerate them when using them because it will produce new header include lists for that particular language. Currently no hotkey exist to delete and regenerate those files. nano-ycmd automatically skips generation to save time if they already exist.

Ninja + YCM-Generator together

We need the YCMG_PROJECT_PATH above plus the two required environment variables below:

  • NINJA_BUILD_PATH - This should point to the folder containing your *.ninja file (REQUIRED)
  • NINJA_BUILD_TARGETS - This should be the rule(s) space seperated and listed under the # Rules for compiling comment section and having the line begin with command = clang or whatever compiler you are using. (REQUIRED)

For NINJA_BUILD_TARGETS, the contents of gst-transcoder's build.ninja is presented below:

# This is the build file for project "gst-renderer"
# It is autogenerated by the Meson build system.
# Do not edit by hand.

ninja_required_version = 1.5.1

# Rules for compiling.

rule c_COMPILER
 command = clang  $ARGS '-MMD' '-MQ' $out '-MF' '$DEPFILE' -o $out -c $in
 deps = gcc
 depfile = $DEPFILE
 description = Compiling c object $out

rule c_PCH
 command = clang  $ARGS '-MMD' '-MQ' $out '-MF' '$DEPFILE' -o $out -c $in
 deps = gcc
 depfile = $DEPFILE
 description = Precompiling header $in


# Rules for linking.

rule STATIC_LINKER
 command = ar $LINK_ARGS $out $in
 description = Static linking library $out

NINJA_BUILD_TARGETS can only be c_COMPILER and/or c_PCH but not STATIC_LINKER. Also it only works if your project is using both YCMG_PROJECT_PATH and NINJA_BUILD_TARGETS for Ninja support.

In the above example, we have a Makefile and a configure. We override the YCM-Generator autodetection because the .ycm_extra_conf.py contains more headers with the Makefile preference over the autodetected configure with first come first serve priority.

For Ninja + Other build system, it should look like:

NINJA_BUILD_PATH="/var/tmp/portage/media-plugins/gst-transcoder-1.8.2-r1/work/gst-transcoder-1.8.2/mesonbuild" \
NINJA_BUILD_TARGETS="c_COMPILER" \
YCMG_PROJECT_PATH="/var/tmp/portage/media-plugins/gst-transcoder-1.8.2-r1/work/gst-transcoder-1.8.2" \
ynano gst/transcode/gst-cpu-throttling-clock.c 2>out.txt

In the above example there is only a configure script in /var/tmp/portage/media-plugins/gst-transcoder-1.8.2-r1/work/gst-transcoder-1.8.2 folder and is autodetected by YCM-Generator. A build.ninja file is located in /var/tmp/portage/media-plugins/gst-transcoder-1.8.2-r1/work/gst-transcoder-1.8.2/mesonbuild folder.

Why does the user experience suck?

We are working on that. Feel free to merge your changes.

Why does it do only word matching within a single source code?

The example reference script used it that way.

Quality? Is it finished or complete?

Code completion as in looking outside of the current opened buffers in nano is feature complete but the entire feature set of the completer commands is not feature complete. The UX could also be improved.

What license is GNU nano released under?

GPL version 3 or newer

What license is nano-ycmd feature set released under?

It is GPL version 3 or newer

What could I do to help?

Add better user interface or user interaction. Emacs-ycmd is a good example.

Fix bugs or improve the speed. Solve why clang/llvm 3.9.1 doesn't show FixIts 100% of the time as expected.

When will it be considered ready for review to be included in the official GNU nano?

After the UX has been polished and all the features are feature complete. If they do not want to include this patchset, we will fork nano. I want this merged eventually if possible or someone do it if I am gone or no longer working on it.

Can I install both vanilla nano and nano-ycmd along side each other?

Yes you can, but you need to change the src/Makefile.am. Rerun autogen.sh. Do configure again specifying features then make. Just keep the binary only. I recommend installing both since nano-ycmd is still a work in progress.

What is up with the debug spew?

If you compiled nano-ycmd with --enable-debug then you can redirect the stderr to a file to inspect it later. You should use --disable-debug if you are not a developer.

For example:

nano 2>/tmp/out.txt

Why does it keep asking for .ycm_extra_conf.py on startup?

This is a security precaution against automatically running a malicious compromised script or against exfiltrating sensitive data to an unauthorized threat actor. Before accepting it, you should inspect the contents carefully from top to bottom for suspicious code. Do not accept if it contains unauthorized domains, obfuscated text, attempts to touch sensitive data, attempts to access the network, etc.

ycmd will run this file after it has been confirmed safe to use by you in order for ycmd to work on this kind of project or this type of programming language.

Special thanks goes to...

marchelzo and twkm from freenode ##C channel for the clear excess stdin fix.

Also see --version or

void version(void)
for other credits

How do I add changes?

  1. Click fork at the top of this page to create a repository on your account
  2. git clone https://github.com/orsonteodoro/nano-ycmd.git
  3. cd into folder
  4. git checkout -b myfeaturename
  5. make changes
  6. git commit -m "My description here"
  7. git push -u origin myfeaturename
  8. go to your repository
  9. make pull request

nano-ycmd's People

Contributors

aborrero avatar benpicco avatar brandh avatar conan-kudo avatar cristian-caloghera avatar djc avatar dm0- avatar doughdemon avatar easyaspi314 avatar faissaloo avatar hbbroeker avatar ioistired avatar jmallach avatar kdudka avatar lhmouse avatar lionnatsu avatar look avatar marcodiegomesquita avatar matteoraso avatar mfrancis95 avatar michaliskok avatar mscalora avatar orsonteodoro avatar pooka109 avatar rcorsi avatar rishabh-d-dave avatar sawuare avatar tom93 avatar townba avatar vapier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nano-ycmd's Issues

nano-ycmd with clang 3.9.1 doesn't show FixIt 100% time but randomly

This needs a fix because it is slowing productivity. The system is not predictable and FixIts are randomly made available to the user far less than expected.

Also, DiagnosticResponse doesn't show an immediate updated list of FixIts after a trivial problem has been immediately introduced.

It could be a problem with clang, ycmd, or nano-ycmd. I don't know.

Emergency note

Since the passing of my dad today, work may cease indefinitely or be infrequent than usual. The work is no longer sustainable. I will contribute as long as possible but at some point, I can no longer continue.

If you would like to be the lead developer, please leave a note below or just fork and maintain.

Semantic completion

This should be either implemented or tested. What I am saying is that it is not like a fix it but more like provide a suggestion.

Incomplete completer commands

Anyone could go ahead and implement them or test them. Send a pull request if you finished it. Report that you will complete it by replying to this so that people don't mistakenly work on the same thing. Should be done in 3 days per each incomplete completer command.

string_replace_gpl3 is broken

Since this is broken, the multicore version is considered broken. python's json decoder will complain about it:

2018-02-11 16:46:33,604 - INFO - Received completion request
2018-02-11 16:46:33,608 - INFO - Received extra conf ignore request
2018-02-11 16:46:34,910 - INFO - Received ready request
2018-02-11 16:46:34,926 - INFO - Received extra conf load request
2018-02-11 16:46:34,929 - INFO - Received event notification
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/ycmd/../bottle.py", line 862, in _handle
return route.call(**args)
File "/usr/lib64/python2.7/site-packages/ycmd/../bottle.py", line 1741, in wrapper
rv = callback(*a, **ka)
File "/usr/lib64/python2.7/site-packages/ycmd/../ycmd/watchdog_plugin.py", line 108, in wrapper
return callback( *args, **kwargs )
File "/usr/lib64/python2.7/site-packages/ycmd/../ycmd/hmac_plugin.py", line 70, in wrapper
body = callback( *args, **kwargs )
File "/usr/lib64/python2.7/site-packages/ycmd/../ycmd/handlers.py", line 59, in EventNotification
request_data = RequestWrap( request.json )
File "/usr/lib64/python2.7/site-packages/ycmd/../bottle.py", line 166, in get
if key not in storage: storage[key] = self.getter(obj)
File "/usr/lib64/python2.7/site-packages/ycmd/../bottle.py", line 1124, in json
return json_loads(b)
File "/usr/lib64/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")

This is the debug spew for string_replace_gpl3 function:

string_replace_gpl3 find arg: LINE_NUM
string_replace_gpl3 replace arg: 4
string_replace_gpl3 out is currently (befor):
j=0 running multicore sse2 compare threadid=0
used sse2 string_replace_gpl3 section
string_replace_gpl3 out is currently (after): { "column
string_replace_gpl3 out is currently (befor): { "column
j=0 running multicore sse2 compare threadid=0
used sse2 string_replace_gpl3 section
string_replace_gpl3 out is currently (after): { "column_num": 14,
string_replace_gpl3 out is currently (befor): { "column_num": 14,
j=0 running multicore sse2 compare threadid=0
used sse2 string_replace_gpl3 section
string_replace_gpl3 out is currently (after): { "column_num": 14, "event_name":
string_replace_gpl3 out is currently (befor): { "column_num": 14, "event_name":
j=0 running multicore sse2 compare threadid=0
used sse2 string_replace_gpl3 section
string_replace_gpl3 out is currently (after): { "column_num": 14, "event_name": "FileReadyToPars
string_replace_gpl3 out is currently (befor): { "column_num": 14, "event_name": "FileReadyToPars
j=0 running multicore sse2 compare threadid=0
used sse2 string_replace_gpl3 section
string_replace_gpl3 out is currently (after): { "column_num": 14, "event_name": "FileReadyToParse", "file
string_replace_gpl3 out is currently (befor): { "column_num": 14, "event_name": "FileReadyToParse", "file
j=0 running multicore sse2 compare threadid=0
string_replace_gpl3 out is currently (after): { "column_num": 14, "event_name": "FileReadyToParse", "file_data": { "FI
string_replace_gpl3 out is currently (befor): { "column_num": 14, "event_name": "FileReadyToParse", "file_data": { "FI
j=0 running multicore sse2 compare threadid=0
string_replace_gpl3 out is currently (after): { "column_num": 14, "event_name": "FileReadyToParse", "file_data": { "FILEPATH": { "contents": "CONTENTS", "filetypes": ["FI
string_replace_gpl3 out is currently (befor): { "column_num": 14, "event_name": "FileReadyToParse", "file_data": { "FILEPATH": { "contents": "CONTENTS", "filetypes": ["FI
j=0 running multicore sse2 compare threadid=0
string_replace_gpl3 out is currently (after): { "column_num": 14, "event_name": "FileReadyToParse", "file_data": { "FILEPATH": { "contents": "CONTENTS", "filetypes": ["FILETYPES"] } }, "filepath": "FI
string_replace_gpl3 out is currently (befor): { "column_num": 14, "event_name": "FileReadyToParse", "file_data": { "FILEPATH": { "contents": "CONTENTS", "filetypes": ["FILETYPES"] } }, "filepath": "FI
j=0 running multicore sse2 compare threadid=0
string_replace_gpl3 out is currently (after): { "column_num": 14, "event_name": "FileReadyToParse", "file_data": { "FILEPATH": { "contents": "CONTENTS", "filetypes": ["FILETYPES"] } }, "filepath": "FILEPATH", "line_num":
string_replace_gpl3 out is currently (befor): { "column_num": 14, "event_name": "FileReadyToParse", "file_data": { "FILEPATH": { "contents": "CONTENTS", "filetypes": ["FILETYPES"] } }, "filepath": "FILEPATH", "line_num":
j=0 running multicore sse2 compare threadid=0
string_replace_gpl3 out is currently (after): { "column_num": 14, "event_name": "FileReadyToParse", "file_data": { "FILEPATH": { "contents": "CONTENTS", "filetypes": ["FILETYPES"] } }, "filepath": "FILEPATH", "line_num": LINE_NUM}
string_replace_gpl3 final: { "column_num": 14, "event_name": "FileReadyToParse", "file_data": { "FILEPATH": { "contents": "CONTENTS", "filetypes": ["FILETYPES"] } }, "filepath": "FILEPATH", "line_num": LINE_NUM}

The string_replace_gpl3 final LINE_NUM should be 4.

The cause of the bug is that it is not doing single byte check after scanning ncores * register_width.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.