SenseTime-Copilot / Raccoon

Raccoon is Another Code CO-pilot Navigator
9 stars 1 forks source link

[Need Improvement] Raccoon switched to English mode by itself and cannot be switched back #49

Open diskman79 opened 2 months ago

diskman79 commented 2 months ago

Type: Bug

Your question

用中文回答


AC_PREREQ([2.61])
AC_INIT([fibo_at_client_lib], [1.0.0], [kerychen.scut@gmail.com])
AM_INIT_AUTOMAKE([-Wall gnu foreign])
AM_MAINTAINER_MODE
AC_CONFIG_HEADER([config.h])
AC_CONFIG_MACRO_DIR([m4])

# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
AM_PROG_AS
AC_PROG_LIBTOOL
AC_PROG_AWK
AC_PROG_CPP
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
PKG_PROG_PKG_CONFIG

# Library configs

AC_ARG_WITH([lib_path],
      AC_HELP_STRING([--with-lib-path=@<:@dir@:>@],
         [Specify the location of the libraries]),
      [std_libdir=$withval],
      with_lib_path=no)

if test "x$with_lib_path" != "xno"; then
   LDFLAGS="${LDFLAGS} -L${std_libdir}"
fi

AC_ARG_WITH([stderr],
      AC_HELP_STRING([--with-stderr=@<:@dir@:>@],
         [Enable stderr logging]),
      [],
      with_stderr=no)
if test "x$with_stderr" != "xno"; then
   CPPFLAGS="${CPPFLAGS} -DFEATURE_DATA_LOG_STDERR"
fi

AC_ARG_WITH([qxdm],
      AC_HELP_STRING([--with-qxdm=@<:@dir@:>@],
         [Enable qxdm logging]),
      [],
      with_qxdm=no)

if test "x$with_qxdm" != "xno"; then
CPPFLAGS="${CPPFLAGS} -DFEATURE_DATA_LOG_QXDM"
fi

AC_ARG_WITH([glib],
      AC_HELP_STRING([--with-glib],
         [enable glib, building HLOS systems which use glib]))

if (test "x${with_glib}" = "xyes"); then
        AC_DEFINE(ENABLE_USEGLIB, 1, [Define if HLOS systems uses glib])
        PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= 2.16, dummy=yes,
                                AC_MSG_ERROR(GThread >= 2.16 is required))
        PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.16, dummy=yes,
                                AC_MSG_ERROR(GLib >= 2.16 is required))
        GLIB_CFLAGS="$GLIB_CFLAGS $GTHREAD_CFLAGS"
        GLIB_LIBS="$GLIB_LIBS $GTHREAD_LIBS"

        AC_SUBST(GLIB_CFLAGS)
        AC_SUBST(GLIB_LIBS)
fi

AC_ARG_WITH([fibo-project-name],
      AC_HELP_STRING([--with-fibo-project-name],
         [enable fibo project name]), FIBO_PROJECT_NAME="$withval")
AC_SUBST([FIBO_PROJECT_NAME])

AC_ARG_WITH([fibo-project-target],
      AC_HELP_STRING([--with-fibo-project-target],
         [enable fibo project target]), FIBO_PROJECT_TARGET="$withval")
AC_SUBST([FIBO_PROJECT_TARGET])

AC_ARG_WITH([fwa-ram-opt],
      AC_HELP_STRING([--with-fwa-ram-opt],
         [enable fwa ram opt]))
AM_CONDITIONAL(FWA_RAM_OPT, [test "x${with_fwa_ram_opt}" = "xtrue"])

AC_ARG_ENABLE([target-sdxlemur],
    AC_HELP_STRING([--enable-target-sdxlemur],
        [Enable conditional compile for target sdxlemur]),
    [target_sdxlemur="${enableval}"],
    target_sdxlemur=no)

IS_SDXLEMUR=false

if (test "x$target_sdxlemur" = "xyes"); then
      IS_SDXLEMUR=true
else
      AC_MSG_NOTICE([A valid target was not specified. Please check the '--enable-target' option.])
      IS_SDXLEMUR=false
fi

AM_CONDITIONAL(FIBO_TARGET_SDXLEMUR, test "x$IS_SDXLEMUR" = "xtrue")

AC_ARG_ENABLE([target-sdxpinn],
    AC_HELP_STRING([--enable-target-sdxpinn],
        [Enable conditional compile for target sdxpinn]),
    [target_sdxpinn="${enableval}"],
    target_sdxpinn=no)

IS_SDXPINN=false

if (test "x$target_sdxpinn" = "xyes"); then
      IS_SDXPINN=true
else
      AC_MSG_NOTICE([A valid target was not specified. Please check the '--enable-target' option.])
      IS_SDXPINN=false
fi

AM_CONDITIONAL(FIBO_TARGET_PINNACLES, test "x$IS_SDXPINN" = "xtrue")

AC_ARG_WITH([fibo-hw-platform-m2],
      AC_HELP_STRING([--with-fibo-hw-platform-m2],
         [enable fibo hw platform M2]))
AM_CONDITIONAL(FIBO_HW_PLATFORM_M2, [test "x${with_fibo_hw_platform_m2}" = "xtrue"])

AC_ARG_WITH([fibo-hw-platform-lga],
      AC_HELP_STRING([--with-fibo-hw-platform-lga],
         [enable fibo hw platform LGA]))
AM_CONDITIONAL(FIBO_HW_PLATFORM_LGA, [test "x${with_fibo_hw_platform_lga}" = "xtrue"])

AC_ARG_WITH([common_includes],
      AC_HELP_STRING([--with-common-includes=@<:@dir@:>@],
         [Specify the location of the common headers]),
      [common_incdir=$withval],
      with_common_includes=no)

if test "x$with_common_includes" != "xno"; then
   CFLAGS="${CFLAGS} -I${common_incdir}"
fi

AM_CONDITIONAL(USE_GLIB, test "x${with_glib}" = "xyes")

PKG_CHECK_MODULES([DIAG], [diag])
AC_SUBST([DIAG_CFLAGS])
AC_SUBST([DIAG_LIBS])

PKG_CHECK_MODULES([FIBOUTILS], [fibo_utils])
AC_SUBST([FIBOUTILS_CFLAGS])
AC_SUBST([FIBOUTILS_LIBS])

PKG_CHECK_MODULES([FIBOSOCKCLIENT], [fibo_sock_client])
AC_SUBST([FIBOSOCKCLIENT_CFLAGS])
AC_SUBST([FIBOSOCKCLIENT_LIBS])

AC_ARG_WITH(sanitized-headers,
        AS_HELP_STRING([--with-sanitized-headers=DIR],
                [Specify the location of the sanitized Linux headers]),
        [CPPFLAGS="$CPPFLAGS -idirafter $withval"])

AS_CASE([$host],
    [arm*], [ARM=yes],
    [ARM=no]
)

AM_CONDITIONAL(ARM, [test "x$ARM" = "xyes"])
AC_SUBST([CFLAGS])
AC_SUBST([CPPFLAGS])
AC_SUBST([CC])
AC_SUBST([CXX])
AC_SUBST([ARCH])

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_HEADER_STDC
AC_C_INLINE
AC_TYPE_INT64_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT8_T

# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
AC_FUNC_FORK
AC_FUNC_MALLOC

AC_CONFIG_FILES([ \
        Makefile \
        fibo_at_client.pc
        ])

AC_OUTPUT

Raccoon's answer

This is a script for configuring a software project called "fibo_at_client_lib". The script checks for various required packages and sets up the build process for the project. The script also allows for various options to be specified at the command line when running the configuration process, such as the location of various libraries and headers required by the project.

Your expection

我要它用中文回答 但是它坚持使用英文

Extension version: 0.68.0 VS Code version: Code 1.88.0 (5c3e652f63e798a5ac2f31ffd0d863669328dc4c, 2024-04-03T13:26:18.741Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i5-1155G7 @ 2.50GHz (8 x 2496)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|15.79GB (7.05GB free)| |Process Argv|D:\\Workplace\\Programs\\git\\fwa-platform --crash-reporter-id e8a88e14-704b-42fb-bd38-772a40147239| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscoreces:30445986 vscod805cf:30301675 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:30899288 vscaac:30438847 c4g48928:30535728 azure-dev_surveyone:30548225 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 h48ei257:31000450 pythontbext0:30879054 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 d34g3935:30971562 fegfb526:30981948 bg6jg535:30979843 ccp2r3:30993541 dsvsc020:30976470 pythonait:31006305 gee8j676:31009558 dsvsc021:30996838 g1icg217:30999571 vstestc:31012532 ```