Recent

Author Topic: FPLite?  (Read 1258 times)

FlierMate

  • Jr. Member
  • **
  • Posts: 62
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 »
FPC 3.2.0 on i386-Win32.

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 9085
  • 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

  • Jr. Member
  • **
  • Posts: 62
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 »
FPC 3.2.0 on i386-Win32.

Roland57

  • Full Member
  • ***
  • Posts: 121
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).


FlierMate

  • Jr. Member
  • **
  • Posts: 62
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

FPC 3.2.0 on i386-Win32.

FlierMate

  • Jr. Member
  • **
  • Posts: 62
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 »
FPC 3.2.0 on i386-Win32.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8307
  • 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: 2751
  • 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: 1209
    • 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: 8307
  • 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

  • Jr. Member
  • **
  • Posts: 62
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.
FPC 3.2.0 on i386-Win32.

Alextp

  • Hero Member
  • *****
  • Posts: 1209
    • 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: 2751
  • 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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 9085
  • 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