Skip to content

(macro) unknown method :on-string invoked on nil #8

@0xmycf

Description

@0xmycf

when testing a project with judge like this:

(declare-project
  :name "judge / cmd test"
  :version "0.1.0"
  :dependencies [{:url "https://github.com/ianthehenry/judge.git"
                  :tag "v2.9.0"}])

(declare-executable
  :name "ttt"
  :entry "src/init.janet")

and

(use judge)

(defn foo [x] (+ 1 x))

(test (foo 1))

I can do run judge and it will execute the tests, though the lsp shows me this error:
(macro) unknown method :on-string invoked on nil.

I am not sure if this is an lsp problem or an cmd problem. Though I suspect this has something to do with the lsp, since the judge executable works...

  • janet --version: 1.38.0-release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions