spadarian / docblock-python

Atom plugin to insert documentation blocks for python functions
GNU General Public License v2.0
22 stars 9 forks source link

No Generation happening in Cython #27

Closed SebastianSemper closed 5 years ago

SebastianSemper commented 5 years ago

I get no output from docblock in a file named foobar.pyx, which is residing in a class definition. I am running docblock 0.11, atom 1.32.2 and electron 2.0.12 on Manjaro Linux.

Hints?

cpdef tuple _getComplexity(self):
        cdef float complexityFwd = self.numRows
        cdef float complexityBwd = self.numCols
        cdef Matrix item
        for item in self:
            complexityFwd += item.numRows + item.numCols
            complexityBwd += item.numCols + item.numRows

        return (complexityFwd, complexityBwd)
spadarian commented 5 years ago

I forgot about the extension... Are you using the language-cython package?

SebastianSemper commented 5 years ago

Yes, I do. Normal *.py process fine btw. this was a false alarm from my side.

On Tue, 20 Nov 2018 at 11:32, José Padarian notifications@github.com wrote:

I forgot about the extension... Are you using the language-cython package?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/spadarian/docblock-python/issues/27#issuecomment-440224212, or mute the thread https://github.com/notifications/unsubscribe-auth/ABDZRtm6XEpab12gviRGj2xfHPw9B7IGks5uw9ougaJpZM4YqqSr .

spadarian commented 5 years ago

Ok... the solution is simple then. I just need to add support or the Cython language. I will push a patch in a few minutes.