Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Contributions to C::B => Topic started by: luoyujian on July 15, 2020, 04:23:01 pm

Title: My ide will get stuck when opening large source files. What's the reason! Howeve
Post by: luoyujian on July 15, 2020, 04:23:01 pm
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
Title: Re: My ide will get stuck when opening large source files. What's the reason! Howeve
Post by: oBFusCATed on July 15, 2020, 08:29:33 pm
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.
Title: Re: My ide will get stuck when opening large source files. What's the reason! Howeve
Post by: luoyujian on July 15, 2020, 11:30:37 pm
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
Title: Re: My ide will get stuck when opening large source files. What's the reason! Howeve
Post by: oBFusCATed on July 16, 2020, 09:45:08 am
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.
Title: Re: My ide will get stuck when opening large source files. What's the reason! Howeve
Post by: luoyujian on July 16, 2020, 10:54:40 am
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!
Title: Re: My ide will get stuck when opening large source files. What's the reason! Howeve
Post by: BlueHazzard on July 16, 2020, 11:23:48 am
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?
Title: Re: My ide will get stuck when opening large source files. What's the reason! Howeve
Post by: luoyujian on July 16, 2020, 01:10:57 pm
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 */
Title: Re: My ide will get stuck when opening large source files. What's the reason! Howeve
Post by: BlueHazzard on July 16, 2020, 01:31:40 pm
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
Title: Re: My ide will get stuck when opening large source files. What's the reason! Howeve
Post by: oBFusCATed on July 16, 2020, 08:54:47 pm
@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.
Title: Re: My ide will get stuck when opening large source files. What's the reason! Howeve
Post by: luoyujian on September 12, 2020, 12:41:49 am
@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

  报错 笔记双语对照
Title: Re: My ide will get stuck when opening large source files. What's the reason! Howeve
Post by: luoyujian on September 12, 2020, 12:44:06 am
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

  报错 笔记双语对照
Title: Re: My ide will get stuck when opening large source files. What's the reason! Howeve
Post by: stahta01 on September 12, 2020, 06:21:30 am
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.
Title: Re: My ide will get stuck when opening large source files. What's the reason! Howeve
Post by: oBFusCATed on September 12, 2020, 01:56:15 pm
We need a way to reproduce the problem. You can PM me the file or a link to the file.
Title: Re: My ide will get stuck when opening large source files. What's the reason! Howeve
Post by: luoyujian on October 01, 2020, 10:07:17 pm
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
Title: Re: My ide will get stuck when opening large source files. What's the reason! Howeve
Post by: oBFusCATed on October 17, 2020, 11:39:45 am
The link seems to have expired or at least I don't understand any of the text in the page.