Git Product home page Git Product logo

Comments (16)

elianiva avatar elianiva commented on June 19, 2024 1

Yep, it's fixed. Thank YOU for fixing this :)

from nvim-compe.

elianiva avatar elianiva commented on June 19, 2024

update: this is easily reproducible in c when you type #include <std.|>. | is the cursor and that's where the error happens.

Character.match = function(byte1, byte2)
-  local diff = byte1 - byte2
+  local diff = (byte1 or 0) - byte2
  return diff == 0 or diff == 32 or diff == -32
end

Doing this solves the issue but I don't know if this is a good permanent solution

from nvim-compe.

hrsh7th avatar hrsh7th commented on June 19, 2024

Sorry for the lately reply.

I can't reproduce clangd/typescript-language-server both.

It is bit difficult (may be it is a potential bug of the matcher.lua because it is a complex codes)

from nvim-compe.

elianiva avatar elianiva commented on June 19, 2024

no worries. I can wait however long it would take until there's a solution for this :)
I've found my workaround so this isn't that big of an issue.

from nvim-compe.

hrsh7th avatar hrsh7th commented on June 19, 2024

Sorry for annoying.

If you can reproduce easily, please detect the error place by debug branch.

from nvim-compe.

hrsh7th avatar hrsh7th commented on June 19, 2024

#71

from nvim-compe.

elianiva avatar elianiva commented on June 19, 2024

Ok, I've tried that and here's the debug info. https://paste.sh/zcGWAXps#HKoNPs_FWtgJpF2pGnvEG__E

from nvim-compe.

hrsh7th avatar hrsh7th commented on June 19, 2024

Thank you! I will debug it.

from nvim-compe.

hrsh7th avatar hrsh7th commented on June 19, 2024

Hm... I want to detect the input and the word that cause this error.


Matcher.score(
  Matcher.bytes2string({ 105, 110, 99, 108, 117, 100, 101 }),
  Matcher.bytes2string({ 105, 110, 99, 108, 117, 100, 101 })
)

It works fine (no errors).

Could you try to detect the word/input?

from nvim-compe.

elianiva avatar elianiva commented on June 19, 2024

The word is #include <. The error happens as soon as I press <
The full file is this.

#include <

int main(void)
{
  printf("Hello world");
}

from nvim-compe.

hrsh7th avatar hrsh7th commented on June 19, 2024

OK. I will push debug code for the above concern.

from nvim-compe.

hrsh7th avatar hrsh7th commented on June 19, 2024

Realy thank you for your help.

I've pushed to debug code.
If you have a time, please provide last debug information.

from nvim-compe.

elianiva avatar elianiva commented on June 19, 2024

Here's the latest one. https://paste.sh/IBEEkb1Q#gPFs1ST_c7BuAm3gFUUJ9RHh

from nvim-compe.

hrsh7th avatar hrsh7th commented on June 19, 2024

Thank you very much!

I get the cause may be. will fix it soon

from nvim-compe.

hrsh7th avatar hrsh7th commented on June 19, 2024

Wa--- issue automatically closed.

from nvim-compe.

hrsh7th avatar hrsh7th commented on June 19, 2024

I think the issue was solved on the latest master.

from nvim-compe.

Related Issues (20)

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.