codeql icon indicating copy to clipboard operation
codeql copied to clipboard

Ruby: Error parsing embedded multiline blocks

Open causztic opened this issue 4 months ago • 1 comments
trafficstars

Description of the issue

Seeing this error in the CodeQL run: A parse error occurred. Check the syntax of the file. If the file is invalid, correct the error or exclude the file from analysis.

The errored code block in question looks something like this and runs correctly.

        <<~BLOCKA
            if some_condition?
              <<~BLOCKB
              BLOCKB
            end
        BLOCKA

causztic avatar Jun 23 '25 09:06 causztic

Hi @causztic,

Thanks for reporting this. I was able to reproduce this on the latest CodeQL version and I will report this to the Ruby team.

rvermeulen avatar Jun 23 '25 13:06 rvermeulen