Sublime Forum

Goto definition stopped working in ST4

#1

After upgrading to ST4 the Goto Definition function stopped working. Tested in Python and Go projects. The submenu item is just inactive. What is interesting that if you hover a mouse over a function name it shows a popup with definitions and references for this function (very cool!) but clicking on them still does nothing.

Maybe I am doing something wrong? I know this is very little info about the problem, but I just don’t know where to start digging.

Below is gif with demonstration of the problem on python project. Anaconda’s goto definition still works but the native one is inactive. In ST3 it worked fine on same project.

0 Likes

#2

Does it happen in safe mode? Are there any errors in the Sublime Text console?

0 Likes

#3

In safe mode Goto Definition works well!
Console has a lot of lines Unable to find cancel_build command: exec which keep appearing.

Does it mean that some package is preventing ST from executing Goto Definition correctly?

0 Likes

#4

You likely have an override for the default package. Do you see a folder called “Default” when going to the the menu Preferences > Browser Packages…

0 Likes

#5

No, there’s no such folder there:

But I’ve found out this: if I disable or remove Anaconda package, native goto definition starts working, but only in current project. If I open another project or close this and open it again, Goto Definition is inactive again. If in this case I install or enable Anaconda package, Goto Definition starts working again. But again, until another project is opened.

0 Likes

#6

You can also check in the parent folder inside Installed Packages for a “Default” folder or “Default.sublime-package”

0 Likes

#7

Nothing there either:

In fact, I have other problems with ST4 like mentioned by @simov crashes after directory changes, but in my case crashes do not reproduce in safe mode.

Maybe I just need to make a clean install of ST4 and reinstall all my packages manually.

0 Likes

#8

Problem gone in fresh build 4113

0 Likes

#9

I have the same problem with build 4113.

0 Likes

#10

Has the same problem with 4126. No errors in console.

0 Likes

#11

ST 4137.
Normal and Safe mode. JS file.
Goto Definition, goto reference, F12, shift+F12…popup on hover - nothing.
It doesn’t work.
No errors in console.
OSX

0 Likes

#12

I suggest submitting a bug report with steps to reproduce (Help > Report a Bug). FWIW I can’t reproduce that on my end.

0 Likes