Skip to content

Extract to function sometimes adds a #include with the folder missing from the path #12897

Open

Description

We have a repro internally with main.cpp line 208 (call to fclose). It adds "<file>.h" instead of "<parentFolder>/<file>.h" where <parentFolder> is not in the includePaths (but its parent is).

It's possible the bug could repro with Create Declaration/Definition too. I'm not sure yet if it ever adds the <parentFolder>.

I'm not sure if it repros with VS yet.

With Debug bits it fails with "Unknown error" before any code is generated.

Image

Activity

  1. added
    Feature: Extract to function
    on Oct 29, 2024
  2. changed the title [-]Extract to function sometimes add a #include with the wrong path[/-] [+]Extract to function sometimes adds a #include with the folder missing from the path[/+] on Oct 29, 2024
  3. 6 remaining items

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

Metadata

Metadata

Labels

Feature: Extract to functionLanguage Servicebug

Type

Projects

  • Status
    Triage

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions