Author Topic: My ide will get stuck when opening large source files. What's the reason! Howeve  (Read 557 times)

Offline luoyujian

  • Single posting newcomer
  • *
  • Posts: 4
My ide will get stuck when opening large source files. What's the reason! However, using the text editor provided by Linux will not be blocked

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12737
    • Travis build status
Because there are bugs.
What version are you using?
If you're using 17.12 or 20.03 the performance in particular cases is much improved.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline luoyujian

  • Single posting newcomer
  • *
  • Posts: 4
Because there are bugs.
What version are you using?
If you're using 17.12 or 20.03 the performance in particular cases is much improved.

My software version used to be 16.01. Later, it was upgraded to 20.03, which has always been a problem

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12737
    • Travis build status
If you're using 20.03 and still have the problem you'll have to provide a project file.
You don't have to give me the sources, just the project file might be enough.
If it something not for the public you can send it in a PM.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline luoyujian

  • Single posting newcomer
  • *
  • Posts: 4
You give me your email address and I'll send you the *. C file. This document is not particularly important, but I hope you can keep it confidential for me. thank you!

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2771
Are you using openSUSE?
What are the line endings of the file?
What are the line endings settings in codeblocks?

See this error report:
http://forums.codeblocks.org/index.php/topic,24004.msg163763.html#msg163763
could it be the same problem?

Offline luoyujian

  • Single posting newcomer
  • *
  • Posts: 4
The operating system is Ubuntu.
The source file is standard C language. It's just that the file is huge, 190, 000 lines.


Here is the end of the file
Code: [Select]

SOAP_FMAC3 char ** SOAP_FMAC4 soap_get_string(struct soap *soap, char **p, const char *tag, const char *type)
{
if ((p = soap_in_string(soap, tag, p, type)))
if (soap_getindependent(soap))
return NULL;
return p;
}


#ifdef __cplusplus
}
#endif


#if defined(__BORLANDC__)
#pragma option pop
#pragma option pop
#endif


/* End of soapC.c */

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2771
Quote
Here is the end of the file
Not the "end of the file"
but the type of line ending you are using. https://en.wikipedia.org/wiki/Newline

to get the line ending in a command line type
Code: [Select]
file THEPROBLEMTICFILE.Creplace THEPROBLEMTICFILE.C with the path to your file and post the output here

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12737
    • Travis build status
@BlueHazzard: I doubt this is the problem.
@luoyujian:
What happens if you disable the CodeCompletion plugin?
If there are many many top level functions in the file, I think I know what the problem is.
I guess I've misread the topic, I thought that you have a big project file.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]