-
Notifications
You must be signed in to change notification settings - Fork 274
Description
INFO README-AI is now executing.
INFO Successfully validated OpenAI API key.
INFO Model: {'endpoint': 'https://api.openai.com/v1/chat/completions', 'engine': 'gpt-3.5-turbo', 'encoding': 'cl100k_base', 'rate_limit': 5, 'tokens': 600, 'tokens_max': 4000, 'temperature': 0.9, 'api_key': '****************'}
INFO Repository: GitConfig(repository='https://github.com/yusing/Torrenium', name='Torrenium')
Traceback (most recent call last):
File "/usr/local/bin/readmeai", line 8, in
sys.exit(cli())
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/readmeai/main.py", line 130, in cli
asyncio.run(main(api_key, output, repository))
File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
return future.result()
File "/usr/local/lib/python3.9/site-packages/readmeai/main.py", line 27, in main
await generate_readme(llm)
File "/usr/local/lib/python3.9/site-packages/readmeai/main.py", line 34, in generate_readme
dependencies, file_text = get_dependencies(scanner, repository)
File "/usr/local/lib/python3.9/site-packages/readmeai/main.py", line 88, in get_dependencies
dependencies, file_text = scanner.get_dependencies(repository)
File "/usr/local/lib/python3.9/site-packages/readmeai/preprocess.py", line 34, in get_dependencies
dependencies = self.parser.get_dependency_file_contents(contents)
File "/usr/local/lib/python3.9/site-packages/readmeai/preprocess.py", line 89, in get_dependency_file_contents
parsed_content = parser(content["content"])
File "/usr/local/lib/python3.9/site-packages/readmeai/parse.py", line 196, in parse_cmake
with open(file_path) as f:
OSError: [Errno 36] File name too long: '# Project-level configuration.\ncmake_minimum_required(VERSION 3.10)\nproject(runner LANGUAGES CXX)\n\n# The name of the executable created for the application. Change this to change\n# the on-disk name of your application.\nset(BINARY_NAME "torrenium")\n# The unique GTK application identifier for this application. See:\n# https://wiki.gnome.org/HowDoI/ChooseApplicationID\nset(APPLICATION_ID "com.yusing.torrenium")\n\n# Explicitly opt in to modern CMake behaviors to avoid warnings with recent\n# versions of CMake.\ncmake_policy(SET CMP0063 NEW)\n\n# Load bundled libraries from the lib/ directory relative to the binary.\nset(CMAKE_INSTALL_RPATH "$ORIGIN/lib")\n\n# Root filesystem for cross-building.\nif(FLUTTER_TARGET_PLATFORM_SYSROOT)\n set(CMAKE_SYSROOT ${FLUTTER_TARGET_PLATFORM_SYSROOT})\n set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT})\n set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)\n set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)\n set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)\n set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)\nendif()\n\n# Define build configuration options.\nif(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)\n set(CMAKE_BUILD_TYPE "Debug" CACHE\n STRING "Flutter build mode" FORCE)\n set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS\n "Debug" "Profile" "Release")\nendif()\n\n# Compilation settings that should be applied to most targets.\n#\n# Be cautious about adding new options here, as plugins use this function by\n# default. In most cases, you should add new options to specific targets instead\n# of modifying this function.\nfunction(APPLY_STANDARD_SETTINGS TARGET)\n target_compile_features(${TARGET} PUBLIC cxx_std_14)\n target_compile_options(${TARGET} PRIVATE -Wall -Werror)\n target_compile_options(flutter run will no longer work.\n#\n# Any new source files that you add to the application should be added here.\nadd_executable(${BINARY_NAME}\n "main.cc"\n "my_application.cc"\n "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc"\n)\n\n# Apply the standard set of build settings. This can be removed for applications\n# that need different build settings.\napply_standard_settings(${BINARY_NAME})\n\n# Add dependency libraries. Add any application-specific dependencies here.\ntarget_link_libraries(${BINARY_NAME} PRIVATE flutter)\ntarget_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK)\n\n# Run the Flutter tool portions of the build. This must not be removed.\nadd_dependencies(${BINARY_NAME} flutter_assemble)\n\n# Only the install-generated bundle's copy of the executable will launch\n# correctly, since the resources must in the right relative locations. To avoid\n# people trying to run the unbundled copy, put it in a subdirectory instead of\n# the default top-level location.\nset_target_properties(${BINARY_NAME}\n PROPERTIES\n RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run"\n)\n\n# Generated plugin build rules, which manage building the plugins and adding\n# them to the application.\ninclude(flutter/generated_plugins.cmake)\n\n\n# === Installation ===\n# By default, "installing" just makes a relocatable bundle in the build\n# directory.\nset(BUILD_BUNDLE_DIR "${PROJECT_BINARY_DIR}/bundle")\nif(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)\n set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE)\nendif()\n\n# Start with a clean build bundle directory every time.\ninstall(CODE "\n file(REMOVE_RECURSE \"${BUILD_BUNDLE_DIR}/\")\n " COMPONENT Runtime)\n\nset(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data")\nset(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib")\n\ninstall(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}"\n COMPONENT Runtime)\n\ninstall(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"\n COMPONENT Runtime)\n\ninstall(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"\n COMPONENT Runtime)\n\nforeach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES})\n install(FILES "${bundled_library}"\n DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"\n COMPONENT Runtime)\nendforeach(bundled_library)\n\n# Fully re-copy the assets directory on each build to avoid having stale files\n# from a previous install.\nset(FLUTTER_ASSET_DIR_NAME "flutter_assets")\ninstall(CODE "\n file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\")\n " COMPONENT Runtime)\ninstall(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}"\n DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime)\n\n# Install the AOT library on non-Debug builds only.\nif(NOT CMAKE_BUILD_TYPE MATCHES "Debug")\n install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"\n COMPONENT Runtime)\nendif()\n'