luttje / glua-api-snippets

Scrapes the Garry's Mod Wiki in order to build Lua Language Server comments that will provide IDE suggestions and autocompletion.
MIT License
18 stars 6 forks source link

GitHub action failed #25

Closed luttje closed 9 months ago

luttje commented 11 months ago

Run JohnnyMorganz/stylua-action@v2 /usr/bin/unzip -q /home/runner/work/_temp/f850578e-84bb-4db5-b6a0-37e0d146d1e7 /usr/bin/chmod +x /home/runner/work/_temp/48b489d4-4fa4-4313-83ce-25d20e900675/stylua /home/runner/work/_temp/48b489d4-4fa4-4313-83ce-25d20e900675/stylua output/ error: could not format file output/slider.lua: error parsing: error occurred while creating ast: unexpected token Use. (starting from line 4, character 4 and ending on line 4, character 7) additional information: leftover token Error: The process '/home/runner/work/_temp/48b489d4-4fa4-4313-83ce-25d20e900675/stylua' failed with exit code 2

Full log: https://pastebin.com/dzg1h0Bv

luttje commented 10 months ago

The problematic markup:

<panel>
    <parent>Panel</parent>
    <preview>SliderExample.png</preview>
    <realm>Client and Menu</realm>
    <description>
        <deprecated>
            Only exists for backwards compatibility with <page>Panel:SetActionFunction</page> and <page>Panel:PostMessage</page>.
            Use <page>DNumSlider</page> instead.
        </deprecated>

        A simple slider featuring an numeric display.
    </description>
</panel>

<example>
    <description>Creates a slider atop a DFrame which prints its value as it's being dragged.</description>
    <code>
local frame = vgui.Create( "DFrame" )
frame:SetSize( 280, 70 )
frame:Center()
frame:SetTitle( "Bilderberg Group Dollar Value Slider" )
frame:MakePopup()

local DermaSlider = vgui.Create("Slider", frame)
DermaSlider:SetPos( 0, 30 ) 
DermaSlider:SetWide( 100 )
DermaSlider:SetMin( 0 )
DermaSlider:SetMax( 1.0 )
DermaSlider:SetValue( 0.5 )
DermaSlider:SetDecimals( 2 )
DermaSlider.OnValueChanged = function( panel, value )
    print( tostring( value ) )
end
    </code>

</example>