This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-01
Channels
- # aleph (3)
- # announcements (10)
- # babashka (6)
- # bangalore-clj (4)
- # beginners (91)
- # biff (7)
- # cider (25)
- # cljs-dev (1)
- # clojure (109)
- # clojure-europe (9)
- # clojure-norway (5)
- # clojure-uk (1)
- # clojurescript (22)
- # cursive (22)
- # data-science (1)
- # datalevin (5)
- # datomic (7)
- # emacs (7)
- # etaoin (1)
- # events (3)
- # graphql (12)
- # hyperfiddle (1)
- # inf-clojure (1)
- # lsp (69)
- # luminus (1)
- # meander (21)
- # nbb (4)
- # off-topic (27)
- # other-languages (12)
- # rdf (58)
- # releases (3)
- # remote-jobs (2)
- # rum (12)
- # shadow-cljs (4)
- # sql (3)
- # xtdb (1)
scicloj/scicloj.ml {:mvn/version "0.2.1"}
(ns ai.scicloj-experiment
(:require [scicloj.ml.core :as ml]
[scicloj.ml.metamorph :as mm]
[scicloj.ml.dataset :as ds]))
Is it possible to do something to make Cursive see this ns?Cursive sees the namespace alright, it’s the way that namespace exports stuff that throws it off. I think the solution would be to add it to Cursive’s stub generation but that’s a Colin thing
I got this info: > This problem is specific to Cursive and other tools that do some code analysis to determine if things are defined or not. http://scicloj.ml does some tricks with its namespaces, which are not compatible with the approach of these tools. If I remember Curisve doesn’t see ns which are created dynamically or something like that
> Curisve doesn’t see ns which are created dynamically This is probably right as Cursive (similarly to clj-kondo) does static analysis which work off the set of source files. I don’t think this is what’s happening in your case. It appears to me that the namespace in question exists as a source file: https://github.com/scicloj/scicloj.ml/blob/main/src/scicloj/ml/dataset.clj
here’s a related issue https://github.com/cursive-ide/cursive/issues/2573
I am just thinking if: 1) there is anything what I can do as an user to make it works 2) scicloj can fix this 3) curisve can fix this and on which one I should really “wait” 😉
I'm hitting the same issue, does ml/pipeline
or mm/model
work for you? It's not being picked up in my IDE as well..
I will change to "code generation" in the next version of
This requires first a new release of tech.ml.dataset
PR was made:
https://github.com/techascent/tech.ml.dataset/pull/334
@U7CAHM72M Does this mean that all the code will be explicitly generated into the project, rather than being dynamically created at runtime? If that’s the case, hopefully Cursive (and I guess clj-kondo and the like) will be able to index it easily.
Yes, exactly. I have it working locally, just some depended project needs to be slightly adapted and released
Great, I will wait for that then and do some testing to ensure it works with Cursive - thanks for doing this! I’ve been meaning to fix the scicloj stuff up with Cursive but hadn’t got around to it.
Add option "Always generate stubs (for this project|for all projects)" #2556 is fixed for the next build! Thanks Colin! https://github.com/cursive-ide/cursive/issues/2556