Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filetype file editing overrides filetype changes with new versions of Geany #1552

Closed
elextr opened this issue Jul 21, 2017 · 4 comments · Fixed by #2168

Comments

@elextr
Copy link
Member

commented Jul 21, 2017

When Tools->Configuration Files ... is used to edit a config file it is copied in its entirety to the buffer, so when it is saved it overrides all the settings in the system filetype file, not just the ones that the user changes. So system filetype files distributed with new versions of Geany will be ignored.

Suggest when the file is loaded into the buffer it be prefixed by # to make all contents comments, so the user only need uncomment those they edit and so only those entries will override new system files.

@eliardocosta

This comment has been minimized.

Copy link

commented Jul 24, 2017

@elextr I was trying to set Julia in Geany in Tools -> Configuration Files, I open and save filestypes.common for accident and now I can't open Geany. Just try reinstall but with no success. When I try open Geany in terminal I see this:

Geany:ERROR:highlighting.c:861:styleset_from_mapping: assertion failed: (ft_id != GEANY_FILETYPES_NONE)

Can someone help me fixing it? Thanks!

@elextr

This comment has been minimized.

Copy link
Member Author

commented Jul 24, 2017

The edited filetypes.common is saved in your user config directory and overrides the system file. Delete the one in the user config.

@eliardocosta

This comment has been minimized.

Copy link

commented Jul 25, 2017

Thank you for your reply! I deleted the file but the problem continues :/

@elextr

This comment has been minimized.

Copy link
Member Author

commented Jul 25, 2017

@eliardocosta then make a specific issue, stop hijacking this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.