[Qt-creator] Bug

Igor Mironchik igor.mironchik at gmail.com
Thu May 4 11:03:01 CEST 2017


https://bugreports.qt.io/browse/QTCREATORBUG-18146


2017-05-04 11:47, Eike Ziller пишет:
>> On May 4, 2017, at 10:46 AM, Igor Mironchik <igor.mironchik at gmail.com> wrote:
>>
>>
>>
>> 2017-05-04 11:43, Eike Ziller пишет:
>>>> On May 4, 2017, at 10:31 AM, Igor Mironchik <igor.mironchik at gmail.com> wrote:
>>>>
>>>> Hello,
>>>>
>>>> I cough a bug in 4.2.2 built with Qt 5.8.0 (MSVC 2015, 32 bit)  - official binaries.
>>>>
>>>> Let's say you have following code:
>>>>
>>>>
>>>> #define SL
>>>>
>>>> const char * t[ 13 * 3 ] = {
>>>>     SL"a", SL"abc", SL"-a", SL"--abc", SL"123", SL"sdf", SL"sdf", SL"l",
>>>>     SL"-as", SL"-jh", SL"-hj", SL"----", SL"122", SL"a", SL"abc", SL"-a",
>>>>     SL"--abc", SL"123", SL"sdf", SL"sdf", SL"l", SL"-as", SL"-jh", SL"-hj",
>>>>     SL"----", SL"122", SL"a", SL"abc", SL"-a", SL"--abc", SL"123", SL"sdf",
>>>>     SL"sdf", SL"l", SL"-as", SL"-jh", SL"-hj", SL"----", SL"122"
>>>> };
>>>>
>>>> And you want to replace SL" with SL( ". But you want to replace it in whole project. Than you are doing:
>>>>
>>>> Ctrl+F -> Advanced -> Search for SL" -> Search & Replace -> Replace with: SL( " -> Replace.
>>>>
>>>> And you will get something similar to:
>>>>
>>>>
>>>> #define SL
>>>>
>>>> const char * t[ 13 * 3 ] = {
>>>>     SL"a", SL"abc", SL( "-a", SL( "--abc", SL"123", SL"sdf", SL"sdf", SL"l",
>>>>     SL( "-as", SL( "-jh", SL( "-hj", SL( "----", SL"122", SL"a", SL"abc", SL( "-a",
>>>>     SL( "--abc", SL"123", SL"sdf", SL"sdf", SL"l", SL( "-as", SL( "-jh", SL( "-hj",
>>>>     SL( "----", SL"122", SL"a", SL"abc", SL( "-a", SL( "--abc", SL"123", SL"sdf",
>>>>     SL"sdf", SL"l", SL( "-as", SL( "-jh", SL( "-hj", SL( "----", SL"122"
>>>> };
>>>>
>>>>
>>>> Not all SL" were changed...
>>>>
>>>> Is it a known bug? Thank you.
>>> It seems to work here (Qt Creator 4.2.2, macOS, though I wouldn’t know why it should make a difference..).
>>> In the search result overview, before you press “replace”, are all occurrences found, and selected?
>>> If the issue persists, please create a minimal example and a bugreport on https://bugreports.qt.io .
>> Did you try to replace in whole project using Advanced search and replace? Usual Replace in one file works, doesn't work replace with Advanced options...
> Yes, that’s what I did.
>


---
This email has been checked for viruses by AVG.
http://www.avg.com




More information about the Qt-creator mailing list