[vim/vim] Vim9: error for an indexed item in :def does not name the variable (PR #21396)

11 views
Skip to first unread message

h_east

unread,
Sep 29, 2026, 3:18:48 AM (2 days ago) Sep 29
to vim/vim, Subscribed
Problem:  Assigning to an item of a locked list, or indexing a type
          that cannot be indexed, gives E1119 or E1141 in a :def
          function, which do not name the variable, while the script
          level gives E741, E742 or E689 with the name.
Solution: Give the same errors as the script level, with the name of
          the destination.  E1119 and E1141 are no longer used.

related: #21391

Note: this changes the error numbers in a :def function. E1119 becomes
E741 or E742, and E1141 becomes E689, the same as at the script level.
A script that catches E1119 or E1141 needs to be updated.


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/21396

Commit Summary

  • e240fc7 Vim9: error for an indexed item in :def does not name the variable

File Changes

(14 files)

Patch Links:

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/21396@github.com>

Christian Brabandt

unread,
Sep 30, 2026, 4:10:54 PM (19 hours ago) Sep 30
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#21396)

I am slightly worried about the changed error numbers. Do you think this causes any issues for plugin writers?

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/21396/c5918806375@github.com>

h_east

unread,
Sep 30, 2026, 4:17:01 PM (19 hours ago) Sep 30
to vim/vim, Subscribed
h-east left a comment (vim/vim#21396)

Agreed. Since we can't completely rule out the possibility of issues arising, let's put this PR on hold for now.

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/21396/c5918897020@github.com>

h_east

unread,
Sep 30, 2026, 4:49:17 PM (18 hours ago) Sep 30
to vim/vim, Subscribed
h-east left a comment (vim/vim#21396)

I handled this without changing the error number.

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/21396/c5919466983@github.com>

Reply all
Reply to author
Forward
0 new messages