-
Notifications
You must be signed in to change notification settings - Fork 15
Function must be explicitly imported to be extended #51
Comments
This appears to be caused by calling I can cause the same error by doing the following at a fresh REPL:
Curiously
Could you provide the output of |
Most recent builds, namely |
I'm on OSX 10.10 with homebrew Julia:
|
Given the differences between |
@dpo, the latest push to Docile master contains a new plain string implementation of docstrings. From what I can tell this problem is resolved when using the new system (though there may be others lurking). Unfortunately Lexicon will need a little work to be able to talk to Docile; that's what I'll be up to over the next few days. If you fancy living on the edge you can check out Docile master and try documenting things using: module MyModule
using Docile
@document # place at start of module
"foobar's documentation"
foobar(x, y) = x + y
end [Edit: change to Docile interface.] I'm sorry for the hassle this has caused. |
Many thanks for the hard work. No rush on my end. What you currently have is infinitely better than no documentation, so I can be patient. I don't mind living on the edge, but I suspect my users will run into problems because they'll have the release version of |
Yes, that would cause trouble for users. The next release shouldn't be too far away though. |
I'm not sure if this should be reported here or on the Lexicon tracker. I'm writing a module with a function named
factorize
. Julia doesn't have any complaints about it when I import the module, but when I document it and try to generate HTML documentation, I getIn this particular case, it does happen that my
factorize
is related toLinAlg.factorize
, but what if it weren't (e.g., if its purpose were to factor integers or polynomials)?The only workaround I've found so far is to use
@doc*
, but that lists my function separately from the rest.I'm not sure I understand why I would need to import
LinAlg.factorize
at all. That's what namespaces are for, isn't it?The text was updated successfully, but these errors were encountered: