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

[PHP] 1.30.1 don't autocomplete require. #1436

Closed
IlyaIndigo opened this issue Mar 20, 2017 · 5 comments
Closed

[PHP] 1.30.1 don't autocomplete require. #1436

IlyaIndigo opened this issue Mar 20, 2017 · 5 comments

Comments

@IlyaIndigo
Copy link

IlyaIndigo commented Mar 20, 2017

The latest version (1.30.1) in PHP don't autocomplete require.

@MatrixMike
Copy link

Try going to the geany website and downloading the latest - which is now 1.30.1 ...
From a working geany go to help website (which takes you to http://www.geany.org/ )
I had similar issues but just built 1.30.1 on my platforms and all working OK again now.
Maybe this is just slightly un-related but latest is 1.30.1

@IlyaIndigo
Copy link
Author

Now update to 1.30.1
https://build.opensuse.org/package/show/home:13ilya:GTK2/geany
Nothing happens.
geany

@IlyaIndigo IlyaIndigo changed the title [PHP] 1.30 don't autocomplete require. [PHP] 1.30.1 don't autocomplete require. Mar 20, 2017
@codebrainz
Copy link
Member

@IlyaIndigo which version did auto-complete require? It wasn't in the tags file from before the last change (~2 years ago) and it's not in the tags file after that, and it's always been in the filetypes.html keyword list, as far as I can tell. Is it possible you had some customized tags/filetypes before that you don't have now?

@IlyaIndigo
Copy link
Author

I'm using theme vibrant-ink and my fildefs/filetypes.html

# For complete documentation of this file, please see Geany's main documentation
[styling]
# styling for PHP/HTML is done in filetypes.xml


[settings]
# default extension used when saving files
#extension=html

# the following characters are these which a "word" can contains, see documentation
#wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789

# if only single comment char is supported like # in this file, leave comment_close blank
# these comments are used for PHP, the comments used in HTML are in filetypes.xml
comment_open=<!--
comment_close=-->

# set to false if a comment character/string should start at column 0 of a line, true uses any
# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
	#command_example();
# setting to false would generate this
#	command_example();
# This setting works only for single line comments
comment_use_indent=true

# context action command (please see Geany's main documentation for details)
context_action_cmd=

[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)
# use a syntax checker and ignore the formatted output
compiler=tidy %f >/dev/null

# the file will be opened with the default browser which can be set in the preferences dialog
run_cmd=builtin

How can I modify it so that "require" appears in the autocomplete?

@b4n
Copy link
Member

b4n commented Mar 16, 2024

FWIW (on that super old report):

  • require is a keyword, not a function
  • Geany doesn't auto-complete keywords (yet)
  • You can workaround this by creating a PHP tags file including this as whatever type you like (function, constant, or anything that would work).

@b4n b4n closed this as completed Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants