I have built geany from source and when I start it I get the following error box displayed: ``` Configuration directory could not be created (Permission denied). There could be some problems using Geany without a configuration directory. Start Geany anyway? ```
This is actually of no use in trying to fix the problem since it does not state what it can't create.
I don't want start picking my way through the source code to find out what it may or may not be trying to do. Some abstract comment about "Configuration directory" is pointless. Just state explicitly the full path name of the directory that it can not create and the user may have some chance of fixing the permissions problem.
BTW where is this "Configuration directory" ?
Permissions seem right for this user but since I don't know what it is trying to do I can hardly fix it.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/777
BTW where is this "Configuration directory" ?
Depends what system you are on, how you configured it and how you ran it. More information needed.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/777#issuecomment-159860696
Thanks, it's on x86_64 linux . I ran it from command line as normal user : ``` $ geany ```
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/777#issuecomment-159890208
On linux the default user configuration dir is `~/.config/geany`.
The message is [here](https://github.com/geany/geany/blob/master/src/libmain.c#L755) and yes including the value of `app->configdir` in it would be helpful.
Beware: this is a translatable string so you need to use positional parameters to specify the substitutions when using more than one, in case the translation to another language changes the order of them.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/777#issuecomment-159910245
Ah, ~/.config/geany is root:root for some reason.
Took about 5s once I knew what it was having trouble with. I'll have a look at putting a fix in next time I'm working on building geany. For now I need to run it to get something else done.
Thanks for the pointers on the code and the real location of config it was being coy about naming.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/777#issuecomment-159937109
Not to say that it shouldn't mention which directory in the error message, but the first hit when searching for "configuration directory" in [the user manual](http://www.geany.org/manual/current/index.html) tells the directory.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/777#issuecomment-159943385
Geany: a powerful, lightweight code editor for which the user needs an internet connection to access the HTML manual to understand what the error messages don't want to tell you . There is also an iPhone "app" that will help the user find out what error msgs in Geany mean LOL.
Yes, I could have found it. The point of opening an issue is that I shouldn't need to.
BTW I found another case of unhelpful errors this a.m.
I am migrating from one distro to another and changing hardware too. This is meaning some reorganisation and is producing some breakage as permissions and files are not the same as the previous system. This provides testing of some error messages that do not see so well tested.
I had a Geany project file that I opened from a different location it showed a warning that "one or more files " were not found. ( Or words to that effect ). I looked at status window and found three msgs relating to the three files it did manage to open and NO messages relating to any problems.
It appears that the status reporting has an optimistic bias. Only success is reported.
I closed and opened and got no errors, presumably it had dropped the filenames it did not access the first time. Now all is rosy.
My guess is that it is a couple of library files that I had open in the last session that have now moved.
An argument could be made for not reporting opening a file when there was not problem, Failing to show any information about the problem when there is a failure and simply flagging "one or more" unspecified problems is totally unhelpful.
There should be entries in the status window reporting each problem.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/777#issuecomment-160055548
Geany: a powerful, lightweight code editor for which the user needs an internet connection to access the HTML manual to understand what the error messages don't want to tell you .
I presume you are building from git since the HTML manual is included in the tarball.
With a git build the manual should build and install locally if you have the tools to build it, the web access is a fallback so it becomes rare for there to be *no* manual available.
There is also an iPhone "app" that will help the user find out what error msgs in Geany mean LOL.
Oh the fame :)
I had a Geany project file that I opened from a different location it showed a warning that "one or more files " were not found. ( Or words to that effect ). I looked at status window and found three msgs relating to the three files it did manage to open and NO messages relating to any problems.
It appears that the status reporting has an optimistic bias. Only success is reported.
Well the status message is probably part of the open functionality, so you got that for free no matter how the file was opened. Not showing failed session files I guess was a decision somebody made when they implemented projects.
I closed and opened and got no errors, presumably it had dropped the filenames it did not access the first time. Now all is rosy.
It re-saves the list of open files into the project file when you close, and this would not have included the files that didn't open.
There should be entries in the status window reporting each problem.
Certainly make an issue for it, it will get lost as a single line in this issue.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/777#issuecomment-160059074
github-comments@lists.geany.org