Hi,
on my setup, filetype_extensions.conf seems not to get honored.
An example: editing
~/.config/geany/filetype_extensions.conf
to hold
C++=*.cpp;*.cxx;*.c++;*.cc;*.c;*.h;*.hpp;*.hxx;*.h++;*.hh;*.C;*.H;*.conf; Conf=*.ini;config;*rc;*.cfg;*.desktop;
, that is, moving the *.conf from Conf to C++, does not result in .conf files be treated as C++ files. This is only for illustration, my actual problem is that I want my .h files to be recognized as C++ rather than pure C, and then I discovered that nothing in filetype_extensions.conf seems to get read/honored.
Funnily enough, copying filetype_extensions.conf to the subdirectory ~/.config/geany/filedefs results in that file itself being now recognized as a C++ file. However, no other .conf files are, and it also does not work if I move a .h file in that folder with .h only declared as belonging to C++ (not C or Objective-C), for example.
Any ideas what else to try / how to debug? I've restarted geany.
Thanks! -Paul
geany --version
geany 1.22 (built on Jun 18 2012 with GTK 2.24.10, GLib 2.32.3)
uname -a
Linux host 3.4.7-1-ARCH #1 SMP PREEMPT Sun Jul 29 22:02:56 CEST 2012 x86_64 GNU/Linux
On 12-08-14 08:26 AM, daspostloch wrote:
Hi,
on my setup, filetype_extensions.conf seems not to get honored.
You could try deleting the [files] group from your ~/.config/geany.conf file. It caches filetypes in there for opened files and won't autodetect new one. I just tested and it worked fine for new files that weren't cached in geany.conf with their filetype information.
If it's not this, then I'm not sure what the problem would be.
Cheers, Matthew Brush
On 15 August 2012 01:26, daspostloch daspostloch@googlemail.com wrote:
Hi,
on my setup, filetype_extensions.conf seems not to get honored.
An example: editing
~/.config/geany/filetype_extensions.conf
to hold
C++=*.cpp;*.cxx;*.c++;*.cc;*.c;*.h;*.hpp;*.hxx;*.h++;*.hh;*.C;*.H;*.conf; Conf=*.ini;config;*rc;*.cfg;*.desktop;
, that is, moving the *.conf from Conf to C++, does not result in .conf files be treated as C++ files. This is only for illustration, my actual problem is that I want my .h files to be recognized as C++
Been using that for ages, works fine, Matthew is probably right clear the cache.
Cheers Lex
rather than pure C, and then I discovered that nothing in filetype_extensions.conf seems to get read/honored.
Funnily enough, copying filetype_extensions.conf to the subdirectory ~/.config/geany/filedefs results in that file itself being now recognized as a C++ file. However, no other .conf files are, and it also does not work if I move a .h file in that folder with .h only declared as belonging to C++ (not C or Objective-C), for example.
Any ideas what else to try / how to debug? I've restarted geany.
Thanks! -Paul
geany --version
geany 1.22 (built on Jun 18 2012 with GTK 2.24.10, GLib 2.32.3)
uname -a
Linux host 3.4.7-1-ARCH #1 SMP PREEMPT Sun Jul 29 22:02:56 CEST 2012 x86_64 GNU/Linux _______________________________________________ Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany