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

fix stopline #1228

Merged
merged 3 commits into from
Jul 20, 2023
Merged

fix stopline #1228

merged 3 commits into from
Jul 20, 2023

Conversation

xgdgsc
Copy link
Contributor

@xgdgsc xgdgsc commented Jul 16, 2023

Fixes #1223,#1227.

@fredrikekre
Copy link
Member

Possible to test this? See #1190 for some inspiration on how to test formatting.

@xgdgsc
Copy link
Contributor Author

xgdgsc commented Jul 20, 2023

I don' t have idea why end index could overflow, so don' t know how to test. I only have very long files that cannot be shared that seems to trigger this. Can we merge it so it doesn' t crash the LSP frequently for now. And when someone comes up with some short example file to add to the test or fix the underlying issue causing the overflow.

@fredrikekre
Copy link
Member

What commands do you use to trigger the formatting? I have never seen this crash so I am curious what the difference is.

@xgdgsc
Copy link
Contributor Author

xgdgsc commented Jul 20, 2023

Just ctrl s and "editor.formatOnSaveMode": "modificationsIfAvailable",

@fredrikekre fredrikekre merged commit 08170e4 into julia-vscode:master Jul 20, 2023
@fredrikekre fredrikekre mentioned this pull request Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BoundsError on range format
3 participants