documentation issue: troubleshooting confusing code for compilation cache issue
- Dominant language
- Python
- Stars
- 893
- Forks
- 101
- PR merge metrics
- No merged PRs in 30d
Description
This issue is based upon a conversation on the #helpdesk channel on Julia Slack. The code to troubleshoot the compiled cache issue was not working on my own implementation of Julia 1.3 on ubuntu 18.04 x64.
As per the basic documentation I was using the code"
```
import julia
j = julia.Julia()
j.include("jinclude.jl")
from julia import Main
a = Main.myFunction(1, 2)
```
When I ran this code with my own, I was getting the error Exception `'ArgumentError' occurred while calling julia code`. As per the current troubleshooting guide I tried:
```
>>> from julia.api import Julia
>>> jl = Julia(compiled_modules=False)
```
But this did not work. When I tried to run `jl.include("jincludes.jl")` the code did not run or gave me a compile error. I figured out that the correct code was as follows.
```
import julia
jl = julia.Julia(compiled_modules=False)
jl.include('jinclude.jl') # my file with functions
from julia import Main
a = Main.myFunction(3,4) # function from `jinclude.jl` file.
print(a)
```
This worked just fine for me, no problem.
Now if the maintainers agree, I can write a pull request against the documentation to change the implementation of the fix. I don't have a way to test this particular code on different platforms, like Windows or Mac, etc. So I created this issue to setup a potential corresponding pull request.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.