Skip to content

Wrong type argument: listp, 1 #3

Open
@szabolcs-szilagyi

Description

@szabolcs-szilagyi

Hello,

I'm getting the following error:
Error from syntax checker deno-lint: Wrong type argument: listp, 1

Using spacemacs, I've installed the package, added to my configuration. Upon opening a .ts file, I run the flycheck-verify-setup command, there activating the deno-lint checker. After this, when I modify and then save the file it gives me the mentioned error.

$ deno --version
deno 2.1.3 (stable, release, x86_64-unknown-linux-gnu)
v8 13.0.245.12-rusty
typescript 5.6.2

Running the deno lint command gives back valid lint errors:

$ deno lint --json main.ts 
{
  "version": 1,
  "diagnostics": [
    {
      "filename": "file:///home/user/my-deno-app/main.ts",
      "range": {
        "start": {
          "line": 36,
          "col": 20,
          "bytePos": 1075
        },
        "end": {
          "line": 36,
          "col": 28,
          "bytePos": 1083
        }
      },
      "message": "`Deno.run` was removed in Deno 2. See the Deno 1.x to 2.x Migration Guide for further details: https://docs.deno.com/runtime/reference/migrate_deprecations/",
      "code": "no-deprecated-deno-api",
      "hint": "Use `Deno.Command` from https://deno.land/api?s=Deno.Command instead"
    },
    // ....
    {
      "filename": "file:///home/user/my-deno-app/main.ts",
      "range": {
        "start": {
          "line": 180,
          "col": 18,
          "bytePos": 4888
        },
        "end": {
          "line": 180,
          "col": 26,
          "bytePos": 4896
        }
      },
      "message": "`Deno.run` was removed in Deno 2. See the Deno 1.x to 2.x Migration Guide for further details: https://docs.deno.com/runtime/reference/migrate_deprecations/",
      "code": "no-deprecated-deno-api",
      "hint": "Use `Deno.Command` from https://deno.land/api?s=Deno.Command instead"
    }
  ],
  "errors": [],
  "checked_files": [
    "/home/user/my-deno-app/main.ts"
  ]
}

Lint command exits with non-zero return.

Any pointers would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions