Skip to content

[Bug]: Tree-sitter cannot file when newline characters are missing #1372

Open
@pedeEli

Description

@pedeEli

What happened?

A file that has carriage returns but no newline character can be parsed by R but not by tree-sitter.
Simple fix would be to insert a newline after every carriage return character if it does not have a newline after it already.

The file i used to figure this out was sunrise.set.R from the StreamMetabolism cran package.

What version of R do you have installed?

No response

What version of flowR did you use?

v2.2.8 (Feb 19, 2025)

Related input code

Relevant log output

Meta Information

  • The Issue is Urgent
  • I Used the Dockerized Version of flowr

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions