Bram Moolenaar
056678184f
patch 8.2.4576: Vim9: error for comparing with null can be annoying
...
Problem: Vim9: error for comparing with null can be annoying.
Solution: Allow comparing anything with null. (closes #9948 )
2022-03-15 20:21:33 +00:00
Bram Moolenaar
f8691004b0
patch 8.2.4534: Vim9: "is" operator with empty string and null returns true
...
Problem: Vim9: "is" operator with empty string and null returns true.
Solution: Consider empty string and null to be different for "is".
2022-03-10 12:20:53 +00:00
Bram Moolenaar
f3507a517c
patch 8.2.4530: making comparison with null work changes legacy behavior
...
Problem: Making comparison with null work changes legacy behavior.
Solution: Only use the better comparison in Vim9 script. (closes #9910 )
2022-03-09 11:56:21 +00:00
Bram Moolenaar
c6e9d7063d
patch 8.2.4489: failing test for comparing v:null with number
...
Problem: Failing test for comparing v:null with number.
Solution: Allow comparing v:null with number in legacy script.
(Ken Takata, closes #9873 ) Also do this for float.
2022-03-02 13:13:30 +00:00
Bram Moolenaar
f6b0c79742
patch 8.2.4488: build error with +eval but without +channel or +job
...
Problem: Build error with +eval but without +channel or +job.
Solution: Add #ifdef. (John Marriott)
2022-03-01 19:52:48 +00:00
Bram Moolenaar
7a22224875
patch 8.2.4487: Vim9: cannot compare with v:null
...
Problem: Vim9: cannot compare with v:null.
Solution: Allow comparing anything with v:null. (closes #9866 )
2022-03-01 19:23:24 +00:00
Bram Moolenaar
b2810f123c
patch 8.2.4046: some error messages not in the right place
...
Problem: Some error messages not in the right place.
Solution: Adjust the errors file. Fix typo.
2022-01-08 21:38:52 +00:00
Dominique Pelle
748b308eeb
patch 8.2.4038: various code not used when features are disabled
...
Problem: Various code not used when features are disabled.
Solution: Add #ifdefs. (Dominique Pellé, closes #9491 )
2022-01-08 12:41:16 +00:00
Bram Moolenaar
d82a47dd04
patch 8.2.4012: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move the last error messages to errors.h.
2022-01-05 20:24:39 +00:00
Bram Moolenaar
9d00e4a814
patch 8.2.4010: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-05 17:49:15 +00:00
Bram Moolenaar
677658ae49
patch 8.2.4008: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-05 16:09:06 +00:00
Bram Moolenaar
a6f7929e62
patch 8.2.4005: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-04 21:30:47 +00:00
Bram Moolenaar
d88be5be80
patch 8.2.4003: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-04 19:57:55 +00:00
Bram Moolenaar
ac78dd4a35
patch 8.2.3985: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-02 19:25:26 +00:00
Bram Moolenaar
0699b040e6
patch 8.2.3971: build fails
...
Problem: Build fails.
Solution: Use the right error message name.
2022-01-01 16:01:23 +00:00
Bram Moolenaar
460ae5dfca
patch 8.2.3967: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2022-01-01 14:19:49 +00:00
Bram Moolenaar
8b6256f6ec
patch 8.2.3919: Vim9: wrong argument for append() results in two errors
...
Problem: Vim9: wrong argument for append() results in two errors.
Solution: Check did_emsg. Also for setline(). Adjust the help for
appendbufline().
2021-12-28 11:24:49 +00:00
Bram Moolenaar
223d0a6bc8
patch 8.2.3894: Vim9: no proper type check for first argument of call()
...
Problem: Vim9: no proper type check for first argument of call().
Solution: Add specific type check.
2021-12-25 19:29:21 +00:00
Bram Moolenaar
28fbbeac70
patch 8.2.3877: function does not abort after a type error in compare
...
Problem: Function does not abort after a type error in compare
Solution: Check getting number fails. (closes #9384 )
2021-12-22 21:40:33 +00:00
Bram Moolenaar
265f811f5a
patch 8.2.3851: Vim9: overhead when comparing string, dict or function
...
Problem: Vim9: overhead when comparing string, dict or function.
Solution: Call the intented compare function directly. Refactor to avoid
duplicated code.
2021-12-19 12:33:05 +00:00
rbtnn
0ccb5842f5
patch 8.2.3848: cannot use reduce() for a string
...
Problem: Cannot use reduce() for a string.
Solution: Make reduce() work with a string. (Naruhiko Nishino, closes #9366 )
2021-12-18 18:33:46 +00:00
rbtnn
ddc80aff57
patch 8.2.3840: useless test for negative index in check functions
...
Problem: Useless test for negative index in check functions.
Solution: Remove the test for negative index. (Naruhiko Nishino,
closes #9364 )
2021-12-17 18:01:31 +00:00
Bram Moolenaar
e124204c4f
patch 8.2.3830: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2021-12-16 20:56:57 +00:00
Bram Moolenaar
2d877599ee
patch 8.2.3822: leaking memory in map() and filter(), no string in Vim9
...
Problem: Leaking memory in map() and filter(), cannot use a string argument
in Vim9 script.
Solution: Fix the leak, adjust the argument check, also run the tests as
Vim9 script. (Yegappan Lakshmanan, closes #9354 )
2021-12-16 08:21:09 +00:00
Yegappan Lakshmanan
6409553b6e
patch 8.2.3751: cannot assign a lambda to an option that takes a function
...
Problem: Cannot assign a lambda to an option that takes a function.
Solution: Automatically convert the lambda to a string. (Yegappan
Lakshmanan, closes #9286 )
2021-12-06 11:03:55 +00:00
Bram Moolenaar
98cb90ef86
patch 8.2.3702: first key in dict is seen as curly expression and fails
...
Problem: First key in dict is seen as curly expression and fails.
Solution: Ignore failure of curly expression. (closes #9247 )
2021-11-30 11:56:22 +00:00
Yegappan Lakshmanan
5dfe467432
patch 8.2.3438: cannot manipulate blobs
...
Problem: Cannot manipulate blobs.
Solution: Add blob2list() and list2blob(). (Yegappan Lakshmanan,
closes #8868 )
2021-09-14 17:54:30 +02:00
Bram Moolenaar
a29856fcdc
patch 8.2.3436: check for optional bool type has confusing return type
...
Problem: Check for optional bool type has confusing return type.
Solution: Explicitly return OK.
2021-09-13 21:36:27 +02:00
Bram Moolenaar
dd9de50f42
patch 8.2.3347: check for legacy script is incomplete
...
Problem: Check for legacy script is incomplete. (Naohiro Ono)
Solution: Also check the :legacy modifier. Use for string concatenation
with "." and others (issue #8756 )
2021-08-15 13:49:42 +02:00
Bram Moolenaar
16e63e6d35
patch 8.2.3329: v_lock not set when getting value of environment variable
...
Problem: v_lock not set when getting value of environment variable.
Solution: Set v_lock to zero.
2021-08-11 16:47:26 +02:00
Bram Moolenaar
ed8b099fd2
patch 8.2.3318: Vim9: cannot ignore quotes in number at the command line
...
Problem: Vim9: cannot ignore quotes in number at the command line.
Solution: Use in_vim9script() so that after ":vim9" quotes are ignored.
2021-08-08 19:56:28 +02:00
Bram Moolenaar
2950065e18
patch 8.2.3315: cannot use single quote in a float number for readability
...
Problem: Cannot use single quote in a float number for readability.
Solution: Support single quotes like in numbers. (closes #8713 )
2021-08-08 15:43:34 +02:00
Bram Moolenaar
78db17c6f3
patch 8.2.3258: error messages have the wrong text
...
Problem: Error messages have the wrong text.
Solution: Adjust the error message.
2021-07-31 19:12:58 +02:00
Yegappan Lakshmanan
7e6a2a64f0
patch 8.2.3232: system() does not work without a second argument
...
Problem: system() does not work without a second argument.
Solution: Do not require a second argument. (Yegappan Lakshmanan,
closes #8651 , closes #8650 )
2021-07-28 11:51:48 +02:00
Yegappan Lakshmanan
4490ec4e83
patch 8.2.3229: Vim9: runtime and compile time type checks are not the same
...
Problem: Vim9: runtime and compile time type checks are not the same.
Solution: Add more runtime type checks for builtin functions. (Yegappan
Lakshmanan, closes #8646 )
2021-07-27 22:00:44 +02:00
Yegappan Lakshmanan
a764e73d4f
patch 8.2.3221: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks. (Yegappan Lakshmanan, closes #8632 )
2021-07-25 15:57:32 +02:00
Yegappan Lakshmanan
7973de35ba
patch 8.2.3211: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks. Fix type check for matchaddpos().
(Yegappan Lakshmanan, closes #8619 )
2021-07-24 16:16:15 +02:00
Yegappan Lakshmanan
0ad871dc4d
patch 8.2.3206: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks. (Yegappan Lakshmanan, closes #8611 )
2021-07-23 20:37:56 +02:00
Yegappan Lakshmanan
cd9172077b
patch 8.2.3194: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks, simplify some. (Yegappan
Lakshmanan, closes #8598 )
2021-07-21 19:09:09 +02:00
Yegappan Lakshmanan
83494b4ac6
patch 8.2.3188: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks, also at runtime. (Yegappan
Lakshmanan, closes #8587 )
2021-07-20 17:51:51 +02:00
Bram Moolenaar
0c35752d04
patch 8.2.3176: Vim9: no type error for comparing number with string
...
Problem: Vim9: no type error for comparing number with string.
Solution: Add a runtime type check. (closes #8571 )
2021-07-18 14:43:43 +02:00
Yegappan Lakshmanan
a9a7c0c602
patch 8.2.3173: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types are not checked at compile time.
Solution: Add more type checks. (Yegappan Lakshmanan, closes #8581 )
2021-07-17 19:11:07 +02:00
Yegappan Lakshmanan
1a71d31bf3
patch 8.2.3162: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types are not checked at compile time.
Solution: Add more type checks. (Yegappan Lakshmanan, closes #8560 )
2021-07-15 12:49:58 +02:00
Yegappan Lakshmanan
5b73992d8f
patch 8.2.3135: Vim9: builtin function arguments not checked at compile time
...
Problem: Vim9: builtin function arguments not checked at compile time.
Solution: Add more type checks. (Yegappan Lakshmanan, closes #8539 )
2021-07-10 13:15:41 +02:00
Bram Moolenaar
108010aa47
patch 8.2.3069: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move some error messages to errors.h. Use clearer names.
2021-06-27 22:03:33 +02:00
Bram Moolenaar
61a417b7c1
patch 8.2.3007: Vim9: test for void value fails
...
Problem: Vim9: test for void value fails.
Solution: Adjust expected error. Do not make a copy of void.
2021-06-15 22:54:28 +02:00
Bram Moolenaar
f57b43c230
patch 8.2.3005: Vim9: using a void value does not give a proper error message
...
Problem: Vim9: using a void value does not give a proper error message.
Solution: Give a clear error message. (clodes #8387 )
2021-06-15 22:13:27 +02:00
Bram Moolenaar
7a2217bedd
patch 8.2.2948: substitute() accepts a number but not a float expression
...
Problem: Substitute() accepts a number but not a float expression.
Solution: Also accept a float. (closes #8331 )
2021-06-06 12:33:49 +02:00
Bram Moolenaar
1328bde9d4
patch 8.2.2944: Vim9: no error when using job or channel as a string
...
Problem: Vim9: no error when using job or channel as a string.
Solution: Be more strict about conversion to string. (closes #8312 )
2021-06-05 20:51:38 +02:00
Bram Moolenaar
68db996b62
patch 8.2.2846: Vim9: "echo Func()" does not give an error for using void
...
Problem: Vim9: "echo Func()" does not give an error for a function without
a return value.
Solution: Give an error. Be more specific about why a value is invalid.
2021-05-09 23:19:22 +02:00