Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ hackfmt ] Hackfmt fails to format modern xhp class declarations #9165

Open
lexidor opened this issue Aug 30, 2022 · 0 comments
Open

[ hackfmt ] Hackfmt fails to format modern xhp class declarations #9165

lexidor opened this issue Aug 30, 2022 · 0 comments

Comments

@lexidor
Copy link
Collaborator

lexidor commented Aug 30, 2022

Describe the bug
Hackfmt fails to format files containing xhp class declarations.

Standalone code, or other way to reproduce the problem

Placed in file.hack

xhp class F {
            }

Steps to reproduce the behavior:

  1. hackfmt file.hack

Expected behavior

Expected format output like this:

xhp class F {
}

Actual behavior

$ hackfmt file.hack
(1,5)-(1,5) Encountered unexpected token `XHP`.
File failed to parse without errors

Environment

  • Operating system

'Ubuntu 18.04'

  • Installation method

'apt-get with dl.hhvm.com repository'

  • HHVM Version

Please include the output of hhvm --version and hh_client --version

HipHop VM 4.80.6 (rel)
Compiler: 1626798808_939072534
Repo schema: d1ae8e21bf3419a65f12a010527485564e719d07
hackc-80878ab52458a2db6bcc91cf1747df93ca647992-4.80.6

---

HipHop VM 4.102.7 (rel)
Compiler: 1647389495_389373763
Repo schema: d1ae8e21bf3419a65f12a010527485564e719d07
hackc-d09f6f5fa7d62773a2784453de10384260f720d7-4.102.7

---

HipHop VM 4.128.4 (rel) (non-lowptr)
Compiler: 1648578890_742766188
Repo schema: 3bffe303632e801137165e448a12a0707742584f
hackc-8b25016efed065c93522fd47cf375a24a364ab71-4.128.4

---

HipHop VM 4.164.0 (rel) (non-lowptr)
Compiler: 1657309234_951459400
Repo schema: c762591bd64e87a7b3be143e72e4a2e69ad9179f
hackc-34126416fe6f3d0ed29cbc7bc914e61c3c7607e4-4.164.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant