Startup.jl not running

HI,

  • if you compare lines 3 and 4 in your startup – the difference is exactly that line 3 has quote marks ( and ) as opposed to line 4 which has “poor mans quotes” or in other words the “inch” character as limiters for a string. Line 3 might have been changed by an advanced text editor, but is no longer right Julia code, since “...”is not how to delimit a string "..."is.

  • Concerning the three backticks – that is not a quote/blockquote but a code environment, i.e. all stuff between that is set as code (the same for single backticks in running text like `code` is set as code. A block quote would need all lines prepended with a >so (yay we can illustrate code env directly)

    > I am a
    > blockquote
    

    renders as

    I am a
    block quote

    (but note that this does not look like code – and for code lines you want them to look like code)

    But for code you are actually looking for the three backticks code-environment. This is indeed unrelated to Julia and more the discourse forum markup, I found an overview at Discourse Guide: Code Formatting - Meta - Stonehearth Discourse

  • Concnering the order. All I could find anywhere was the location ~/.julia/config/startup.jl. But it might be (have not found that yet) that your first file takes priority over the local one? Since that only contains a line calling the local one you could try to rename/remove the global one (your first) one and then check whether it runs you local one?

edit: You could try this command How do I open and edit my startup.jl file? - #3 by ianshmean and see which file opens?

edit2: Did you by any chance set the JULIA_DEPOT_PATH? See https://docs.julialang.org/en/v1/manual/command-line-options/ the startup-file command line option, if that is not set it should load your local one.

2 Likes