Skip to content

Error Formating blade files (v1.45.15382 (pre-release)) #548

@trollfalgar

Description

@trollfalgar

Version: 1.45.15382 (pre-release)

When formatting a simple blade file (with some components and Livewire component even, the file is formatted without problems.

image

But when formatting a file with more complex parameters for blade component (or livewire component), the extension crashes, and restart.

image

I believe the problem is how we pass the parameters :sortColumn="$sortColumn" :order="$order" or even :$sortColumn :$order, with colon. Indicating we are passing a PHP expression and have line break.

As you can see in the image below, the code :order="$order" is in the next line. This way, the extension crashes. BUT, if I remove the break line, and put all the code in one line, the formatting works fine.

image

vs

image

I hope the explenation is clear. ^^'

Here are the logs:

image

I also receave the following message:

image

Obs: The false errors in the files are not present anymore.

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