Recent

Author Topic: FPC Unit Editors  (Read 15186 times)

jjflash

  • Newbie
  • Posts: 2
FPC Unit Editors
« on: February 07, 2014, 06:01:31 pm »
Hi and hello to all,

in the first please excuse my very bad english because I'm a native german speaker. I'm very new here and I don't know if this is the right forum to post my question (but I've don't find another one).

My "project":

The target is to build a very small textmode Linux-USB-Bootstick / Live-CD! (the stick and Linux is working very well). This stick should be a very development environment for working with cross compiling to AVR-ATmega / ATtiny microcontrollers.

For that I have to work with AVR-GCC and I need a good textmode console editor for beginners.
I've thought I use Freevision to generate a "Beginners IDE for AVR users". Everything works well, my project can be compiled for PC under Windows, Linux (Slackware) and Raspberry PI.

Now my problem: In my IDE i use the Unit "editors". In the first I was very happy that this editor works on my every three targetplattforms. But now i must see, that the editor of this unit is extremly buggy (and the Unit editors taken from Turbo Pascal 6.0 should not work because the using of assembly code and heap-management in the unit buffers).

Than i've tried to use the editor from the source of FPC. I've not able to compile the source units of FPC for using for my own project and I'm not able to append the wceditor / weditor to my project. And I think this editor is to big for my project.

After searching the web for hours, i haven't found any unit with another unit editors. Has anyone a unit editors without the bugs by horizontal and vertical scrolling ? (Because I'm not able too, to find the bugs in the unit).

So, again, please excuse my very bad english, I can't write it better.

Nice greetings from germany

Ralph

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9792
  • Debugger - SynEdit - and more
    • wiki
Re: FPC Unit Editors
« Reply #1 on: February 07, 2014, 08:15:26 pm »
You are very welcome here. But if you prefer there is a German Lazarus board too.
http://www.lazarusforum.de/

I haven't used the textmode parts of fpc. So I cant tell you much about it.

You are using http://wiki.freepascal.org/Free_Vision that comes with fpc?

You are using this in your own code?
Or you use an existing IDE that is build on this? (You are aware that fpc comes with a textmode IDE (fp / fp.exe)?)

jjflash

  • Newbie
  • Posts: 2
Re: FPC Unit Editors
« Reply #2 on: February 07, 2014, 09:28:40 pm »
Yes, I'm using the freevision part that comes with the FPC (Version 2.6.2).

In the first I've written my own IDE (with the units that comes with FPC). In this IDE I inserted the unit editors (the same unit that is used by the demo called myapp.pas).

I detected, that scrolling in this unit is very buggy.

So I'm in search for another unit ! I had the idea to use the original unit used in fpide, but this one uses so much other units and I'm sadly not able to compile the unit because every time FPC asks for two not avaible units.

In the end I'm in search of a simply editor unit (perhaps with the same interface like in Turbo Pascal 6.0)

:-) thanks a lot for your nice welcome to me !

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9792
  • Debugger - SynEdit - and more
    • wiki
Re: FPC Unit Editors
« Reply #3 on: February 07, 2014, 10:18:12 pm »
Well, if you the bugs are reproducible, and you can demonstrate them in a small a test program (excluding any of your own app logic, so making sure, there is no interference), then you can report them on mantis. (bugtracker link in the menu on the left).
That does however not give you an immediate solution, since there is no say when they might get fixed.

I also strongly suggest to take a copy of the the topic to the fpc -pascal mail list. http://www.freepascal.org/maillist.var

This may increase your changes of finding an answer.
« Last Edit: February 07, 2014, 10:21:50 pm by Martin_fr »

finalpatch

  • New Member
  • *
  • Posts: 12
Re: FPC Unit Editors
« Reply #4 on: April 20, 2014, 02:40:13 am »
Hi jjflash,

Are you aware of SETEDIT and RHIDE?  Both are C++ programs based on a ported Turbo Vision (the C++ version).  SETEDIT is a programmer's text editor, RHIDE extends it and adds IDE features.  You might be able to use them directly as they already have very nice support for C/C++ syntax highlighting and GNU compilers.

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: FPC Unit Editors
« Reply #5 on: April 20, 2014, 09:02:19 pm »
Has anyone a unit editors without the bugs by horizontal and vertical scrolling ?
In Win64 using 32bit FP.EXE I could not find bugs using keyboard, but using mouse I can confirm strange scrolling problems.

Alternatively you might want to examine some (n)curses lib based solution:
https://www.google.rs/search?q=ncurses+text+editor&source=lnms&tbm=isch&sa=X&ei=NBdUU7vuBK6Q4ATn1IAY&ved=0CAgQ_AUoAQ&biw=1556&bih=905

Some Pascal libs:
http://www.cncware.com/fpc.html
http://www.freepascal.org/packages/ncurses.html
http://zooplah.farvista.net/en/programming/pascal/offerings.xhtml

Maybe using something like TinyCore Linux with fast boot can make you change from text mode to gui where you have more powerful and actively maintained components like SynEdit?
http://tinycorelinux.net/screenshots.html
http://wiki.freepascal.org/SynEdit
« Last Edit: April 20, 2014, 09:05:37 pm by avra »
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

CaptBill

  • Sr. Member
  • ****
  • Posts: 435
Re: FPC Unit Editors
« Reply #6 on: April 20, 2014, 11:26:40 pm »
Hi jjflash,

Are you aware of SETEDIT and RHIDE?  Both are C++ programs based on a ported Turbo Vision (the C++ version).  SETEDIT is a programmer's text editor, RHIDE extends it and adds IDE features.  You might be able to use them directly as they already have very nice support for C/C++ syntax highlighting and GNU compilers.

FP was built from RHIDE actually or was forked.
Check it out. It is still alive and well ,looks like, with Pascal support. No compiler action, it appears, but hopefully they have worked out your immediate issue with the mouse.

http://www.rhide.com/

Avra makes a good point though. Kinda hard to match the Lazarus editor.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: FPC Unit Editors
« Reply #7 on: April 21, 2014, 11:45:30 am »
Note that tearing in the editor screen under Linux are not issues in unit editors, but in the terminal code of Linux. This can be checked by simply testing on Windows.

For best results on *nix it is advised to use xterm. (or putty's xterm emulation).   

The turbo vision clone is mostly user driven, and Pierre works on it from time to time with few if none external contributors.

 

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: FPC Unit Editors
« Reply #8 on: May 05, 2014, 10:25:51 am »
Note that tearing in the editor screen under Linux are not issues in unit editors, but in the terminal code of Linux. This can be checked by simply testing on Windows.
I confirm strange scrolling problems with mouse running FP.EXE in WinXP. Just open big PAS file, grab scrolling box with mouse trying to put it all the way to the top or to the bottom and you will see erratic jumps bug when you are at one of the ends. I don't know if that is the bug OP talked about or the new one.
« Last Edit: May 05, 2014, 10:32:58 am by avra »
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

 

TinyPortal © 2005-2018