php-ide-serenata
php-ide-serenata copied to clipboard
How to go to definition with ctrl + left mouse click?
Cannot understand how can I navigate in atom to the method definition inside class, like PhpStorm (ctrl + left mouse click)
It is the same in Atom if you use hyperclick provided by atom-ide-ui. Since you also posted #510, are you sure Serenata is indexing your project correctly? Do you see anything being indexed the first time on opening the project or any errors in the developer tools console?
I will try to install hyperclick, and post my findings.
Quick question is this somewhere in your plugin documentation mentioned that you need to use hyperclick?
Not directly since atom-ide-ui is already a hard dependency, causing it to be installed before you can use this package (or this one won't start); if it's not installed, you see a popup after installation that you need to install it.
atom-ide-ui includes a version of hyperclick that is necessary for this functionality to work. There is some documentation about it here.
After re-enabling https://github.com/facebookarchive/atom-ide-ui package I was able to ctrl+click once and it works, but after atom restart doesn't work anymore.
It is the same in Atom if you use hyperclick provided by atom-ide-ui. Since you also posted #510, are you sure Serenata is indexing your project correctly? Do you see anything being indexed the first time on opening the project or any errors in the developer tools console?
I can see that at project opening in the bottom near line endings there is a yellow blinking indicator and after some short time it gets green
information about system:
apm list --installed --bare
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal
php -v
PHP 7.4.3 (cli) (built: Oct 6 2020 15:47:56) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies
php -m
[PHP Modules]
calendar
Core
ctype
date
dom
exif
FFI
fileinfo
filter
ftp
gettext
hash
iconv
json
libxml
mbstring
openssl
pcntl
pcre
PDO
pdo_sqlite
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zlib
[Zend Modules]
Zend OPcache
Strange that it works once, that implies at least some parts of the code got indexed successfully.
Did you have a chance to check out the developer tools console (Ctrl-Shift-I I believe, but you can also find it in the command palette somewhere).
I also had similar problems with the hyperclick feature, but after uninstalling all packages I discovered that the same key combination (Ctrl+Click) is used in Atom's core engine to trigger "Multi Cursor On Click" feature.
I don't know why Ctrl+Click seemed to work right after installing the hyperclick package and only stopped working later, I guess this is a bug in Atom's package installer that temporarily gives higher priority to package's bindings over core engine's bindings, and normally core engine has priority over packages.
Anyway, I could not find any way to override binding for Ctrl+Click or define some other combination of keys+Click to trigger hyperclick navigation, the keymap.cson file is no help here because it only configures "pure-keyboard" bindings... so I think the only workaround for now is to just disable that "Multi Cursor On Click" feature in Atom settings. It is located in Editor tab, for some unknown reason it was put in the middle of line height settings...