News:

;) This forum is the property of Proton software developers

Main Menu

Compiler freezes sometimes

Started by charliecoutas, Nov 05, 2025, 08:31 PM

Previous topic - Next topic

charliecoutas

Les, does the semicolon character have any significance in Positron?

I have a source which, for no apparent reason, freezes for about 34 seconds during Compile. "PreProcessing File", at 10%, then after 34 secs it completes compilation but there are no results; no ASM or anything.

I always use a semicolon for a comment (I know about quote) because I have done so for the last 50 years! If I replace the semicolons with quotes it doesn't happen!   Vsn 4.0.6.2

No urgency.

Best
Charlie

top204

There may be something in your code that the preprocessor does not like, so it will be going through lots of iterations to find out what to do with something it has found, so it will look like a freeze.

A semicolon is recognised by the preprocessor as a comment, along with the quote, so that should not be it.

In your code listing, look for a preprocessor meta-macro ($define), using another meta-macro that is changing the original one, because this will give problems with all pre-processors. I've made that type of mistake a few times, and the preprocessor has locked me out for a while, until it times out.

Regards
Les

charliecoutas

Thanks Les. I don't use any pre-processor stuff. The fault comes and goes, I can compile the source, no trouble. Then the next compile (no changes made) hangs. My previous laptop did this also. Very odd but I can live with it.

Best
Charlie

John Lawton

You may have some odd characters in your file that are tripping up the compiler/parser. Try cleaning up the file or try an earlier version if you have one to see if the problem goes away.

John

top204

Check your anti-virus, 'virus', that you have on your machine.

Anti-virus programs are, usually, actually worse than a virus or trojan, and they block programs all the time and scan them, and sometimes destroy them, or make a program crash with lagging. So when a program is compiled, it is usually different to the last time, and the anti-virus will trap the files and scan them, and send details of the files to a third party!!!

I had this happen all of the time, and it got so annoying, I now compile on a virtual machine that has nothing on it, so it is fast. Then I check files on another virtual machine with two virus checkers that can do no annoying on my main machine.

Regards
Les

charliecoutas

Thanks Les, John.  I only have the Win10 virus checker but this has been happening for years, on and off. I'll check but nearly all my sources have done it at some time or other. No worries.

If I alter the text, add a couple of blank lines, the problem goes away for quite a while.

Charlie

flosigud

I had a problem like this until I stopped using Avast and switched to Windows Defender. It works flawlessly and is silent.

charliecoutas


Fanie

Since yesterday I got this message when I try to run Positron Studio, attached. Before this it worked fine.
I re-installed but the problem persist.

I'm using the previous IDE currently.

charliecoutas

At the end of the freeze, I think there is a message which follows "PreProcessing File". But it is only displayed for a few milliseconds. I have tried slo-mowing it with my phone but without success. I have checked my source file and there is nothing odd (apart from my coding).

Charlie