CudaText 64bit: Text/Code Editor: RC. Please report issues

Good day,

Finally I got some more time today to give to CudaText:
screenshot15

This is CudaText 1.133.5, stable version, compiled and built just now. It’s got some nice improvements regarding Haiku, check the CudaText tracker window, showing the settings in the proper place, not in some .config folder.

I’ll add the icon, which is already ready, and start with the packaging… @Begasus

And here, with the icon already set:
screenshot16

And with a project folder opened and vertical splits:
screenshot18

Regards,
RR

11 Likes

This is awesome, thank you!

@Coldfirex
No need to thank yet. Let’s better wait for the package and testing. Once it works properly I will appreciate it :wink:

Hi RR, I see that it also needs Lazarus and fpc? IIRC we don’t have them at haikuports?

Yes they are not in Haikuport.
There are readily available fpc and lazarus binaries for Haiku. They come in tar.gz files containing tar.gz files which should not be too hard to make a recipe of. Just need someone to take the task :wink:

Looking into fpc_bin 3.2.0 for x86_64 atm, saw they also provided a package there for Haiku 64 bit :slight_smile:

1 Like

Good day @Begasus,

IIRC I got them from the Hakilo repo. Not sure now because I have the CudaText testing on another Haikbox at work.

Besides, I have to report some issues to Lazarus/FreePascal (already talked about this with Alexey, CudaText’s developer) and should be doing it in the next days, though I rather make a test package before, and then iron out any issue that appears.

In order to get this to work I moved the Lazarus install to a different drive, with read/write permissions for Lazarus to recompile itself. I’m not certain that this is needed though. I just tried that as wasn’t getting any further with the default install. There are some quirks though that I have no clue about, related to how Lazarus works, so I’ll join the community and ask there.

There is also some fpcupdeluxe package that helps with the installation of FreePascal and Lazarus in a desired location though I never got it to work.

Anyway, little by little. Once we have a package ready, should be time for testing everything, plugins, behaviour, …

One thing is sure, it launches really fast. Less than 1 second, as shown in the pics.

Regards,
RR

2 Likes

Created a fpc_bin recipe and a fpc_source recipe, using export FPCDIR=/system/lib/fpc/3.2.0 seems to be ok, but when trying to build lazarus with fcpmake -Tall and make LCL_PLATFORM=qt5 I’m getting:

Free Pascal Compiler version 3.2.0 [2020/06/07] for x86_64
Copyright © 1993-2020 by Florian Klaempfl and others
Warning: (11053) The selected debug format is not supported on the current target, not changing the current setting
(1002) Target OS: Haiku for x86_64
(3104) Compiling codetools.pas
(1008) 33 lines compiled, 0.5 sec
(1021) 1 warning(s) issued
(1022) 2 hint(s) issued
/bin/cp -f Makefile.compiled units/x86_64-haiku/CodeTools.compiled
make[1]: Leaving directory ‘/boot/home/wip/lazarus/components/codetools’
make -C lcl LCL_PLATFORM=nogui
make[1]: Entering directory ‘/boot/home/wip/lazarus/lcl’
Makefile:214: *** The Makefile doesn’t support target x86_64-haiku, please run fpcmake first. Stop.
make[1]: Leaving directory ‘/boot/home/wip/lazarus/lcl’
Makefile:2029: recipe for target ‘lazbuild’ failed
make: *** [lazbuild] Error 2

Good day,

Working on the Package for CudaText 1.133.5:
screenshot3

Though still need to tweak the .PackageInfo with the requirements and all that stuff (still learning about it), and the folder structure inside the HPKG file. Nonetheless, it already installs:
screenshot2

