Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QtCreator parse large source file



  • Hi all,

    I have source files generated by KDSoap tool from wsdl. Header is 10MB and cpp 25 MB when I open them in QtCreator it does not parse them (no colors, no tips) so I'm working blind. With any smaller files generated from wsdl the same method sources are parsed.
    Is there some settings in QtCreator to change this ? I mean force it to parse the files ?

    Best,
    Marek


  • Lifetime Qt Champion

    @Marek IIRC, there is a setting 'max. file size' in Tools > Options.

    Its rather a question if such big files can be parsed properly (memory/time). Why do you edit them anyway?

    Regards



  • @aha_1980 Its none of you business why @Marek needs files this size..... btw 10/25 mb is far from being big.....

    And hell no, setting which you describe is not for this. Its for completely different thing: it sets max size of file that Qt will write to; after save file reaches size specifed with this option, new save file is created and _1, _2 etc is added to file's name.


  • Lifetime Qt Champion

    @macfanpl you have already been warned in another thread: stay polite.

    People can make mistakes in their answer, that does not allow you to be agressive when pointing such a mistake.

    25 mega bytes for one source file is not common at all so it's a legitimate question.



  • @SGaist said in QtCreator parse large source file:

    @macfanpl you have already been warned in another thread: stay polite.

    People can make mistakes in their answer, that does not allow you to be agressive when pointing such a mistake.

    25 mega bytes for one source file is not common at all so it's a legitimate question.

    Asking what one need files for is ok for you? And how am I not polite? Im not. And what mistake are you talking about? The only one Iam ablwe to find in post #2 is being noisy. Thats, by convention, rude (or aggressive using your language).....

    Ive been warned? Yes, but what this fact has to do with this topic?


  • Lifetime Qt Champion

    Hi @Marek,

    IIRC, there is a setting 'max. file size' in Tools > Options.

    Its rather a question if such big files can be parsed properly (memory/time). Why do you edit them anyway?

    I just looked it up, it's Tools > Options > C++ > Code Model > "Do not index files greated than X MB".

    Still be warned that increasing this limit may lead to excessive memory and CPU consumption.

    Regards



  • Hi @aha_1980

    Thanks for this, now files are parsed and most important when I write code in some other class I have this context menu with class members and so on.
    I'm parsing these files because it is source generated from wsdl, so there are all methods to interact with remote SOAP objects.

    Best,
    Marek


Log in to reply