roired / CudaText-Haiku

Haiku files for CudaText code/text editor
5 stars 0 forks source link

Can it be published to HaikuDepot somehow, pls? #1

Closed Alexey-T closed 2 years ago

Alexey-T commented 3 years ago

@roired

roired commented 3 years ago

Good day Alexey,

I presume it can be. I don't know how to do it yet, nor the requirements to do it, but I'll work on it as soon as the package works fine on Haiku.

I'll keep you posted.

Regards, RR

Begasus commented 2 years ago

@roired forked your repo here, trying to understand how CudaText installation works (for 32bit also) and whats really needed to get the full experience, could you guide me a bit here? For instance, why are the data and py directories needed in $settingsDir? Do they need to be writable, if not maybe they could go into $dataDir? pinging @Alexey-T also here :)

Alexey-T commented 2 years ago

why are the data and py directories needed in $settingsDir? Do they need to be writable, if not maybe they could go into $dataDir?

yes, Cud needs dirs 'py' and 'data' be copied to settings/ and be writable. dirs contain preinstalled files + user installed.

Begasus commented 2 years ago

Are the files in settings/py and settings/data bound to the architecture?

Begasus commented 2 years ago

https://github.com/Alexey-T/CudaText/blob/f9dec7022a259ca190fed08feb127b8d29b26894/app/proc_globdata.pas#L1108

This should be changed to libpython3.7m (libpython3.6 is deprecated at haikuports)

Haven't figured out how, but on 32bit the library is installed in /boot/system/lib/x86 instead of /boot/system/lib, not sure if both can be included?

Alexey-T commented 2 years ago

no, they are common, only *.pyc (python cache) and binaries (of Cuda) are bound.

Alexey-T commented 2 years ago

should be changed to libpython3.7m

done.

Alexey-T commented 2 years ago

Are these paths ok?

+    {$ifdef CPU64}
+    exit('/boot/system/develop/lib/libpython3.7m.so');
+    {$else}
+    exit('/boot/system/develop/lib/x86/libpython3.7m.so');
+    {$endif}
Alexey-T commented 2 years ago

It must be /boot/system/develop/lib or /boot/system/lib ?

Begasus commented 2 years ago

.My bad, indeed /boot/system/develop/lib ;)

Begasus commented 2 years ago

Are these paths ok?

Let me check ...

EDIT seems ok, no complaint from missing libpython, thanks!

Begasus commented 2 years ago

You are fast with updating the version @Alexey-T ;) started to work on a recipe this morning with version 1.152.0.7, renamed it to 1.152.0.8 and now I see it says 1.152.0.9 :P

Begasus commented 2 years ago

Where are the plugins installed? Just did some playing with "Multi Installer" and I saw that they were downloaded, but I can't seem to see where?

Begasus commented 2 years ago

Local package seems to be ok, unfortunately the app freezes sometimes and I need to kill it with ProcessControler, after that it won't launch until I reboot :(

Alexey-T commented 2 years ago

Plugins are installed to "py" folder - mixed with standard plugins

Alexey-T commented 2 years ago

Local package seems to be ok, unfortunately the app freezes sometimes and I need to kill it with ProcessControler, after that it won't launch until I reboot :(

Also we have a problem with tabs X pressing - so we need the debugger. But we don't have it :(

Begasus commented 2 years ago

@roired Pushed some changes to my github account in regards of a recipe, most is based on your work, just used the 32bit version there: https://github.com/Begasus/haikuports/commit/7537b1efa5aa4c7150d3ccc2e735ee41ba37cf5b

Begasus commented 2 years ago

Local package seems to be ok, unfortunately the app freezes sometimes and I need to kill it with ProcessControler, after that it won't launch until I reboot :(

Also we have a problem with tabs X pressing - so we need the debugger. But we don't have it :(

Seems to happen only when I scroll the "plugin" menu ...

Alexey-T commented 2 years ago

Seems to happen only when I scroll the "plugin" menu ...

how do you scroll it? I don't undestand. the Plugins top menu item?

Begasus commented 2 years ago

how do you scroll it? I don't undestand. the Plugins top menu item?

Maybe scrolling is the right word, hovering over in the Plugins top menu with the mouse ...

Alexey-T commented 2 years ago

so you are hovering over Plugins (or another) main menu items? my code don't work in this case- this is OS provided menu. top menu bar.

Begasus commented 2 years ago

Top menus are fine, it's only when I enter the Plugins "sub-menus" that it freezes (sometimes).

Begasus commented 2 years ago

Don't know what changes you made, but just build it again and no freezes any more :+1:

Alexey-T commented 2 years ago

I didn't change a thing. Menu is OS native control which is only filled by me

Begasus commented 2 years ago

On a side note, does this mean it's using it's internal debugger?

Lazarus-debug

Alexey-T commented 2 years ago

It's using gdb executable (by default)...

Begasus commented 2 years ago

As mentioned in the forum thread: https://discuss.haiku-os.org/t/lazarus-1-9-trunk-qt4-and-qt5-interface-screenshots/5767/286

We need some newer gdb ;)

Alexey-T commented 2 years ago

OK, will wait.

Begasus commented 2 years ago

I don't think it's strictly related to CudaText, rather an issue for Lazarus?

Alexey-T commented 2 years ago

GDB is needed for me, so I can debug why Cud gives an error on pressing X on ui-tab title.

Begasus commented 2 years ago

Can't help there, gdb is way off my limits :(

Alexey-T commented 2 years ago

Laz also has new experimental fpDebug debugger (internal for free pascal), maybe try to ask about it on Laz forum

Begasus commented 2 years ago

Pokes @roired We've been discussing this already, on the forum and here, CudaText can be ported (hence no debugger maybe), but have been waiting on your work to finish up on things, you had/got a 64bit version, I have/got a 32bit version, would be strange with all the help we got here to not release some Haiku package at one point ...