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

On Windows, Julia warnings don't show #14

Closed
edwardlavender opened this issue Oct 16, 2024 · 2 comments
Closed

On Windows, Julia warnings don't show #14

edwardlavender opened this issue Oct 16, 2024 · 2 comments

Comments

@edwardlavender
Copy link
Owner

edwardlavender commented Oct 16, 2024

On Windows, Julia warnings from @warn don't show. This issue has been replicated with Julia v1.9.4 and 1.10.5 on Windows 10. Here is a reprex:

library(JuliaCall)
julia_command('@warn "This is a warning"')

On MacOS, this returns

┌ Warning: This is a warning
└ @ Main none:1

But on Windows nothing is returned.

@edwardlavender
Copy link
Owner Author

The issue remains if you use a custom warning struct:

julia_code(
    '
    struct JuliaWarning
      msg::String
    end
    
    function warning_convergence(w::JuliaWarning)
      println("Warning: ", w.msg)
    end
   '
)

We run the warning with

julia_command('warning_convergence(JuliaWarning("The particle filter failed to converge."))')

On MacOS, this returns

Warning: The particle filter failed to converge.

But on Windows nothing is returned.

@edwardlavender
Copy link
Owner Author

See also JuliaInterop/JuliaCall#76

edwardlavender added a commit to edwardlavender/Patter.jl that referenced this issue Oct 21, 2024
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

No branches or pull requests

1 participant