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

Error when caching with broadcasted function #4

Closed
PatrikCavina opened this issue Apr 26, 2023 · 0 comments · Fixed by #6
Closed

Error when caching with broadcasted function #4

PatrikCavina opened this issue Apr 26, 2023 · 0 comments · Fixed by #6
Assignees
Labels
bug Something isn't working

Comments

@PatrikCavina
Copy link

julia> X = @scache "dse" "./tmp" Float64.(SoleFeatures.Experimental.extract(Xdf, es))
ERROR: LoadError: ArgumentError: `@scache[jld]` can be used only with function calls: passed Float64.(SoleFeatures.Experimental.extract(Xdf, es))
Stacktrace:
  [1] var"@_scache"(__source__::LineNumberNode, __module__::Module, type::Any, common_cache_dir::Any, ex::Any)
    @ SimpleCaching ~/.julia/packages/SimpleCaching/RFRIM/src/caching.jl:117
  [2] eval
    @ ./boot.jl:368 [inlined]
  [3] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
    @ Base ./loading.jl:1428
  [4] invokelatest(::Any, ::Any, ::Vararg{Any}; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Base ./essentials.jl:729
  [5] invokelatest(::Any, ::Any, ::Vararg{Any})
    @ Base ./essentials.jl:726
  [6] inlineeval(m::Module, code::String, code_line::Int64, code_column::Int64, file::String; softscope::Bool)
    @ VSCodeServer ~/.vscode-server/extensions/julialang.language-julia-1.38.2/scripts/packages/VSCodeServer/src/eval.jl:233
  [7] (::VSCodeServer.var"#66#70"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
    @ VSCodeServer ~/.vscode-server/extensions/julialang.language-julia-1.38.2/scripts/packages/VSCodeServer/src/eval.jl:157
  [8] withpath(f::VSCodeServer.var"#66#70"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams}, path::String)
    @ VSCodeServer ~/.vscode-server/extensions/julialang.language-julia-1.38.2/scripts/packages/VSCodeServer/src/repl.jl:249
  [9] (::VSCodeServer.var"#65#69"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
    @ VSCodeServer ~/.vscode-server/extensions/julialang.language-julia-1.38.2/scripts/packages/VSCodeServer/src/eval.jl:155
 [10] hideprompt(f::VSCodeServer.var"#65#69"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})
    @ VSCodeServer ~/.vscode-server/extensions/julialang.language-julia-1.38.2/scripts/packages/VSCodeServer/src/repl.jl:38
 [11] (::VSCodeServer.var"#64#68"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
    @ VSCodeServer ~/.vscode-server/extensions/julialang.language-julia-1.38.2/scripts/packages/VSCodeServer/src/eval.jl:126
 [12] with_logstate(f::Function, logstate::Any)
    @ Base.CoreLogging ./logging.jl:511
 [13] with_logger
    @ ./logging.jl:623 [inlined]
 [14] (::VSCodeServer.var"#63#67"{VSCodeServer.ReplRunCodeRequestParams})()
    @ VSCodeServer ~/.vscode-server/extensions/julialang.language-julia-1.38.2/scripts/packages/VSCodeServer/src/eval.jl:225
 [15] #invokelatest#2
    @ ./essentials.jl:729 [inlined]
 [16] invokelatest(::Any)
    @ Base ./essentials.jl:726
 [17] macro expansion
    @ ~/.vscode-server/extensions/julialang.language-julia-1.38.2/scripts/packages/VSCodeServer/src/eval.jl:34 [inlined]
 [18] (::VSCodeServer.var"#61#62")()
    @ VSCodeServer ./task.jl:484
@ferdiu ferdiu self-assigned this May 21, 2023
@ferdiu ferdiu added the bug Something isn't working label May 21, 2023
@ferdiu ferdiu closed this as completed in #6 Aug 15, 2023
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

Successfully merging a pull request may close this issue.

2 participants