c0derunR icon indicating copy to clipboard operation
c0derunR copied to clipboard

Balanced search results in auto-debugger

Open Demfier opened this issue 7 years ago • 3 comments

As of now, we show top 10 legit links as suggestions but that is very naturally, a biased way. We need to pick up a balanced list of results, that would not leave any of important key features.

Demfier avatar Nov 23 '17 15:11 Demfier

Can you please explain more about the issue?

kurianbenoy avatar Nov 28 '17 14:11 kurianbenoy

@kurianbenoy When you click on the DEBUG button, it is supposed to show most relevant links to solve any compilation error you might receive. However, it is not working as intended. You can talk to @Demfier about this.

kaustubhhiware avatar Nov 29 '17 02:11 kaustubhhiware

@kurianbenoy - Sorry for the delayed response. But yeah - Have a look at the following piece of code from home module in coyote/views.py.

We build the links array which contains the desired suggestions we obtain by searching for every keyword extracted from the error message. But finally it being truncated to just the first 10 links in line 81. Now what this basically does is that it discards the links we've got from other keywords. I hope now you can understand the bias. So, it would be better if we keep the links from all the searched keywords.

Let me know what solution you think of. Cheers!

Demfier avatar Nov 30 '17 15:11 Demfier