Recent

Author Topic: Light weighted IDE for Freepascal  (Read 2304 times)

PeterHu

  • New Member
  • *
  • Posts: 20
Light weighted IDE for Freepascal
« on: August 05, 2024, 06:21:36 am »
Except Lazarus and fp.exe,is there any additional free light weighted ide (here for Winodws to specify)which can compile/run a single .pas file,not neccessary to create project?

Thanks in advance.

TRon

  • Hero Member
  • *****
  • Posts: 3254
Re: Light weighted IDE for Freepascal
« Reply #1 on: August 05, 2024, 06:45:52 am »
In principle any modern (code) editor that supports (object pascal) syntax highlighting and is able to customize a tools menu (so that you can add a menu-entry.shortcut to invoke the command line compiler).

Also have a look here and here. Some are alternative editors, some are plugins for other big IDE's/editors so you have to go over them and see for yourself if they meet your criteria.

On windows I was always fond of programmers notepad but I have no idea if that is able to run on modern windows.
All software is open source (as long as you can read assembler)

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11769
  • FPC developer.
Re: Light weighted IDE for Freepascal
« Reply #2 on: August 05, 2024, 01:07:50 pm »
Except Lazarus and fp.exe,is there any additional free light weighted ide (here for Winodws to specify)which can compile/run a single .pas file,not neccessary to create project?

Not something I would recommend. Most are either plugins for heavier IDEs (like VS Code), or old and under maintained. (e.g. dev-pascal, which was not that bad in 2005, still comes with a pre 2.0 FPC)

Added later: or glorified editors with IDE aspirations.
« Last Edit: August 13, 2024, 10:18:16 am by marcov »

PeterHu

  • New Member
  • *
  • Posts: 20
Re: Light weighted IDE for Freepascal
« Reply #3 on: August 05, 2024, 01:26:20 pm »
Just found in Lazarus,new project->A Simple Program creates actually just one single file with an file extension lpr which actually is just a source file.I can live with at this beginning period,except I can't just open an exsiting source file(say a demo from the internet) after Lazarus's opened.

Another thing is that due to an issue in my fresh installation of the most recent Lazarus,I can't install any package,so I can't use the dock window.When I type some code from the demo which is in an Edge window,Lazarus various windows just shadow the entire screen(This is why I came up an idea to find a light weighted IDE).
« Last Edit: August 05, 2024, 01:28:03 pm by PeterHu »

Thaddy

  • Hero Member
  • *****
  • Posts: 15663
  • Censorship about opinions does not belong here.
Re: Light weighted IDE for Freepascal
« Reply #4 on: August 05, 2024, 01:26:37 pm »
Geany is lightweight and very well configurable for Freepascal.
It is actually my main FPC editor, unless I need to design a user interface.
It is also very well maintained and cross-platform.
And it does not need any silly per project configuration files for non-gui work.
If I smell bad code it usually is bad code and that includes my own code.

cdbc

  • Hero Member
  • *****
  • Posts: 1518
    • http://www.cdbc.dk
Re: Light weighted IDE for Freepascal
« Reply #5 on: August 05, 2024, 01:40:00 pm »
Hi
For light to medium CLI work I use "Kate" with kate's terminal open at the bottom, to run fpc --- neat... :D
Regards benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

Thaddy

  • Hero Member
  • *****
  • Posts: 15663
  • Censorship about opinions does not belong here.
Re: Light weighted IDE for Freepascal
« Reply #6 on: August 05, 2024, 02:09:05 pm »
Does kate come with default compile options? I do not see that?
Geany comes with the compile option for Freepascal by default.
If I smell bad code it usually is bad code and that includes my own code.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11769
  • FPC developer.
Re: Light weighted IDE for Freepascal
« Reply #7 on: August 05, 2024, 02:10:04 pm »
Just found in Lazarus,new project->A Simple Program creates actually just one single file with an file extension lpr which actually is just a source file.I can live with at this beginning period,except I can't just open an exsiting source file(say a demo from the internet) after Lazarus's opened.

If it is a single piece of source, open it via project-> "open project", and the same wizard that allows you to select "simple program" will open.
« Last Edit: August 05, 2024, 02:45:31 pm by marcov »

cdbc

  • Hero Member
  • *****
  • Posts: 1518
    • http://www.cdbc.dk
Re: Light weighted IDE for Freepascal
« Reply #8 on: August 05, 2024, 02:29:47 pm »
Hahaha Thaddy
Good eye on you, sadly no, 'kate' doesn't come with such fine stuff  :(
...but I'm a viking, so I just tough it out  :D
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

PeterHu

  • New Member
  • *
  • Posts: 20
Re: Light weighted IDE for Freepascal
« Reply #9 on: August 05, 2024, 04:15:24 pm »
Thank you all !

I tried geany,and am trying...

I tried notepad++,it works for a very simple source just with unit sysutils,generics.collections.But if I tried to use lconvEncoding,the compiler just complaints:

Code: Pascal  [Select][+][-]
  1. Free Pascal Compiler version 3.2.2 [2024/05/25] for x86_64
  2. Copyright (c) 1993-2021 by Florian Klaempfl and others
  3. Target OS: Win64 for x64
  4. Compiling project1.lpr
  5. project1.lpr(6,36) Fatal: Can't find unit lconvencoding used by project1
  6. Fatal: Compilation aborted
  7. Error: E:\lazarus\fpc\3.2.2\bin\x86_64-win64\ppcx64.exe returned an error exitcode
  8.  
  9.  
In Lazarus ,I just did one more thing: project inspector -> Required Package, searched and added LCL.Everything goes fine.

So my question is:What is this exactly supposed to mean:A unit file/path,a lib file/path or something else should be provided in the related textbox under Project Options->Compiler Options->Paths?

Code: Pascal  [Select][+][-]
  1. project1.lpr(6,36) Fatal: Can't find unit lconvencoding used by project1
  2.  


This will help me to understand more about Lazarus.
And as a reference,I will be trying to append somthing neccessory to " fpc source.pas "command in NotePad++    NppExec->Excute NppExec Script.

Appreciated.
« Last Edit: August 05, 2024, 04:18:14 pm by PeterHu »

Seenkao

  • Hero Member
  • *****
  • Posts: 593
    • New ZenGL.
Re: Light weighted IDE for Freepascal
« Reply #10 on: August 05, 2024, 05:06:01 pm »
Может вам ни чего не надо искать? Посмотрите Anchor Docking, может это решение для вас?


Google translate:
Maybe you don't need to search for anything? Check out Anchor Docking, maybe this is the solution for you?
Rus: Стремлюсь к созданию минимальных и достаточно быстрых приложений.

Eng: I strive to create applications that are minimal and reasonably fast.
Working on ZenGL

Nicole

  • Hero Member
  • *****
  • Posts: 1009
Re: Light weighted IDE for Freepascal
« Reply #11 on: August 05, 2024, 06:41:03 pm »
me too
notepad ++

I use this notepad++ all the time for so many things. Starting from html, to PHP to inspect an unknown file...
It is that fast, that you even can use it as post-it.

AlexTP

  • Hero Member
  • *****
  • Posts: 2464
    • UVviewsoft
Re: Light weighted IDE for Freepascal
« Reply #12 on: August 05, 2024, 08:20:52 pm »
Notepad++ and Geany are weaker than CudaText.
So try CudaText, is has for FPC:

1. plugin Runner (install it via "Plugins / Addons manager / Install")
2. build-system (for Runner) for FreePascal, again in "Addons manager", called "build-system: FreePascal"
3. lexer "Pascal" in the "Addons Manager" again

You can a adjust the build-system for FPC using the file in the "data/buildsystems" folder, ie change command-line params.
How do I use it?
I assigned F9 to the Runner's command to call its tool (press F9 in the command-palette dialog.)
Then I load Pascal file and press F9 - Runner is called, it puts its log to the bottom panel in CudaText. In the log: errors or OK result.

PeterHu

  • New Member
  • *
  • Posts: 20
Re: Light weighted IDE for Freepascal
« Reply #13 on: August 06, 2024, 01:37:49 am »
Notepad++ and Geany are weaker than CudaText.
So try CudaText, is has for FPC:

1. plugin Runner (install it via "Plugins / Addons manager / Install")
2. build-system (for Runner) for FreePascal, again in "Addons manager", called "build-system: FreePascal"
3. lexer "Pascal" in the "Addons Manager" again

You can a adjust the build-system for FPC using the file in the "data/buildsystems" folder, ie change command-line params.
How do I use it?
I assigned F9 to the Runner's command to call its tool (press F9 in the command-palette dialog.)
Then I load Pascal file and press F9 - Runner is called, it puts its log to the bottom panel in CudaText. In the log: errors or OK result.
When I tried to download and install Runner,got a dialog with faied downloading information as below.Was I missing something? Tested the internet and github connection is OK.
Code: Text  [Select][+][-]
  1.  
  2. ...://raw.githubusercontent.com/Alexey-T/CudaText...
  3. HTTPSConnectionPool(host='raw.githubuserconten...
  4. port=443):Max retries exceed with url:
  5. /Alexey-T/CudaText-registry/master/json/plugins.js...
  6. (Caused by
  7. NameResolutionError("<urllib3.connection.HTTPSC..
  8. object at 0x0cB34D30>:Failed to resolve
  9. 'raw.githubusercontent.com'([Errno 11004]
  10. getaddrinfo failed)"))
  11.  
  12. Retry?
  13.  
  14.  

AlexTP

  • Hero Member
  • *****
  • Posts: 2464
    • UVviewsoft
Re: Light weighted IDE for Freepascal
« Reply #14 on: August 06, 2024, 06:08:56 am »
Seems some problems with github:
>>>Failed to resolve 'raw.githubusercontent.com'

Please download Runner (and lexer, and build-system) by hands from:
https://sourceforge.net/projects/cudatext/files/addons/
then open all new 3 .zip files from CudaText via 'File / Open'. It will install zip files.
Then restart Cud.
« Last Edit: August 06, 2024, 06:34:45 am by AlexTP »

 

TinyPortal © 2005-2018