Skip to content

Version 2.1.0 throws unhandled error during formatting #1218

@Siegrift

Description

@Siegrift
[error] contracts/<CONTRACT_NAME>: Error: We encountered the following syntax error:
[error]
[error] 	Expected EqualGreaterThan.
[error]
[error] Based on the pragma statements, we inferred your code to be using Solidity version 0.8.17. If you would like to change that, update the pragmas in your source file, or specify a version in your `.prettierrc` file.

My contract starts with the following:

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

which seems to be parsed well in other files, so I dunno what actually causes the error. However, everything works fine with with version 2.0.0 (I noticed this issue during dependency upgrade). Unfortunately, I can't share the contract implementation details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions