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

End the program(program crashes) when I try to auto-complete the code. #1927

Closed
Spiker01 opened this issue Aug 21, 2018 · 11 comments
Closed
Labels

Comments

@Spiker01
Copy link

Hello everybody.
My technical specifications:

uname -a
Linux SpSystem 4.10.0-38-generic # 42 ~ 16.04.1-Ubuntu SMP Tue Oct 10 16:32:20 UTC 2017 x86_64 x86_64 x86_64 GNU / Linux

Geany => Help => About.
Geany 1.27 (collected Apr 17 2016 or later).

geany -V
geany 1.27 ((collected Apr 17 2016 or later) GTK 2.24.30, GLib 2.48.0)

I installed plugins for Geany from the official Linux / GNU Mint repositories, everything is fine. I did this, because I needed to double the tags, for example in HTML. I did this with the plugin. Everything worked.

After a while I decided that I want to include the autocompletion of words. I enabled simple autocompletion through the settings, the first tick in the settings: Edit / Settings. In the settings window, select "Editor", "Autocompletion" tab, "Auto-complete code snippets" parameter).

In the future work suddenly, for the first time the editor closed. I propose it to an emergency. I ran it again. Everything worked, but when editing the file, if you get to the point where, in theory, the list with options for autocompletion may fall out, the program automatically ends without outputting any error, the window just closes (disappears).

I decided to disable autocompletion and the problem disappeared. Now I write the required code with my hands, without the possibility of an automatic add-on. The program is relatively stable. Paired tags are highlighted.

I do not know very well the terms from programming in English. I hope I clearly explained.

I decided to notify Geany developers about this issue so I am writing here. In some of the newest code editing programs (such as Atom), auto-completion usually works without lags and (or) critical errors. Geany should not fall behind, in my opinion. I hope the problem will be solved in the future.

I can provide almost any files in my system for additional information on this issue. I can conduct various tests at your request (Acceptable for me) when I have free time.

Thank you for watching.

@codebrainz
Copy link
Member

@elextr
Copy link
Member

elextr commented Aug 21, 2018

@codebrainz Yeah probably.

@elextr
Copy link
Member

elextr commented Aug 21, 2018

@Spiker01 also 1.27 is a pretty old version, please try the latest version to see if its fixed.

@Spiker01
Copy link
Author

@elextr Thanks for the advice. I tried to download the latest version (1.33) from the official site. Configured, assembled(make), installed. After installation, the version 1.27 is also launched from the menu and the command geany -V also issues version 1.27. I attach the file with the output of the console "make install" : l https://gist.github.com/Spiker01/3e7aa50fffdc73e8cb2df8c2a01d02ef#file-makeintstallgeany133-txt-L86 Am I doing something wrong, is there a mistake?

If You may, tell me the best ways to install.

@elextr
Copy link
Member

elextr commented Aug 22, 2018

Unfortunately the official builds are distro neutral, so they won't replace your desktop menu or other definitions set by the official version for that distro.

Try running geany from $prefix/bin (where $prefix is the prefix you used when building, or default /usr/local IIRC).

@codebrainz
Copy link
Member

In other words, uninstalling the distro package will remove it from /usr prefix so your own built version is found in /usr/local prefix, the default build system prefix.

@elextr
Copy link
Member

elextr commented Aug 22, 2018

Depending on your PATH of course.

@Spiker01
Copy link
Author

@elextr @codebrainz My paths to the established geany 1.27 :

user01@SpSystem ~ $ whereis geany
geany: /usr/bin/geany /usr/local/bin/geany /usr/local/lib/geany /usr/include/geany /usr/share/geany /usr/share/man/man1/geany.1.gz

I not understand completely: Do I need to use the make command with the keys or do I need to move the already installed files with my hands? I do not often collect files from source. I will be grateful if You write "ready" GNU/Linux commands.

@elextr
Copy link
Member

elextr commented Aug 22, 2018

You need to run the right geany, /usr/local/bin/geany.

@codebrainz
Copy link
Member

@Spiker01 in most operating systems there is a PATH environment variable that lists directories to look in for executables. In your case in Linux, usually /usr comes before /usr/local in the search order (try echo $PATH at command line to see). If you have an executable named geany in /usr/bin (the old version from the repos) and one in /usr/local/bin (the shiny new version you compiled), it's going to always use the old one in /usr/bin.

The simplest solution is to just remove the out-of-date Geany package you have installed from your distro repos (ex. apt-get remove geany for Debian-like distros) and everything will just work. Otherwise you have to fiddle with your PATH or specify the full path to which version of Geany you want to use as @elextr said.

@Spiker01
Copy link
Author

Spiker01 commented Sep 5, 2018

Thank you all. I solved the problem. Has connected Geany repositories for developers.
https://launchpad.net/~geany-dev/+archive/ubuntu/ppa

sudo add-apt-repository ppa: geany-dev / ppa
sudo apt-get update

Installed (updated) package Geany:
sudo apt-get install geany
Everything is working.I enabled code autocompletion. Now program no crashes.

@elextr elextr added the resolved label Sep 5, 2018
@elextr elextr closed this as completed Sep 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants