Finally I got some more time today to give to CudaText:
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:
And with a project folder opened and vertical splits:
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
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.
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:
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:
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.
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…
The image upload issue, I also experienced with Otter. So maybe it’s time to file the bug…
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.
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.
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.
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…
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.
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?