Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oscar.test_module() subprocess uses a different project environment #2414

Closed
aaruni96 opened this issue May 25, 2023 · 0 comments
Closed

Oscar.test_module() subprocess uses a different project environment #2414

aaruni96 opened this issue May 25, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@aaruni96
Copy link
Member

aaruni96 commented May 25, 2023

Describe the bug

Oscar.test_module("path"; new=true) spawns a julia subprocess, which does not inherit all parent properties, in particular, the --project. This can lead to strange behaviour when the dev version of Oscar is different from the installed version of Oscar on the system.

To Reproduce

$ julia --project=/path/to/project
julia> using Oscar
julia> Oscar.test_module(""; new=true)

Expected behavior
New process is spawned with the right path for --project

System:

julia> Oscar.versioninfo(full=true)
OSCAR version 0.12.0
  combining:
    AbstractAlgebra.jl   v0.29.4
    GAP.jl               v0.9.6
    Hecke.jl             v0.18.10
    Nemo.jl              v0.33.8
    Polymake.jl          v0.9.0
    Singular.jl          v0.18.3
  building on:
    Antic_jll               v0.201.500+0
    Arb_jll                 v200.2300.0+0
    Calcium_jll             v0.401.100+0
    FLINT_jll               v200.900.6+0
    GAP_jll                 v400.1200.200+1
    Singular_jll            v403.201.1+0
    libpolymake_julia_jll   v0.9.0+1
    libsingular_julia_jll   v0.30.0+1
    polymake_jll            v400.900.0+0
See `]st -m` for a full list of dependencies.

Julia Version 1.9.0
Commit 8e630552924 (2023-05-07 11:25 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 8 × Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, skylake)
  Threads: 1 on 8 virtual cores
Official https://julialang.org/ release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant