[Geany] compile, build, run for custom filetype

spir denis.spir at xxxxx
Mon Feb 6 10:21:54 UTC 2012


Hello,

Just reinstalled geany.
I managed to setup a filetype for Go files. All works fine, files of the 
types are recognised as such and editor features work as excepted; 
except for the build settings. They do not seem to be taken into account 
at all, and geany's interface desactivates corresponding buttons compile 
and build (run is active while looking as inactive, and indeed is useles 
if source aren't build ;-)
Here are my settings from custom filetypes.Go.conf:

[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
# (use only one of it at one time)
# Compiler: 8g -- Linker: 8l
# Compile flag 'e' --> no limit on number of errors
compiler=8g -e "%f"
linker=8l -o "%e" "%e".8
run_cmd=./"%e"

In the same way, build settings manually input from the interface via 
menu Build/Set build commands are not taken into account (this used to 
work in previous versions, but there were explicit compile and build 
lines if i remenber right).

Denis




More information about the Users mailing list