Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions hphp/hack/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ endif()
add_custom_target(hack ALL DEPENDS hack_dune "${OPCODE_DATA}")
add_custom_target(hack_test DEPENDS hack_dune_test "${OPCODE_DATA}")

configure_file(hack_oss_dune_invoke.sh.in hack_oss_dune_invoke.sh ESCAPE_QUOTES @ONLY)
configure_file(dev_env.sh.in dev_env.sh ESCAPE_QUOTES @ONLY)
configure_file(dev_env_common.sh.in dev_env_common.sh ESCAPE_QUOTES @ONLY)
configure_file(dev_env_rust_only.sh.in dev_env_rust_only.sh ESCAPE_QUOTES @ONLY)
Expand Down
1 change: 1 addition & 0 deletions hphp/hack/Makefile.dune
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ build-hack$(2):
src/hh_client.$(1) \
src/hh_single_ide_format.$(1) \
src/hh_single_type_check.$(1) \
src/hh_single_complete.$(1) \
src/hackfmt.$(1) \
src/hh_parse.$(1) \
src/generate_full_fidelity.$(1)
Expand Down
15 changes: 15 additions & 0 deletions hphp/hack/hack_oss_dune_invoke.sh.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright (c) 2026, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the "hack" directory of this source tree.

# This file is processed by cmake; the produced file is intended for both
# internal usage by the build system, and for direct usage by people working on
# Hack itself from CMake builds:
#
# . $BUILD_DIR/hphp/hack/dev_env_rust_only.sh

. "@CMAKE_CURRENT_BINARY_DIR@/dev_env_common.sh"

opam exec -- dune "$@"
1 change: 1 addition & 0 deletions hphp/hack/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
(libraries
default_injector_config
file_content
folly_stubs
hh_single_common
hhi
search
Expand Down
7 changes: 4 additions & 3 deletions hphp/hack/test/parse_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@

import re
from dataclasses import dataclass
from enum import Enum
from typing import IO, List, Tuple

from python.migrations.py310 import StrEnum310


@dataclass
class ErrorCode:
Expand All @@ -28,9 +27,11 @@ class PositionedMessage:
message: str


class Severity(StrEnum310):
class Severity(Enum):
ERROR = "ERROR"
WARNING = "WARN"
def __format__(self, spec) -> str:
return str.__format__(str(self.name), spec)


@dataclass
Expand Down