Author Topic: CodeCompletion headers with slash "/"  (Read 525 times)

Offline alexanderanchishkin

  • Single posting newcomer
  • *
  • Posts: 1
CodeCompletion headers with slash "/"
« on: October 11, 2020, 08:50:00 pm »
Good day!
Codeblocks 20.03.
I met bug: I want to include <bits/stdc++.h> header.
When I type:
"#include <bits/s"
I see suggestions and when I choose (it doesn't matter how: click, Enter or TAB) header it writes:
#include <bits/bits/stdc++.h>
It seems like it forgets typed "bits/" before.
I tried other headers inside bits/, I tried other folders like "decimal/", "experimental/", "ext/" - same result.
If I type "#include <bit" and choose header - it's okay of course.
If I type longer "#include <bits/stdc+..." - it doubles "bits/" too.
I tried to change CodeCompletion settings (include disabling headers parsing).

I have this problem on two Windows 10 computers.

But I found workaround!
It works okay if I save file after focus the line in the file and before choosing header (I can type some symbols "#inc.." or I can save file and then start typing). But if I erase line after choosing header and try to repeat it WITHOUT saving file it doubled directory again.

Reparsing project or just this file doesn't help without saving file. (I tried to change option "Update parsing while typing").

So my question: Is it a bug or is it a feature? :D
I honestly searched problem with keyword "slash" on this forum but I didn't found topic about this problem. Sorry if I should grow my searching skills! :)

Thank you!

UPD.,22748.msg154533.html - OK, I searched again and I found ;D But there wasn't any answer and other version :D
« Last Edit: October 11, 2020, 09:00:10 pm by alexanderanchishkin »

Offline Marry

  • Single posting newcomer
  • *
  • Posts: 1
Re: CodeCompletion headers with slash "/"
« Reply #1 on: October 14, 2020, 09:02:36 pm »
On Windows, both / and \ function as pathname component separators subway survey (dividing the name of a directory from the name of something within the directory). On basically all other operating systems in common use today, only / serves this function.1
« Last Edit: October 16, 2020, 07:47:13 pm by Marry »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2267
Re: CodeCompletion headers with slash "/"
« Reply #2 on: October 17, 2020, 06:54:05 am »
Most code completion mechanisms require that you save the file before it is parsed again to recognize changes to the file.