Skip to content
This repository was archived by the owner on Jun 12, 2021. It is now read-only.
This repository was archived by the owner on Jun 12, 2021. It is now read-only.

关于工程文件不创建在工程根目录下,include path找不到的问题 #54

Description

@zhouxf-cn

把工程文件放入指定文件夹PROJECT(非工程根目录),虽然可以自动生成c_cpp_properties.json并配置路径,但不起作用
PS E:\keil_project\freertos_f407ve> ls

    目录: E:\keil_project\freertos_f407ve


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----         2021/6/11     21:39                CMSIS
d-----         2021/6/11     20:55                FreeRTOS
d-----         2021/6/11     21:13                FWLIB
d-----         2021/6/12     12:19                OUTPUT
d-----         2021/6/12     12:10                PROJECT
d-----         2021/6/11     21:28                STARTUP
d-----         2021/6/11     22:43                USER


PS E:\keil_project\freertos_f407ve> 

表现如下:
1.加载工程后,不跳转工作区,直接打开任意.c文件,比如main.c,提示找不到头文件,F12也无法跳转
2.跳转到工作区,也只显示project文件夹下内容,其他上层目录比如USER等不显示
3.手动在工作区打开根文件freertos_f407ve,无法自动加载PROJECT文件夹下的.vscode,导致头文件找不到
4.手动将.vscode(c_cpp_properties.json)拷贝一份,到根目录下,才可以

考虑将来工程配置更新后(PROJECT/.vscode/c_cpp_properties.json),仍需手动拷贝的麻烦

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions