Forum > General

FPC IDE

(1/4) > >>

macrillo:
First of all, I get this forum is mostly about Lazarus but as it's linked as the only forum ( and best ) for questions about the fpc compiler and package overall, I wonder why there isnt't
a section dealing with the builtin IDE ?

I've been using fpc for almost 10 years ( whith the standard IDE as I come from BP ), using Delphi compatible switch and have been able to convert and compile all my code from the schoolage and developing new programs whit windows compatability using DirectX and so on
and I've grown custom to fpc. Fpc, the built in Borland like IDE i'm used to. From what I understand from Reading posts here, most of you don't use it anymore but using Lazarus instead.

I like the old IDE but I can't find much information here when it doesn't work.
For me it worked flawlessly up until v 2.6.0 , after that it would sporadicly hang and so on, wouldn't compile ( actually this was due to a compiler switch I didn't realized was needed from v 2.6.0 ) but even then the IDE wasn't stable. I kept using my last stable version 2.4.1.

Last week I did a complete cleanout of all existing versions of fpc and reistalled v3.0.0 to a different drive and set up a new environment ( whith paths and everything, Win 7 ) and tried
to compile something, it worked ( after ofcourse recompiling some units etc ... ). After playing around for an hour or so the IDE started to just hang when editing text, restarting trying again resulted in the same situation, compiling, get error, go to error, change ... Hang. Tried opening the file BEFORE compiling, OK, try to change, HANG. Got tired and let it be. Today I got a Little bit
closer to get it to compile as it didn't hang the ide as I was changing the code but that didn't last wery long, nw as soon as I open the ide and tries to open any file (.pas or .ini ) via the menues the IDE crasches with ' RTE 215 ' error code.

Is there anyone who knows why this is ? Or how I can get past this since I last week uninstalled and deleted all my old installations of fpc in hope that this would help ( I have a freind who downloaded fpc 3.0.0 for the first time and he doesn't run into theese problems.( same version of win 7)).

My own speculation is that since ver 2.6.0 fpc uses Registry values to store things like fpc.ini and other paths to important files, that isn't working. For example can't  I add helpfiles ... If I add the toc, some abritary helpfile and so on, it works in this session, choose save fpc.ini, Close fpc, reopen it, no helpfiles ??? what happened to the ini file ? seek up the ini file manually , edit it, no change. It seems fpc reads the ini file from different places depending on startups. And yes, I have triad as I stated above to manually load an ini file but the IDE won't let me, crashes.

All and any help is apressiated since I love pascal and fpc is the one i've found best suits my needs. I don't think this is a compiler issue at all but a IDE issue.

bee:

--- Quote from: macrillo on September 02, 2016, 10:24:22 pm ---Is there anyone who knows why this is?

--- End quote ---
Sorry, I can't help you on this. It's been a very looong time since the last time I seriously used the FPC's text-mode IDE. It's 2016 now… perhaps you should try to use modern IDE, you know, like Lazarus. The graphical modern IDE offers many more things and features that should be able help you code faster and better. Give it a try. :)

molly:

--- Quote from: macrillo on September 02, 2016, 10:24:22 pm ---macrillo wrote:
First of all, I get this forum is mostly about Lazarus but as it's linked as the only forum ( and best ) for questions about the fpc compiler and package overall, I wonder why there isnt't
a section dealing with the builtin IDE ?

--- End quote ---
Perhaps a closer look reveals (also) to you that there is indeed a special section dedicated to the text-mode ide. It can be found here

Common issues with textmode ide/windows
- spaces in paths/filenames
- anti-virus software
- damaged file-system

Although your description is appreciated, there is unfortunately no reproducable method listed in there (unless i have overlooked something). It is very hard to debug such issues when things are not 100% reproducable.


--- Quote ---.... choose save fpc.ini, Close fpc, reopen it, no helpfiles ??? what happened to the ini file ?

--- End quote ---
There is no fpc.ini. fp-ide uses fp.ini.

The configuration file location of fp-ide is configurable (or at least used to be) but, i also have issues with it in that it keeps defaulting back to C:\Document and Settings\user name\Application Data\fp\fp.ini and it is something which i personally find highly annoying. Make one mistake and your fp-ide desktop settings also end up there, and unfortunately seem to override other configuration files (in case you have any). It is a nightmare when having multiple installations of Free Pascal  :'(

So, i would advise to start there and see if that is the case for you as well (and that you are perhaps trying to adjust the 'wrong' configuration file(s)).



--- Quote from: bee on September 03, 2016, 04:41:02 am ---...like Lazarus. The graphical modern IDE offers many more things and features that should be able help you code faster and better

--- End quote ---
Although i agree that using a modern IDE, based on available desktop GUI's could make life much easier for some, this does not always have to be the case everyone.

There is nothing simpler, quicker and easier then having a linux prompt and be able to type fp in order to start coding. In fact, when starting on a new platform it is the first things i attempt to do (after compiling from prompt).

Handoko:

--- Quote from: macrillo on September 02, 2016, 10:24:22 pm ---For me it worked flawlessly up until v 2.6.0 , after that it would sporadicly hang and so on, wouldn't compile ( actually this was due to a compiler switch I didn't realized was needed from v 2.6.0 ) but even then the IDE wasn't stable. I kept using my last stable version 2.4.1.

--- End quote ---

That's strange. Stability issue is a serious bug that should have been reported. You may help to report it and it may be fixed in the next releases. More info about reporting bug can be found here:
http://wiki.freepascal.org/How_do_I_create_a_bug_report

As I do not use FPC directly, nothing much I can say. Have to try to make sure your computer is virus-free? It could be the thing that causes hangs on your computer. There are 2 free antivirus that I recommend to my friends:
https://www.malwarebytes.com/
https://www.avast.com/free-antivirus-download

As suggested by bee, you really should give Lazarus at least a try. You may feel not comfortable at the beginning, but usually you will be more productive after you're familiar with Lazarus, especially when designing and building GUI programs. For me, the visual form design and the tools on the IDE make me easier to build Android apps.

Thaddy:
I don't think it is an IDE issue, because then it would be reported on the bug tracker.
Note that the FPC ide has a built-in compiler, so it may be a compiler issue.
The error shown is an arithmatic overflow error, which seems to indicate to me that it IS a compiler issue or simply bad sourcecode.
Since 2.4.1 there have been many language changes, including breaking language changes (not many, but still)

The configuration issues are a different story. I suspect that there are left-overs from previous install(s).
Again, although there are open issues for the FPC ide on the bug tracker, none of them seem related to your problems.
But if it is reproducable, please record the steps to reproduce and file a bug report against the Textmode IDE on the bug-tracker.

Very important: Note that if you use the 2.4.1 ide or the 2.6.0 ide you are also using the 2.4.1 resp. 2.6.0 COMPILER, i.e. an old compiler and not the compiler shown on the screenshot, because that is the fpc 3.0 ide which is linked to the 3.0 compiler. Again, the compilers are built into the textmode ide, the ide does nott use an external compiler.

Note you seem to mix and match textmode ide's That is a VERY bad idea since the formats of their resp. fp.cfg are definitely NOT compatible because of new  features. You have to be VERY careful with multiple installations. If you open an fp.cfg from anewer version in an older one or the other way around it WILL get damaged. That's probably the case with the help files.

Navigation

[0] Message Index

[#] Next page

Go to full version