ankitbko / vscode-pull-request-azdo

Azure Devops Pull Requests for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=ankitbko.vscode-pull-request-azdo
MIT License
67 stars 22 forks source link

Error adding comment: The value 0 is outside of the allowed range #86

Open RobDover opened 8 months ago

RobDover commented 8 months ago

Steps to Reproduce:

  1. Installed the Azure Devops Pull Request Extension
  2. Filled in the settings required to connect me to my ADO project
  3. Opened a PR and tried to leave a comment

I see the following error message pop up:

Creating comment failed: Error: The value 0 is outside of the allowed range. Parameter name: RightFileStart.Offset
Actual value was 0.

image

I've tried a few different things to see if there are some cases where it does work and others where it doesn't, but it seems pretty consistent:

Unclear exactly what's causing this, but it would be great to have this resolved! I think this extension is a great idea and would like to evangelise it across my org. Don't feel I can do that if I can't get it to work locally though :(.

gofyndnitin commented 8 months ago

same is happening for macOs

https://github.com/ankitbko/vscode-pull-request-azdo/issues/87

kwickramasekara commented 8 months ago

+1

xhywxtt commented 8 months ago

+1

xhywxtt commented 8 months ago

+1

chrissto-hihi commented 8 months ago

+1

andioli commented 7 months ago

Any updates here? Do you need more info etc? #87 was closed by the author, but the problem still persists for me at least. Makes the extension unusable.

ShyamPanchal commented 3 months ago

+1

danbord commented 2 weeks ago

+1

danbord commented 2 weeks ago

For anyone looking for a fix. I reviewed @danigt91 PR to fix that issue.

Since I don't really know how to code VSCode extesions, I just hacked into the installed compiled file %userprofile%\.vscode\extensions\ankitbko.vscode-pull-request-azdo-0.2.2\dist\extension.js. Searched for endOffset and startOffset in the file and set its value to 1. Saved the file, reload VSCode. Boom, now its working

image