From 6dfdeb93213a1322e6a6c54a18fce67db1ae5119 Mon Sep 17 00:00:00 2001 From: Jonathan Coates Date: Sun, 27 Aug 2023 15:35:36 +0100 Subject: [PATCH] Update Cobalt to 0.7.3 - Add support for Lua 5.2's %g. - Fix %p for the upper character ranges. --- gradle/libs.versions.toml | 4 ++-- illuaminate.sexp | 16 ++++++---------- .../lua/rom/modules/main/cc/audio/dfpwm.lua | 2 +- 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index ca34fa6b5..65259f249 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -19,8 +19,8 @@ parchmentMc = "1.19.4" asm = "9.3" autoService = "1.0.1" checkerFramework = "3.32.0" -cobalt = "0.7.2" -cobalt-next = "0.7.3" # Not a real version, used to constrain the version we accept. +cobalt = "0.7.3" +cobalt-next = "0.7.4" # Not a real version, used to constrain the version we accept. fastutil = "8.5.9" guava = "31.1-jre" jetbrainsAnnotations = "24.0.1" diff --git a/illuaminate.sexp b/illuaminate.sexp index 201807f32..d033e3712 100644 --- a/illuaminate.sexp +++ b/illuaminate.sexp @@ -83,23 +83,19 @@ ;; isn't smart enough. sleep write printError read rs))) -;; We disable the unused global linter in bios.lua and the APIs. In the future -;; hopefully we'll get illuaminate to handle this. +;; We disable the unused global linter in bios.lua, APIs and our documentation +;; stubs docs. In the future hopefully we'll get illuaminate to handle this. (at - (/projects/core/src/main/resources/data/computercraft/lua/bios.lua - /projects/core/src/main/resources/data/computercraft/lua/rom/apis/) - (linters -var:unused-global) - (lint (allow-toplevel-global true))) - -;; Silence some variable warnings in documentation stubs. -(at (/doc/stub/ /projects/forge/build/docs/luaJavadoc/) + (/doc/stub/ + /projects/core/src/main/resources/data/computercraft/lua/bios.lua + /projects/core/src/main/resources/data/computercraft/lua/rom/apis/ + /projects/forge/build/docs/luaJavadoc/) (linters -var:unused-global) (lint (allow-toplevel-global true))) ;; Suppress warnings for currently undocumented modules. (at (; Lua APIs - /projects/core/src/main/resources/data/computercraft/lua/rom/apis/io.lua /projects/core/src/main/resources/data/computercraft/lua/rom/apis/window.lua) (linters -doc:undocumented -doc:undocumented-arg -doc:undocumented-return)) diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/audio/dfpwm.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/audio/dfpwm.lua index 1f89a8c40..01ca95ee3 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/audio/dfpwm.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/audio/dfpwm.lua @@ -165,7 +165,7 @@ local function make_decoder() local low_pass_charge = 0 local previous_charge, previous_bit = 0, false - return function (input, output) + return function (input) expect(1, input, "string") local output, output_n = {}, 0