Recent

Author Topic: FPLite?  (Read 2768 times)

FlierMate

  • Guest
FPLite?
« on: January 23, 2021, 05:05:41 pm »
Introducing FPLite, a light-weight text editor for Free Pascal. (FPLite is a console app, runs in command prompt window)

Full source of FPLite is included. With Free Vision TUI Framework, this project is made possible.

Using Free Pascal Compiler, you can easily cross-compile FPLite to other OSes.

Cool?
« Last Edit: January 25, 2021, 01:08:47 am by FlierMate »

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: FPLite? (An alternative editor for Free Pascal)
« Reply #1 on: January 23, 2021, 05:40:45 pm »
fp.exe contains the compiler, so you have to factor in the main compiler size too (about 3MB)

FlierMate

  • Guest
Re: FPLite? (An alternative editor for Free Pascal)
« Reply #2 on: January 23, 2021, 07:09:43 pm »
@marcov, thanks for your clarification. This FPLite maybe just for someone like me who like to experience FV TUI framework....


« Last Edit: January 25, 2021, 01:09:38 am by FlierMate »

Roland57

  • Sr. Member
  • ****
  • Posts: 421
    • msegui.net
Re: FPLite? (An alternative editor for Free Pascal)
« Reply #3 on: January 23, 2021, 07:22:45 pm »
Compiled and tested successfully on Linux. Just had to do this modification:

Code: Pascal  [Select][+][-]
  1. PROCEDURE TTVDemo.Compile;
  2. {...}
  3.   RunCommand(
  4.   //'\FPC\3.2.0\bin\i386-Win32\FPC.EXE '
  5.   'fpc '
  6.   + FileName, S)

In case you don't know, someone has done a good Free Vision tutorial (here).

My projects are on Gitlab and on Codeberg.

FlierMate

  • Guest
Re: FPLite? (An alternative editor for Free Pascal)
« Reply #4 on: January 23, 2021, 07:48:49 pm »
Compiled and tested successfully on Linux. Just had to do this modification:

I am glad you helped me to test it on Linux too. Thanks!

In case you don't know, someone has done a good Free Vision tutorial (here).

Good one! I didn't even know TreeViewWindow (Outline unit) exists in FV (or TV).
I don't know German, but I cannot seem to find example in ListBox....? Hmmm....

I am impressed with his example in the following:
1. Able to change desktop background
2. Able to change language of menu and status bar


FlierMate

  • Guest
Re: FPLite? (An alternative editor for Free Pascal)
« Reply #5 on: January 24, 2021, 12:17:03 am »
I saw that RunCommand has been deprecated. So I have changed it to use TProcess.

Bug fix:
* Program won't crash if click Compile when there is no editor window, or there is untitled editor window.

Enhancement:
* Program will show output result message of FPC.exe right in the FPLite desktop itself.

There were major change to Compile procedure:

Please refer back to original post #1 for latest download and screenshot.
« Last Edit: January 25, 2021, 01:11:06 am by FlierMate »

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: FPLite? (An alternative editor for Free Pascal)
« Reply #6 on: January 25, 2021, 01:00:22 am »
fp.exe contains the compiler, so you have to factor in the main compiler size too (about 3MB)
Any reason why this hasn't been refactored out just like the debugger? I remember those hard days looking for a working libgdb.a hahaha.

PascalDragon

  • Hero Member
  • *****
  • Posts: 5446
  • Compiler Developer
Re: FPLite? (An alternative editor for Free Pascal)
« Reply #7 on: January 25, 2021, 09:16:23 am »
fp.exe contains the compiler, so you have to factor in the main compiler size too (about 3MB)
Any reason why this hasn't been refactored out just like the debugger? I remember those hard days looking for a working libgdb.a hahaha.

Because there's no need to? The compiler units are simply referenced by the IDE during the build. It's not even remotely comparable to the problems with libgdb.a. Also it would be more work to convert the compiler into a library and that just for the IDE.

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
Re: FPLite?
« Reply #8 on: January 25, 2021, 10:41:24 am »
>Full source of FPLite is included. With Free Vision TUI Framework, this project is made possible.

Thanks.  Can you, please, open GitHub, create an account, then "Add a repository", and uploade the code? You don't need Git, just upload via www dialogs.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: FPLite? (An alternative editor for Free Pascal)
« Reply #9 on: January 25, 2021, 10:41:44 am »
Also it would be more work to convert the compiler into a library and that just for the IDE.
I'm more towards making the IDE communicate with the compiler as an external process, just like how it works in Lazarus.

FlierMate

  • Guest
Re: FPLite?
« Reply #10 on: January 25, 2021, 11:11:40 am »
>Full source of FPLite is included. With Free Vision TUI Framework, this project is made possible.

Thanks.  Can you, please, open GitHub, create an account, then "Add a repository", and uploade the code? You don't need Git, just upload via www dialogs.

Thank you for the suggestion, I have created a new GitHub account with FPLite repository.

https://github.com/FlierMate/FPLite

By using Free Vision library, what license should I choose for this repo? This is a simple project for the community.

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
Re: FPLite?
« Reply #11 on: January 25, 2021, 11:21:47 am »
MPL2 is a good license.
MIT too - "do what you want".

PascalDragon

  • Hero Member
  • *****
  • Posts: 5446
  • Compiler Developer
Re: FPLite? (An alternative editor for Free Pascal)
« Reply #12 on: January 25, 2021, 01:31:28 pm »
Also it would be more work to convert the compiler into a library and that just for the IDE.
I'm more towards making the IDE communicate with the compiler as an external process, just like how it works in Lazarus.
I'm not. The IDE is low maintenance as it is right now and this way it works on DOS as well.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: FPLite? (An alternative editor for Free Pascal)
« Reply #13 on: January 25, 2021, 03:48:38 pm »
Also it would be more work to convert the compiler into a library and that just for the IDE.
I'm more towards making the IDE communicate with the compiler as an external process, just like how it works in Lazarus.

Why?

 

TinyPortal © 2005-2018