Skip to content

Conversation

@errael
Copy link
Contributor

@errael errael commented Sep 20, 2023

Change member to variable; include class in msg; quote program names. Message based on comments from #13068 and #13135.

Update E1335 to

E1335: Variable "value" in "class C" is not writable

from

E1335: Member is not writable: value

Change one use of E46 to E1335

E46: Cannot change read-only variable "value"

Change `member` to `variable`; include class in msg; quote program names.

E1335: Variable "value" in class "C" is not writable
previously
    E1335: Member is not writable: value
    E46: Cannot change read-only variable "value"
@errael
Copy link
Contributor Author

errael commented Sep 20, 2023

@yegappan Draft, after decision tests need update. Along with your thoughts, there's this PR and #13135 to consider.

@errael errael changed the title Adjust message to include more info. Adjust message e_member_is_not_writable_str to include more info. Sep 21, 2023
@errael
Copy link
Contributor Author

errael commented Sep 21, 2023

Don't include the word class in quotes. The message now looks like

E1335: Variable "value" in class "C" is not writable

as suggested in #13135 (comment)

@yegappan
Copy link
Member

The change looks good to me.

@errael
Copy link
Contributor Author

errael commented Sep 21, 2023

The change looks good to me.

OK. I'll fix the tests to account for the new message, then take it out of draft.

Feedback on initial message of #13135 and examples in #13135 (comment) ?

@codecov
Copy link

codecov bot commented Sep 21, 2023

Codecov Report

Merging #13136 (97bd538) into master (78c5a5a) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master   #13136      +/-   ##
==========================================
- Coverage   82.13%   82.13%   -0.01%     
==========================================
  Files         160      160              
  Lines      195268   195268              
  Branches    43821    43821              
==========================================
- Hits       160386   160383       -3     
- Misses      22046    22057      +11     
+ Partials    12836    12828       -8     
Flag Coverage Δ
huge-clang-Array 82.74% <100.00%> (-0.01%) ⬇️
linux 82.74% <100.00%> (-0.01%) ⬇️
mingw-x64-HUGE 76.71% <100.00%> (ø)
mingw-x86-HUGE 77.21% <100.00%> (+<0.01%) ⬆️
windows 78.30% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
src/eval.c 92.47% <100.00%> (+0.02%) ⬆️
src/vim9compile.c 91.40% <100.00%> (ø)

... and 15 files with indirect coverage changes

@errael errael marked this pull request as ready for review September 21, 2023 05:08
@chrisbra chrisbra closed this in 696270b Sep 21, 2023
@errael errael deleted the MsgClean branch September 21, 2023 19:28
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.

2 participants