There is already a pre-release available on Github (https://github.com/roired/CudaText-Haiku/releases). I just put it there to test it out, and to test how to release anything. By the way, couldn’t do that on Haiku, had to add the release on Win, WebPositive crashed always trying to upload the HPKG.

Some things don’t work yet with this package (still learning). As soon as I figure out how to solve it, and test it, will update the package there and let you know. This package won’t ask yet for the requirements, this is something I need to learn how to properly add to .PackageInfo.

Regards,
RR

2 Likes

Is that a known WebPositive bug?

Good day @Coldfirex,

To be honest, I haven’t used Github/GitLab/git so much, so I’m quite a newbie on these matters.
Regarding Github, I’ve experienced that I can’t upload images to Github. I tried a couple of times without success. I haven’t reported it yet, as I should be doing more testing on the Haikbox I use regularly. Trying to upload the HPKG to the “Releases” section of Github crashes WebPositive, but it’s more a quit than a crash, as no bug report dialog pops up when WebPositive quits. So I’m a bit puzzled regarding this.

These two issues might be related? The image upload and the HPKG upload? I have no clue… :roll_eyes:

The image upload issue, I also experienced with Otter. So maybe it’s time to file the bug…

Regards,
RR

For images you can use the add-on uploadIt to be found on HaikuDepot.
Right click you image and click the upload-it add on. It will create a url… which you can paste with alt+v in the text.

For text upload you can use pastebin.com upload your text there and copy the link in the browser after creating a new paste. No register needed.

To upload a HPKG no idea. Sorry

1 Like

Yes. Reported a long time ago and still not fixed.

Good day,

Finally, it seems to be ready. I figured out how to make it, though not sure if it’s the right way to do it.
I tested adding plugins and it seem to work.

Not sure yet about the ‘requirements’ thing, so someone who does not have Python 3.6m nor Qt5 installed should try it to see if installing the package calls for the dependencies.

Other than that, need to change font size and then fonts render properly.
screenshot4

screenshot1

The package is on Github available to download and test:

Let me know if you find any issues.

It hasn’t been easy. And this is the first attempt so, please do enlighten me on how to improve it for the next time.

Thanks,
Regards,
RR

2 Likes

Just to be clear, UploadIt transfers any kind of file to an online service, not just images. Currently that service is The Null Pointer, but these online services are wont to (temporarily) disappear over time. So the service and with it the terms of service may change.
For 0x0.st the max. size is currently 512 MiB and the rentention time depends on the filesize, i.e. smaller files are retained longer than large ones (30 days to 1 year).
It’s a nice, quick way to share some file, but may not be really suited for bug reports that are not actively worked on. If someone has a look in a year or two, your uploaded file will be gone…

Good day,

All right. So now I’m testing CudaText on Haiku and I did the following:

  • Set CudaText as default application to open plain Text Files
  • Double click on a text file
  • CudaText launches
  • The file is not opened

So, I presume I’ve missed something here in order to make CudaText open the file when it launches. Any help appreciated.

Thanks,
Regards,
RR

The package wouldn’t install for me on Haiku B2 x86_64. I suspect your file opening problem is a missing B_ARGV_ONLY flag in the rdef file.

Edit: I was trying to install it on a B2 x86_gcc2 VM by mistake

Good day @Lrrr ,

Thanks for the tip on the B_ARGV, I’ll check into that to see if that is the problem.

Regarding the install, I did the test now, inside a clean VM and it does install though it requires libQt5pas, so should add it to the requirements part of the PackageInfo.
CudaText

It looks like the installer calls for the needed stuff and even more (I presume due to Qt5 being required so pulls all its stuff).

I’ll fix the libQt5pas stuff and add the flag you pointed out, test it and release again. Nonetheless, libQt5pas.so seems to be unavailable in HaikuDepot, so I presume I could add it to the package while it gets added there?

Thanks!
Regards,
RR

CudaText

After installing libqt5pas HPKG, CudaText launches. So maybe just needs libQt5pas and not all Qt5.
And installing plugins also work.

libqt5pas has to be pulled from HAKILO repo as of now.

Regards,
RR

1 Like

Added libqt5pas to the package, and checked if on a Haiku (64b) clean install can be installed and launches. It does.

Package is available at :

Things that need to be fixed:

  • Even after adding the flag @Lrrr pointed to, does not open a text file when double clicking on it, though CudaText launches :grimacing:
  • CudaText still does not appear on “'Preferred Applications” in the Filetype preferences

Hopefully in the following days those issues would be fixed. Ahy help would be appreciated, sincerely. :innocent:

Thanks for your help.
Regards,
RR

1 Like