This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-04
Channels
- # announcements (9)
- # bangalore-clj (1)
- # beginners (164)
- # calva (7)
- # clj-kondo (12)
- # cljs-dev (5)
- # cljsrn (7)
- # clojure (100)
- # clojure-spec (5)
- # clojure-sweden (2)
- # clojure-uk (4)
- # clojurescript (9)
- # conjure (22)
- # datomic (53)
- # fulcro (62)
- # graalvm (27)
- # helix (10)
- # joker (6)
- # malli (1)
- # mount (4)
- # nrepl (3)
- # off-topic (8)
- # quil (1)
- # releases (1)
- # sci (42)
- # shadow-cljs (1)
- # testing (7)
- # tools-deps (26)
- # vim (24)
Hi, continuing from here: https://clojurians.slack.com/archives/C053AK3F9/p1593859141412800 I cloned the ion-starter repo and I am reading https://docs.datomic.com/cloud/ions/ions-tutorial.html#orge88f23e I have to make sure I have installed the ion-dev tools. So I changed the config files according to that documentation. Does that constitutes of making sure? Is there a programmatic test I could do that changing files is actually installing things?
I know you’ve tried some stuff - can you roll back as close as you can to the tutorial and then share your error message?
@jonwalch
[:find (pull ?e [:user/foo :user/other-one {:user/bar [*]}]) :where [?e :user/bar ?bar] [?bar :bar/bazed?]]
?
The issue here is that I also need to filter on :user/foo
to make sure I'm getting the correct user.
Yeah just tried a version of this. I get no results for the entire query if nothing in :user/bar
has :bar/bazed?
set to false.
Afaik, I am on par with the tutorial, I did the edits described there. But actually I started from aws marketplace first because I know less about aws than about datomic. (much much much less).
However there isn't an error message unless I try to do something more, but I am not sure what I should try. I know that some things work and one thing doesn't.
One thing that makes it difficult to roll back is that I never knew I had a m2/settings file and similar things : )
Right now I have to admit that nothing works, not even what worked in the morning, I get Error building classpath. Could not find artifact com.datomic:ion:jar:0.9.43 in central (
to every command I try
Obviously, it would be nicer if I knew what to check on it, like does it have exactly 137 bytes in it or what 🙂 https://gist.github.com/ashnur/62a62afa1c538c249110cfc0202b524a
I am trying to do a recursive query
[:person/firstName :person/lastName {:person/friends ...}]
However, I would like to impose a condition on the recursion. For example, if the friend has the name “bob”. It looks like the recursion is on the read side of the pull, but I was wondering if there is some way to do recursion and have a condition on the friends (recursion attribute)?In my ~/.clojure/deps.edn
I have these entries for my maven repos and an ion-dev
alias
:aliases {:ion-dev {:extra-deps {com.datomic/ion-dev {:mvn/version "0.9.265"}}
:main-opts ["-m" "datomic.ion.dev"]}}
:mvn/repos {"datomic-cloud" {:url ""}
"central" {:url " "}
"clojars" {:url ""}}
I even tried this, where the repo config is in the alias https://github.com/Datomic/ion-starter/blob/master/examples/.clojure/deps.edn
Also, how are you "running" your project locally?
What is the exact operation you're using to start a repl?
Why do you have ?region-eu-west-1
at the end of the datomic-releases
entry?
and the docs says https://clojure.org/reference/deps_and_cli#_procurers
what you call 'project' here is literally a core.clj with a single hello world function, I can run it many ways
last time it worked I ran clj -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]" --interactive
but obviously that also doesn't do anything right now just says the same error as above
Also, nothing in the forum post you sent makes me think you need to append ?region-eu-west-1
After you paste the output of the aws s3 cp ...
command, can you replace the :mvn/repos
entry in your deps.edn with all three entries in the message I pasted above? https://clojurians.slack.com/archives/C03RZMDSH/p1593886989420200
@ashnur I didn't see this until just now. What is the output of
aws sts get-caller-identity
{
"UserId": "AIDAT24PJRSJ6WKCBUGPZ",
"Account": "263904136339",
"Arn": "arn:aws:iam::263904136339:user/same-page-dev"
}
do you have aws env vars set?
Ok, I had to check that there are no typos, I wish I'd found one. I made some edits for consistency, but the user is added to the group, the policy is attached to the group and AWS shows that the user is active and it's used. I am not sure why the s3 thing says forbidden, I will try to debug that because even if it's unrelated, it should be working anyway, but maybe it helps.
clj is trying to download the jar from the cloud s3 maven bucket. what region is your user in? I assume you're not running this from inside aws or anything like that.
I am running this on my laptop, which I assume is not inside aws, but I am unfamiliar with the terminology, tell me if I misunderstood, please.
is there a way to query for an entity and its children (recursively) but also ( while recursing ) exclude certain children? I have query like this
(ffirst
(d/q '[:find (pull ?e pattern)
:in $ pattern ?tree-id ?company-id
:where
[?e :accounting-tree/id ?tree-id]
[?e :accounting-account/children ?c]
(or-join [?c ?company-id]
[(missing? $ ?c :entity/company)]
[?c :entity/company ?company-id])
]
db '[* {:accounting-account/children ...}]
tree-id company-id))
but it does not exclude the children without that company-id . I have tried many variations but no luck
I am trying to allow one of my ions to access dynamodb. I am following https://docs.datomic.com/cloud/operation/access-control.html#authorize-ions When I get to the step: > Adding an IAM Policy to Datomic Nodes > > The Datomic Compute CF template lets you specify a custom policy via the template parameter named `NodePolicyArn`. In the console UI this parameter appears under:
Optional Configuration | Existing IAM managed policy for instances
> You can set or update your custom node policy at any time by performing a https://docs.datomic.com/cloud/operation/howto.html#update-parameter, setting the `NodePolicyArn` to the ARN of your policy.
>
> Neither https://console.aws.amazon.com/console/home?region=us-east-1 nor https://console.aws.amazon.com/iam/home?region=us-east-1#/home seems to have an "Optional Configuration" option