From 389de94d09c387ef986b0bedc848630b82ef2a2d Mon Sep 17 00:00:00 2001 From: XeroOl Date: Sat, 25 Oct 2025 15:22:11 -0500 Subject: [PATCH] Release 0.2.2 --- changelog.md | 2 ++ src/fennel-ls/lint.fnl | 20 ++++++++++---------- src/fennel-ls/utils.fnl | 2 +- test/meta.fnl | 3 ++- 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/changelog.md b/changelog.md index dba058c..2437c76 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,7 @@ # Changelog +## 0.2.2 / 2025-10-25 + ### Features * Add `documentSymbol` support, for jumping to symbols definitions in the current document * Add `--fix` command-line argument to automatically apply lint fixes diff --git a/src/fennel-ls/lint.fnl b/src/fennel-ls/lint.fnl index 9035ba2..c119075 100644 --- a/src/fennel-ls/lint.fnl +++ b/src/fennel-ls/lint.fnl @@ -291,7 +291,7 @@ You can read more about how to add lints in docs/linting.md" ```fnl ;; nothing ```" - :since "0.2.2-dev" + :since "0.2.2" :type :special-call :impl (fn [server file ast] (case ast @@ -599,7 +599,7 @@ You can read more about how to add lints in docs/linting.md" (print \"hello\") (print \"world\")) ```" - :since "0.2.2-dev" + :since "0.2.2" :type :special-call :impl (fn [server file ast] (case ast @@ -642,7 +642,7 @@ You can read more about how to add lints in docs/linting.md" accurate if the code follows Fennel conventions. Also this lint is very new and may have issues, so I'd like to let people try it on their own terms before enabling it by default." - :since "0.2.2-dev" + :since "0.2.2" :type [:function-call :special-call :macro-call] :disabled true :impl (fn [server file ast] @@ -707,7 +707,7 @@ You can read more about how to add lints in docs/linting.md" \" is less than y=\" (tostring y))) ; fixed parens ```" - :since "0.2.2-dev" + :since "0.2.2" :type [:function-call :special-call :macro-call] :impl (fn [server file ast] (case (analyzer.search server file (. ast 1) {} {}) @@ -759,7 +759,7 @@ You can read more about how to add lints in docs/linting.md" {:name \"Bob\" :age 25} ```" - :since :0.2.2-dev + :since "0.2.2" :type :other :impl (fn [_server file] (let [seen []] @@ -789,7 +789,7 @@ You can read more about how to add lints in docs/linting.md" "```fnl (print (. inputs 0)) ```" - :since "0.2.2-dev" + :since "0.2.2" :type :special-call :disabled true :impl (fn [_server _file [callee tbl key &as ast]] @@ -813,7 +813,7 @@ Instead, use: [v1 v2] [(input:match \"([aeiou]).*([aeiou])\")]] (print :vowels v1 v2)) ```" - :since "0.2.2-dev" + :since "0.2.2" :disabled true :impl (fn [server file] (each [_ {: left : right} (ipairs file.multi-binds)] @@ -838,7 +838,7 @@ Instead, use: {:what-it-does "Detects usage of legacy (paren) multival destructuring in pattern match." :why-care? "It's more consistent to use table destructuring." :type :macro-call - :since "0.2.2-dev" + :since "0.2.2" :disabled true :example "```fnl (case (input:match \"([aeiou]).*([aeiou])\") @@ -876,7 +876,7 @@ Instead, use: ```fnl {:macro-path \"macros/?.mfnl\"} ```" - :since :0.2.2-dev + :since "0.2.2" :type :other :impl (fn [server file] (let [config-module :fennel-ls.config @@ -911,7 +911,7 @@ Instead, use: (+ a b c d) (or x y z) ```" - :since "0.2.2-dev" + :since "0.2.2" :type :special-call :impl (fn [server file ast] (let [op (. ast 1)] diff --git a/src/fennel-ls/utils.fnl b/src/fennel-ls/utils.fnl index 037d3a8..47660d9 100644 --- a/src/fennel-ls/utils.fnl +++ b/src/fennel-ls/utils.fnl @@ -5,7 +5,7 @@ These functions are all pure functions, which makes me happy." (local fennel (require :fennel)) -(local version "0.2.2-dev") +(local version "0.2.2") (λ next-line [str ?from] "Find the start of the next line from a given byte offset, or from the start of the string." diff --git a/test/meta.fnl b/test/meta.fnl index 092350c..81f9409 100644 --- a/test/meta.fnl +++ b/test/meta.fnl @@ -16,7 +16,8 @@ (fn test-release-version-number-is-right [] (let [commit-message (-> (io.popen "git show -s --format='%s'") - (: :read "*a")) + (: :read "*a") + (: :match "[^\n]*")) version (commit-message:match "^Release (.*)") version-from-utils utils.version version-from-changelog (-> (io.open "changelog.md")