You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to document simple lua file with classes, as soon as I try to use the @class tag somewhere, for example on this simple file
--- A Metric---@classMetric---@fieldnamestring the name of the metric---@fieldvaluenumber the value of the metric---@fieldlabels{ [string]: string } the labels of the metricMetric= {}
functionMetric:new(object)
object=objector {}
setmetatable(object, self)
self.__index=selfreturnobjectendreturnMetric
I keep getting the following error
ldoc --lls -a -d dist/docs/lua src/prometheus/metric.lua
src/prometheus/metric.lua:16: ?: 'class' cannot have multiple values; {Metric,module}
(same without --lls)
No issue however when I run it on file containing for example only a @module annotation.
Is there something broken or am I doing it wrong ?
No issue however with IDE autocompletion with those same annotations (PyCharm)
ldoc v1.5.0
Thanks
The text was updated successfully, but these errors were encountered:
Hello.
I am trying to document simple lua file with classes, as soon as I try to use the
@class
tag somewhere, for example on this simple fileI keep getting the following error
(same without
--lls
)No issue however when I run it on file containing for example only a
@module
annotation.Is there something broken or am I doing it wrong ?
No issue however with IDE autocompletion with those same annotations (PyCharm)
ldoc v1.5.0
Thanks
The text was updated successfully, but these errors were encountered: