You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bug] Invalid line number XXX in 21-line document #368
Hey @OpenCode, is there any additional client console logs you could share? Also, does this issue repro 100% of the time for a specific search -> search result press?
Hey @OpenCode, is there any additional client console logs you could share? Also, does this issue repro 100% of the time for a specific search -> search result press?
It happens with the same search but not to every result of the same search
RangeError: Invalid line number 974 in 21-line document
NextJS 11
1080-8e9944c494226fa5.js:1:4433
NextJS 103
There's likely some character/symbol in the underlying file here that is causing this. Any chance you have a publicly accessible file that repro's this issue you can share?
There's likely some character/symbol in the underlying file here that is causing this. Any chance you have a publicly accessible file that repro's this issue you can share?
I can share a screenshot but not the repo (it's private)
Hey @OpenCode - I shipped a fix in #745. The issue was that a out of bounds highlight range was being used (in your screenshot, it was attempting to highlight from line 989 in a 21 line document..). The fix adds defensive checks for this and issues a console warning instead of just completely crashing.
As to why you were hitting this, I'm not totally certain. It would still be helpful to get to the root cause of this, so if you could share more details, please shoot us a email at support@sourcebot.dev. Cheers
Activity
msukkari commentedon Jun 30, 2025
Hey @OpenCode, is there any additional client console logs you could share? Also, does this issue repro 100% of the time for a specific search -> search result press?
OpenCode commentedon Jul 2, 2025
It happens with the same search but not to every result of the same search
msukkari commentedon Jul 3, 2025
There's likely some character/symbol in the underlying file here that is causing this. Any chance you have a publicly accessible file that repro's this issue you can share?
OpenCode commentedon Jul 4, 2025
I can share a screenshot but not the repo (it's private)
msukkari commentedon Jul 4, 2025
@OpenCode if you could share that info over email that will help us repro this!
brendan-kellam commentedon Jan 16, 2026
Hey @OpenCode - I shipped a fix in #745. The issue was that a out of bounds highlight range was being used (in your screenshot, it was attempting to highlight from line 989 in a 21 line document..). The fix adds defensive checks for this and issues a console warning instead of just completely crashing.
As to why you were hitting this, I'm not totally certain. It would still be helpful to get to the root cause of this, so if you could share more details, please shoot us a email at support@sourcebot.dev. Cheers