Commit Graph

21 Commits

Author SHA1 Message Date
XeroOl
7036ce5f22 fix push diagnostics sending outdated diagnostics 2025-10-26 14:03:27 -05:00
XeroOl
cd9821cd80 fix fennel-ls#81 2025-08-29 16:09:27 -05:00
XeroOl
a366e5996d rewrite diagnostics to support pull diagnostics 2025-08-07 22:57:07 -05:00
XeroOl
f68d8ba6fc compiler warnings 2025-04-06 16:14:42 -05:00
Phil Hagelberg
3a30fc83ed Support (or table.unpack _G.unpack) pattern without unknown field lint.
Now we are selflint clean! We can enable it in the ci target now.
2025-03-02 22:05:33 -08:00
Phil Hagelberg
32350ec44b Recognize deprecated functions that haven't been removed yet. 2025-02-28 04:18:36 -08:00
Phil Hagelberg
d23d36a414 Support :union as lua-version setting. 2025-02-26 23:09:11 -08:00
Phil Hagelberg
98cd94d212 Add aliases for lua-versions.
Now you can specify "lua54" OR "lua5.4" and get what you need.
2025-02-26 01:38:58 -08:00
Phil Hagelberg
78da9c2edc Add support for :intersection as lua version.
This will only accept globals which are present in every Lua version
from 5.1-5.4. Using this for selflint currently fails, so let's fix
that next.
2025-02-25 01:08:07 -08:00
Phil Hagelberg
dc833b8db9 Disable failing tests. 2025-02-15 09:51:54 -08:00
XeroOl
d309c80541 simplify tests. only one create-client function 2024-07-05 00:25:51 -05:00
XeroOl
b11b5b7962 small changes 2024-06-24 00:22:51 -05:00
XeroOl
59b966a25f Add a bunch of tests for compiler recovery
Ideally, any time you write:

(local x (<some form with compiler error>))
(print x)

I don't want it to say "unknown variable x". To make sure that's the
case, I need to do as much error recovery as possible. I don't have full
error recovery, but I've got the common cases, and I'm working down the
fennel.friends list
2024-03-28 23:51:22 -05:00
XeroOl
3bc530e11b in tests, separate compile error diagnostics from lints 2024-03-28 23:04:25 -05:00
XeroOl
b5750b1a8a rename diagnostic to lint 2024-03-28 23:01:20 -05:00
XeroOl
e81920585d add more tests for error recovery 2024-03-28 22:39:13 -05:00
XeroOl
f14d91b9c4
add test for hover over modules 2024-03-03 23:03:31 -06:00
XeroOl
cb8dc29bed Analyze (include) the same way as (require) 2024-03-01 17:37:32 -06:00
XeroOl
be997dc7fb add diagnostic test for unknown module field 2024-03-01 17:32:51 -06:00
XeroOl
45ab692db4 don't warn for symbols hidden in macros 2024-03-01 14:52:23 -06:00
XeroOl
186c388344 Change tests to faith 2024-03-01 14:43:26 -06:00