There are still some things that needs fixing. The current installer is built from git master and not from released packages so the translation stuff hat you usually get with the release packages are missing. So only partially translated. Another feature that I’m still missing is the spell-check. I need to still add a/hspell and language dictionaries to get that to work.

24 thoughts on “Kate on Windows”

Those icons are actually hard-coded in c++… and yes I think we should fix it by using icons from the theme 🙂

The icons are for : method, macro, struct, class and “class_int” whatever the last is 😉

Thanks for the offer!

BTW: Breeze icons git repository caused me some problems on windows as symbolic links don’t work properly there. I have had to create CMake code to duplicate some of the files. Any hints on how to work around that without manually adding copy commands?

It should be possible to install Kate on one computer and copy the install directory to another into a read-only folder, but Kate will try to write configuration data to the users configuration directory. I have not tried this setup tho.

DBus might be a bit more difficult. You have to start the daemon. and the installer takes care of starting the daemon with the correct parameter. You can always try 😉

Thank you so much for the windows build. I’ve tried many editors, but still kate turns out to be the most convenient one.

Although, the current build sometimes hangs (using 1 CPU core and slowly eating up memory) — I still did not find the exact root cause for a bug report. Luckilky, that happens not too often.

I found one strange issue, though. I use dokan-based sshfs on windows to edit remote files, and once I save a script file, its executable flag is cleared (I have to issue ‘chmod +x’ via ssh). Is there a way to stop kate from clearing the executable bit? I used notepad++ previously as an editor, and it somehow it just preserved that bit (the scripts remained executable, other files remained not executable).

Kate uses QSaveFile which saves to a new file and then replaces the original with the new one. Since rename usually is very close to atomic, the risk of loosing data in the file because of an interrupt while writing is almost 0.

I suspect the problem is that the new file is created with windows permissions that dos not have executable bit and then renamed on top without the bit. Notepad++ probably writes directly to the original file and thus keeps the flags.

Another question 🙂 I want to create a custom bash indentation script. Where to place it?

The official instructions are to place this script to “$XDG_DATA_HOME/katepart5/script/indentation/”. I tried all possible folders in “C:\Users\my_user\AppData\Local” where I found anything like ‘kate’ — but still there is no option ‘bash’ in the ‘Indentation’ menu. I directly defined XDG_DATA_HOME in the windows environment configuration dialog, but still no change.

Also I did not find a place where the default indentation scripts reside — I’m ok to place my script there, I’m a localhost admin.

Currently I’m trying to enable the dummy indentation script from the sample:

Hmm… I rebooted the windows, placed the script in “$XDG_DATA_HOME/katepart5/script/indentation/” and fixed it source. After that, I can enable my new shiny indentation mode. It just seems the article on docs.kde.org is a bit misleading. Here is the fixed working dummy source: