Author Topic: `Goto declaration` hotkey not working  (Read 252 times)

Offline sgi05431

  • Single posting newcomer
  • *
  • Posts: 3
`Goto declaration` hotkey not working
« on: March 21, 2018, 01:58:48 pm »
The `Goto declaration` hotkey is not working on my system, specifically, nothing happens. Caliing the functionality via menu works.

As an example, I:

1. open the file https://github.com/mysql/mysql-server/blob/mysql-5.0.96/sql/sql_show.cc
2. go to line 1431 (`protocol->prepare_for_resend();`)
3. move the cursor to the `protocol` token
4. press "Ctrl+Shirt+." ()
5. nothing happens

In contrast, if I do 4. via menu (Search -> Goto declaration), it sends me to the declaration.

My system is a XUbuntu 16.04 x86-64. The CB build is from ppa:pasgui/ppa.

Thanks!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10736
    • Travis build status
Re: `Goto declaration` hotkey not working
« Reply #1 on: March 21, 2018, 04:55:05 pm »
You need a project for this to work. You can create one using cmake -G "Codeblocks - Ninja" or something similar.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline sgi05431

  • Single posting newcomer
  • *
  • Posts: 3
Re: `Goto declaration` hotkey not working
« Reply #2 on: March 21, 2018, 05:16:40 pm »
To clarify, with "for this work" you mean:

- for the hotkey to work
- or for the "go to declaration" functionality to work?

The "go to declaration" functionality does work - the problem is just the hotkey.

(I don't have the test machine right now).

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10736
    • Travis build status
Re: `Goto declaration` hotkey not working
« Reply #3 on: March 21, 2018, 07:13:08 pm »
I doubt it is just the hot key.
Pressing the hotkey is the same as pressing the menu item in the main menu.
If this works then the hotkey should work.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline sgi05431

  • Single posting newcomer
  • *
  • Posts: 3
Re: `Goto declaration` hotkey not working
« Reply #4 on: March 21, 2018, 07:41:38 pm »
Have you actually tried? The hotkey not working, at least on my machine, is the whole point of this post.

Offline BlueHazzard

  • Lives here!
  • ****
  • Posts: 1785
Re: `Goto declaration` hotkey not working
« Reply #5 on: March 21, 2018, 08:02:34 pm »
maybe an other manifestation of the F2 bug?

[Edit:] i have no default hotkey for this menu entry.
and if i add the short cut ctrl+shift+.  everything works
« Last Edit: March 21, 2018, 08:09:31 pm by BlueHazzard »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2089
Re: `Goto declaration` hotkey not working
« Reply #6 on: March 21, 2018, 08:16:38 pm »
It might be because your file has an extension of .cc
Does anyone know if the parser even looks at file extension of ".cc" ?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10736
    • Travis build status
Re: `Goto declaration` hotkey not working
« Reply #7 on: March 21, 2018, 09:40:50 pm »
Have you actually tried? The hotkey not working, at least on my machine, is the whole point of this post.
Yes, I use them (Ctrl+. and Ctrl+Shift+.) all day long and they work perfectly fine.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]