boot

:boot-clj: https://boot-clj.github.io/ — build tooling for Clojure. Dev chat in #boot-dev
dazld 2019-12-05T16:39:27.052100Z

hi everyone, i’m debugging an issue where a colleague’s BOOT_JVM_OPTIONS env var is being ignored

dazld 2019-12-05T16:39:41.052500Z

did any of you come across something like this?

dazld 2019-12-05T16:39:52.052800Z

we can see it in (System/getenv)

dazld 2019-12-05T16:39:58.053Z

but… seems to be ignored

2019-12-05T17:26:06.053800Z

@dazld hm, how are you running System/getenv?

2019-12-05T17:26:28.054200Z

also, what system/bash version is your colleague on?

Claudiu-Vlad Ursache 2019-12-05T17:35:42.056200Z

@alandipert @dazld's colleague here the bash version I'm running:

api (benchmark) $ bash -version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18)
Copyright (C) 2007 Free Software Foundation, Inc.
we simply tried out boot repl and ran (System/getenv) inside. the BOOT_JVM_OPTIONS is set to the correct values, but the datomic valcache flags are not propagated

dazld 2019-12-05T17:36:04.056500Z

we’re looking at (System/getProperties) too

dazld 2019-12-05T17:36:20.056900Z

the jvm flags are just ignored

2019-12-05T17:42:30.057700Z

and the BOOT_JVM_OPTIONS variable is set to the same thing on both your machines… but it just doesn’t work on @claudiu511’s machine?

dazld 2019-12-05T18:43:01.057900Z

Yep

dazld 2019-12-05T18:43:07.058100Z

That’s exactly it

dazld 2019-12-05T18:43:19.058400Z

It’s super weird

dazld 2019-12-05T18:44:14.059500Z

Set the properties directly and everything works, but for whatever reason, the Java process that boot starts didn’t see them

dazld 2019-12-05T18:45:18.060700Z

There’s something fishy about how boot is starting java on claudiu’s machine

dazld 2019-12-05T18:46:02.061600Z

It sees the environment var but those options aren’t set

dazld 2019-12-05T18:46:52.062700Z

He’s using sdkman if that’s relevant

flyboarder 2019-12-05T18:50:06.063100Z

What version of boot on each machine?

dazld 2019-12-05T21:21:27.063500Z

2.8.3