-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
ERROR TypeError: Cannot read property 'startLineNumber' of null when editing the preferences #7125
Comments
I think i fixed it in #7110. Could you try? The issue was that vscode extensions can provide edits with range as null indicating that the full range should be covered. We did not respect it and passed null as range to Monaco. |
Sure. |
If I have
If I have
Note: both the user and the workspace JSON was invalid. |
@kittaakos do you use standard setup and only edit to introduce invalid json file? |
I can see similar errors at editing tasks.json file on each save. My steps to reproduce:
|
I am not sure what you mean, @akosyakov. I verified the behavior with #7110 in Gitpod. |
@kittaakos ok, i meant you did not add new VS Code extensions or something like that |
Correct. No, I did not change anything. |
@RomanNikitenko can you reproduce it against #7110? Could you specify how do you edit? What do you enter and where? |
I cannot reproduce this issue.
It's expected in case if there are some save participants mutating documents directly, it is just logging to bring attention. It does not break saving control flow. I cannot reproduce the original issue in #7110, so will mark it as fixed. |
@akosyakov please give me 10 min to check it for the defined PR |
@akosyakov |
Description
I see errors in the log when editing the user preferences file manually in the preference widget's editor:
The broken preferences file:
Note: auto-save was
on
.Reproduction Steps
OS and Theia version:
Diagnostics:
The text was updated successfully, but these errors were encountered: