-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Initial require goes beyond .jl file line length #2417
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
Comments
I'm curious why you're using Changing all of the julia> require("partial.jl")
Computing VFI for deterministic income and no mortality risk
Elapsed 129.54883098602295
Computing VFI for deterministic income WITH mortality risk
Elapsed 134.35323786735535 Oh, and you probably want "using Stats" instead of "require("Stats")". |
I was actively changing the functions I was loading, so this prevented me from closing julia. Changing stuff around like you said does fix it. Thanks! The issue still remains though. Why is using better than require? |
I am looking into this, but for now @kmsquire is right --- it's not recommended to sprinkle reloads and requires all over in random places. For example you reload I also recommend using global variables less, and generally doing less at the top level --- it will make your code easier to test and reuse. The way you wrote it, all one can really do is reload the file and rerun your whole process. By breaking things into definitions, you can interactively test and rerun parts of it without starting over.
|
I didn't even know I was using global variables, can you tell me which are? |
When you assign |
This should include the recent `is_stdlib()` fixes. Short commit log: ``` 7a9d9654 (HEAD -> master, origin/master, origin/HEAD) [ext/HSG]: Store next release _and_ latest nightly (#2418) 7b870924 [ext/HSG]: Enable generating historical stdlibs on macOS (#2417) 5d496193 Update Project.toml feada149 only use the stdlib version cache if a custom version is given to the resolver bae808dc Fix Markdown table formatting (#2416) 6e8b6214 Update docstrings for io kwargs, some io kwarg fixes, update stdlib list (#2402) c2e3879e Mark the "STDLIBS_BY_VERSION up-to-date" test as broken (#2409) ```
This should include the recent `is_stdlib()` fixes. Short commit log: ``` 7a9d9654 (HEAD -> master, origin/master, origin/HEAD) [ext/HSG]: Store next release _and_ latest nightly (#2418) 7b870924 [ext/HSG]: Enable generating historical stdlibs on macOS (#2417) 5d496193 Update Project.toml feada149 only use the stdlib version cache if a custom version is given to the resolver bae808dc Fix Markdown table formatting (#2416) 6e8b6214 Update docstrings for io kwargs, some io kwarg fixes, update stdlib list (#2402) c2e3879e Mark the "STDLIBS_BY_VERSION up-to-date" test as broken (#2409) ```
This should include the recent `is_stdlib()` fixes. Short commit log: ``` 7a9d9654 (HEAD -> master, origin/master, origin/HEAD) [ext/HSG]: Store next release _and_ latest nightly (JuliaLang#2418) 7b870924 [ext/HSG]: Enable generating historical stdlibs on macOS (JuliaLang#2417) 5d496193 Update Project.toml feada149 only use the stdlib version cache if a custom version is given to the resolver bae808dc Fix Markdown table formatting (JuliaLang#2416) 6e8b6214 Update docstrings for io kwargs, some io kwarg fixes, update stdlib list (JuliaLang#2402) c2e3879e Mark the "STDLIBS_BY_VERSION up-to-date" test as broken (JuliaLang#2409) ```
This should include the recent `is_stdlib()` fixes. Short commit log: ``` 7a9d9654 (HEAD -> master, origin/master, origin/HEAD) [ext/HSG]: Store next release _and_ latest nightly (JuliaLang#2418) 7b870924 [ext/HSG]: Enable generating historical stdlibs on macOS (JuliaLang#2417) 5d496193 Update Project.toml feada149 only use the stdlib version cache if a custom version is given to the resolver bae808dc Fix Markdown table formatting (JuliaLang#2416) 6e8b6214 Update docstrings for io kwargs, some io kwarg fixes, update stdlib list (JuliaLang#2402) c2e3879e Mark the "STDLIBS_BY_VERSION up-to-date" test as broken (JuliaLang#2409) ```
Hi, I'm having a weird problem. I have a program partial.jl (and some auxiliary files) that performs some computations, but if I run julia and run require("partial.jl"), the main file i will run some parts and then return
The first two lines are part of the program, but then the rest is the bug. My file only has 195 lines! If I afterwards run
It runs perfectly fine. There must be something wrong with the initial require that is giving me trouble. Or there is not a proper EOF in my partial.jl? If you want the code that generated this issue it is at http://gcamilo.com/compartir/dirkProject.zip
The text was updated successfully, but these errors were encountered: