Skip to content

Newer Lua support #194

@hladkyjakub

Description

@hladkyjakub

Hi, running this for newer lua (not newest) 5.4.

While I can simply solve problems when 5.1 to 5.4 functions were renamed, I just can't get rid of errors which are caused by & (bitwise AND) and I suspect more bitwise operations might be problematic as well.

On Linux, Kubuntu

stack traceback:
PROMETHEUS: Parsing ...
PROMETHEUS: Lexing Error at Position 448:23, Unexpected char "\038"!
lua: ./src/logger.lua:54: Lexing Error at Position 448:23, Unexpected char "\038"!
stack traceback:
[C]: in function 'error'
./src/logger.lua:54: in function 'logger.errorCallback'
./src/logger.lua:57: in function 'logger.error'
./src/prometheus/tokenizer.lua:534: in function 'prometheus.tokenizer.next'
./src/prometheus/tokenizer.lua:540: in function 'prometheus.tokenizer.scanAll'
./src/prometheus/parser.lua:143: in function 'prometheus.parser.parse'
./src/prometheus/pipeline.lua:178: in function 'prometheus.pipeline.apply'
./src/cli.lua:393: in main chunk
[C]: in function 'require'
./cli.lua:12: in main chunk
[C]: in ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions