Skip to content

loadapp() not recognizing "using ..Module" #534

Discussion options

You must be logged in to vote

Okay, I understand my mistake now. What I did was the following:

in routes.jl:

using Genie.Router
using Stipple, StippleUI, StipplePlotly
using Presentations

in Presentations.jl:

module Presentations
using ..Stipple, ..StipplePlotly

This led to the error described in the original post. My mistake was in routes.jl. Here's a version which works just as intended:

using Genie.Router
using Stipple, StippleUI, StipplePlotly
include("src/Presentations.jl")
using ..Presentations

This sped up compiling my code, from 90 to 45 seconds. HOWEVER, this approach has a downside in that it doesn't seem to be compatible with revise. As I documented here, I found that combining my modules into one big modul…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jochenkrattenmacher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant