Docs integration should not throw errors
- Dominant language
- Julia
- Stars
- 1.5k
- Forks
- 186
- PR merge metrics
- No merged PRs in 30d
Description
```
julia> using PyCall, PyPlot
julia> x= 1:10
1:10
julia> y= 1:10
1:10
julia> fig, ax = subplots()
(Figure(PyObject ), PyObject )
julia> ax[:plot](x,y)
1-element Array{PyObject,1}:
PyObject
help?> ax
search: ax axis axes axvspan axvline axhspan axhline Axes3D max maximum maximum! maxintfloat delaxes minmax typemax findmax
ERROR: PyError ($(Expr(:escape, :(ccall(#= /home/pfitzseb/.julia/packages/PyCall/0jMpb/src/conversions.jl:87 =# @pysym(PyString_AsStringAndSize), Cint, (PyPtr, Ptr{Ptr{UInt8}}, Ptr{Int}), po, _ps_ptr, _ps_len)))))
TypeError('expected bytes, NoneType found')
Stacktrace:
[1] pyerr_check at /home/pfitzseb/.julia/packages/PyCall/0jMpb/src/exception.jl:60 [inlined]
[2] pyerr_check at /home/pfitzseb/.julia/packages/PyCall/0jMpb/src/exception.jl:64 [inlined]
[3] macro expansion at /home/pfitzseb/.julia/packages/PyCall/0jMpb/src/exception.jl:84 [inlined]
[4] convert(::Type{String}, ::PyObject) at /home/pfitzseb/.julia/packages/PyCall/0jMpb/src/conversions.jl:87
[5] getdoc at /home/pfitzseb/.julia/packages/PyCall/0jMpb/src/PyCall.jl:857 [inlined]
[6] getdoc(::Any, ::Any) at ./docs/Docs.jl:254
[7] doc(::Base.Docs.Binding, ::Type) at /home/pfitzseb/Documents/Git/julia/usr/share/julia/stdlib/v1.2/REPL/src/docview.jl:86
[8] doc(::Base.Docs.Binding) at /home/pfitzseb/Documents/Git/julia/usr/share/julia/stdlib/v1.2/REPL/src/docview.jl:85
[9] top-level scope at /home/pfitzseb/Documents/Git/julia/usr/share/julia/stdlib/v1.2/REPL/src/docview.jl:285
```
Originally reported in https://github.com/JunoLab/Juno.jl/issues/217. Seems to happen for all Julia versions between 0.7 and master, afaict.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.