Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [QtCreator] strange reaction with switch header/soource
Forum Updated to NodeBB v4.3 + New Features

[QtCreator] strange reaction with switch header/soource

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
2 Posts 2 Posters 310 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alain38 0
    wrote on last edited by Alain38 0
    #1

    Hi,
    Currently, when I'm click on "switch header/source file" or "switch function definition/declaration" I observes a strange thing. Switching is performed well. But when I want to go back to the previous file, QtCreator cancles my operation.

    To be more explicit, supposes that I'm currently displaying the .cpp file. I perform a switch. So .h is now displayed. But if I try to go back to the .cpp file, QtCreator cancels my operation and displays again the .h file.

    Has anyone observed the same problem?

    I'm currently using QtCreator 8.0.1 under Windows10.

    1 Reply Last reply
    0
    • cristian-adamC Offline
      cristian-adamC Offline
      cristian-adam
      wrote on last edited by
      #2

      Qt Creator 8 moved the header / source switching to clangd, which has two ways of working:

      1. looks on disk after the corresponding files
      2. takes symbols into consideration and does a heuristic switch

      The second point makes it possible for clangd to find a header even if it doesn't exist. See https://github.com/clangd/clangd/issues/1225

      There is a bug report for this issue: QTCREATORBUG-28183
      On "Switch Header/Source", it switches and switches back
      . I don't know if you commented there / upvoted.

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved