Skip to content

The order of :clone and :describe init ops is non-determninistc  #810

@vspinu

Description

@vspinu
(--->
  op  "clone"
  id  "1"
)
(--->
  op  "clone"
  id  "2"
)
(--->
  op  "describe"
  id  "3"
)
(<-
  id  "1"
  new-session  "ddeb097c-5655-4a73-bb2b-f7e7f8963268"
  session  "e155b23a-0a51-4517-9107-3eda47c4e5e4"
  status  ("done")
)
(<-
  id  "3"
  ops  (dict
         apropos  (dict)
         classpath  (dict)
         clone  (dict)
         close  (dict)
         complete  (dict)
         describe  (dict)
         eval  (dict)
         info  (dict)
         inspect-pop  (dict)
         inspect-push  (dict)
         inspect-refresh  (dict)
         inspect-reset  (dict)
         inspect-start  (dict)
         interrupt  (dict)
         load-file  (dict)
         ls-sessions  (dict)
         macroexpand  (dict)
         ns-list  (dict)
         ns-vars  (dict)
         resource  (dict)
         retest  (dict)
         stacktrace  (dict)
         stdin  (dict)
         test  (dict)
         test-stacktrace  (dict)
         toggle-trace  (dict)
         undef  (dict)
       )
  session  "bc70ee1a-4ce8-4ff9-a800-14dc32ce8625"
  status  ("done")
  versions  (dict
              clojure  (dict
                         incremental  1
                         major  1
                         minor  5
                       )
              nrepl  (dict
                       incremental  "3"
                       major  "0"
                       minor  "2"
                       qualifier  ""
                       version-string  "0.2.3"
                     )
            )
)
(--->
  op  "eval"
  session  nil  code  "(try (require 'cider.nrepl)\n                                  (:version-string @(resolve 'cider.nrepl/version))\n                               (catch Throwable _ \"not installed\"))"
  id  "4"
)
(<-
  id  "2"
  new-session  "89ca24cd-849e-41f6-9577-e34ff4dcc7fb"
  session  "70fdefa5-e1fb-4407-846c-8d5244f5ba99"
  status  ("done")
)
(<-
  id  "4"
  session  nil  status  ("unknown-session" "error")
)

Note the error status for request 4. I think the order of the two :clones and the :describe must be enforced. Either by a cascading handlers or by sync requests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions