Discussion:
[Geany-Users] Geany portable and new filetype
Wolfgang Werners-Lucchini
2013-09-30 17:02:19 UTC
Permalink
Hallo,

I would like to configure geany portable (PortableApps) to work with
different Assemblers (x86, avr and two different 6502
crossassemblers).
I wanted to create a first filetype '*.s'.
One of the problems I have is that there are 6 locations for the file
'filetype_extensions.conf':

GeanyPortable\App\DefaultData\Settings\filedefs
GeanyPortable\App\DefaultData\Settings\tags
GeanyPortable\App\Geany\data
GeanyPortable\Data\Data\Settings
GeanyPortable\Data\Data\Settings\filedefs
GeanyPortable\Data\Data\Settings\tags

I don't know what they are for.

I have edited the 4. and 5. of them and included a line: S=*.s;

I also have created a file

GeanyPortable\Data\settings\filedefs\filetypes.s

and copyed this to

GeanyPortable\Data\settings\filedefs\filetypes.s.conf

but neither the syntax highlighter nor the build command is
recogniced.

If I try to use the menu to configure the build commands, these
commands get saved in the file

GeanyPortable\Data\settings\filedefs\filetypes.common
not in
filetypes.s.conf

I have tried these try and error game for two hours now. Can anybody
please explain what the six directorys are for and what exactly is to
do to configure geany for a new extension.

Wolfgang
Matthew Brush
2013-09-30 18:59:41 UTC
Permalink
Post by Wolfgang Werners-Lucchini
Hallo,
I would like to configure geany portable (PortableApps) to work with
different Assemblers (x86, avr and two different 6502
crossassemblers).
I wanted to create a first filetype '*.s'.
One of the problems I have is that there are 6 locations for the file
GeanyPortable\App\DefaultData\Settings\filedefs
GeanyPortable\App\DefaultData\Settings\tags
GeanyPortable\App\Geany\data
GeanyPortable\Data\Data\Settings
GeanyPortable\Data\Data\Settings\filedefs
GeanyPortable\Data\Data\Settings\tags
I don't know what they are for.
They aren't part of Geany either, but presumably it's one of the
`filedefs` directories since that's what you're asking about.
Post by Wolfgang Werners-Lucchini
I have edited the 4. and 5. of them and included a line: S=*.s;
I also have created a file
GeanyPortable\Data\settings\filedefs\filetypes.s
and copyed this to
GeanyPortable\Data\settings\filedefs\filetypes.s.conf
You definitively don't need both. You want a file called
`filetypes.S.conf` (notice upper case S - it's important). You need to
put that into whatever directory the portable version finds filedefs from.
Post by Wolfgang Werners-Lucchini
but neither the syntax highlighter nor the build command is
recogniced.
If I try to use the menu to configure the build commands, these
commands get saved in the file
GeanyPortable\Data\settings\filedefs\filetypes.common
not in
filetypes.s.conf
I have tried these try and error game for two hours now. Can anybody
please explain what the six directorys are for and what exactly is to
do to configure geany for a new extension.
It would easier to troubleshoot if you attached/pastebinned the actual
file you're trying which is giving problems.

Cheers,
Matthew Brush
Wolfgang Werners-Lucchini
2013-10-01 15:59:58 UTC
Permalink
Hallo Matthew,
Post by Matthew Brush
Post by Wolfgang Werners-Lucchini
GeanyPortable\App\DefaultData\Settings\filedefs
GeanyPortable\App\DefaultData\Settings\tags
GeanyPortable\App\Geany\data
GeanyPortable\Data\Data\Settings
GeanyPortable\Data\Data\Settings\filedefs
GeanyPortable\Data\Data\Settings\tags
I don't know what they are for.
They aren't part of Geany either, but presumably it's one of the
`filedefs` directories since that's what you're asking about.
I guess one is the default and one is a user settings directory. But
why 6. What are the tags subdirs?
Post by Matthew Brush
Post by Wolfgang Werners-Lucchini
I have edited the 4. and 5. of them and included a line: S=*.s;
I also have created a file
GeanyPortable\Data\settings\filedefs\filetypes.s
and copyed this to
GeanyPortable\Data\settings\filedefs\filetypes.s.conf
You definitively don't need both. You want a file called
`filetypes.S.conf` (notice upper case S - it's important). You need to
put that into whatever directory the portable version finds filedefs
from.
In Windows the upper- and lower case names are identical!
Post by Matthew Brush
Post by Wolfgang Werners-Lucchini
but neither the syntax highlighter nor the build command is
recogniced.
If I try to use the menu to configure the build commands, these
commands get saved in the file
GeanyPortable\Data\settings\filedefs\filetypes.common
not in
filetypes.s.conf
I have tried these try and error game for two hours now. Can anybody
please explain what the six directorys are for and what exactly is
to do to configure geany for a new extension.
It would easier to troubleshoot if you attached/pastebinned the actual
file you're trying which is giving problems.
Ok, say a file 'test.s'
----------------------
LDA #0
RTS
----------------------

I have all 6 dirs populated with the same filetype.s.conf but it is
not found.

Wolfgang
Matthew Brush
2013-10-01 21:33:52 UTC
Permalink
Post by Wolfgang Werners-Lucchini
Hallo Matthew,
Post by Matthew Brush
Post by Wolfgang Werners-Lucchini
GeanyPortable\App\DefaultData\Settings\filedefs
GeanyPortable\App\DefaultData\Settings\tags
GeanyPortable\App\Geany\data
GeanyPortable\Data\Data\Settings
GeanyPortable\Data\Data\Settings\filedefs
GeanyPortable\Data\Data\Settings\tags
I don't know what they are for.
They aren't part of Geany either, but presumably it's one of the
`filedefs` directories since that's what you're asking about.
I guess one is the default and one is a user settings directory. But
why 6. What are the tags subdirs?
It's explained pretty well in the user manual, but `tags` subdirectory
is unsurprisingly for CTags files that Geany uses for symbols tree and
auto-completion.
Post by Wolfgang Werners-Lucchini
Post by Matthew Brush
Post by Wolfgang Werners-Lucchini
I have edited the 4. and 5. of them and included a line: S=*.s;
I also have created a file
GeanyPortable\Data\settings\filedefs\filetypes.s
and copyed this to
GeanyPortable\Data\settings\filedefs\filetypes.s.conf
You definitively don't need both. You want a file called
`filetypes.S.conf` (notice upper case S - it's important). You need to
put that into whatever directory the portable version finds filedefs
from.
In Windows the upper- and lower case names are identical!
Maybe to Windows, but I'm not sure if some program is listing the
directory and parsing the capital `S` out of the file name to match it
with the capital `S` inside filetype_extensions.conf.
Post by Wolfgang Werners-Lucchini
Post by Matthew Brush
Post by Wolfgang Werners-Lucchini
but neither the syntax highlighter nor the build command is
recogniced.
If I try to use the menu to configure the build commands, these
commands get saved in the file
GeanyPortable\Data\settings\filedefs\filetypes.common
not in
filetypes.s.conf
I have tried these try and error game for two hours now. Can anybody
please explain what the six directorys are for and what exactly is
to do to configure geany for a new extension.
It would easier to troubleshoot if you attached/pastebinned the actual
file you're trying which is giving problems.
Ok, say a file 'test.s'
----------------------
LDA #0
RTS
----------------------
I have all 6 dirs populated with the same filetype.s.conf but it is
not found.
Please pastebin the actual file you are trying, it's impossible to test
it otherwise. Without seeing the file to know if it's wrong or not, I
still suspect it's the lower-case `s` in the filename.

Cheers,
Matthew Brush

Loading...