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

⬆️ #5

Open
wants to merge 1 commit into
base: deno
Choose a base branch
from
Open

⬆️ #5

wants to merge 1 commit into from

Conversation

takker99
Copy link
Owner

@motoso
Copy link

motoso commented Feb 21, 2022

このブランチでmake chromeしたものでも同様でした

@takker99
Copy link
Owner Author

あらら……とすると何が原因なのでしょうか。うーん。

@motoso
Copy link

motoso commented Feb 22, 2022

@motoso
Copy link

motoso commented Feb 22, 2022

直接的な原因はdistancesが空配列になることが原因ぽいです

mini distanceがinfinityになる場合があるっぽいです
Mathi.minが

The result is Infinity if no parameters are provided

...distance がパラメータなしになる場合、つまり...[]

さらに調査

  • descriptionsを表示してみたら空のがあってその時に落ちてますね
  • Object.entries(suggests)の中身を見てみるとdescriptionが空の時がある
0: "https://scrapbox.io/motoso/GLFLによるOpenGL入門"
1: []

どこで間違ったかわかると便利

  • 記法間違ってるとき、どこを修正すればいいのか教えてくれると便利そう

@motoso
Copy link

motoso commented Feb 22, 2022

他にもいっぱいあったw
68行目あたりにこういうのを追加して出すだけで捗ります

    if(minDistance == Infinity){
      console.log(`distancesがおかしいです。command / descriptison`)
      console.log(command)
      console.log(descriptions)
      continue;
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants