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

Offline luoyujian

  • Single posting newcomer
  • *
  • Posts: 7
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: 13413
    • 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: 7
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: 13413
    • 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: 7
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: 3353
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: 7
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

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: 3353
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
file THEPROBLEMTICFILE.C
replace THEPROBLEMTICFILE.C with the path to your file and post the output here

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • 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!]

Offline luoyujian

  • Single posting newcomer
  • *
  • Posts: 7
@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.
I'm sorry, I was busy with other projects during this period and ignored this problem. Thank you for your answer!

I may not have expressed the question clearly. I have a 8M large c program source file, open with IDE, it will be stuck. Disable the codecompletion will not solve the problem

  报错 笔记双语对照

Offline luoyujian

  • Single posting newcomer
  • *
  • Posts: 7
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
file THEPROBLEMTICFILE.C
replace THEPROBLEMTICFILE.C with the path to your file and post the output here
I'm sorry, I was busy with other projects during this period and ignored this problem. Thank you for your answer!

I may not have expressed the question clearly. I have a 8m large c program source file, open with IDE, it will be stuck. Disable the codecompletion will not solve the problem

  报错 笔记双语对照

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
And the file command gave what output!

Edit2: I type "file notes.txt" without the double quotes on the command line and the result looked like the below.
Code
$ file notes.txt
notes.txt: ASCII text, with CRLF line terminators

If I recall correctly the file command does not report on normal LF line terminators.

Tim S.

Edit1:
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
file THEPROBLEMTICFILE.C
replace THEPROBLEMTICFILE.C with the path to your file and post the output here

Tim S.
« Last Edit: September 12, 2020, 06:35:02 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
We need a way to reproduce the problem. You can PM me the file or a link to the 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!]

Offline luoyujian

  • Single posting newcomer
  • *
  • Posts: 7
We need a way to reproduce the problem. You can PM me the file or a link to the file.
Please visit the following link to extract the file.
https://pan.baidu.com/s/1aSi4_wG01SYq3rq_BnOCQQ
If a password is required, the file extraction password is: 1111

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
The link seems to have expired or at least I don't understand any of the text in the page.
(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!]