Skip to content

Conversation

ExpandingMan
Copy link
Contributor

@ExpandingMan ExpandingMan commented Feb 10, 2020

Seems pretty silly of us not to have had this already.

Current behavior might be pretty bewildering to anyone who's not constantly reading Julia discourse or Slack, which is not at all ideal.

I also took this opportunity to delete the long since deprecated REQUIRE file.

Currently the behavior with unset JULIA_COPY_STACKS is so bad that perhaps we should even consider throwing an explicit exception here.

src/jvm.jl Outdated
addOpts(s::String) = isloaded() ? @warn("JVM already initialised. This call has no effect") : push!(opts, s)

function init()
if get(ENV, "JULIA_COPY_STACKS", "") ("1", "yes")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we are doing this, I'd like this to be a little more sophisticated wrt Julia versions. JULIA_COPY_STACKS is not needed on v1.0 and does not work on v1.1 or v1.2

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added a version number check.

@aviks aviks merged commit 3f8d041 into JuliaInterop:master Feb 12, 2020
@aviks aviks mentioned this pull request Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants