Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

"No symbols found" in file view when opening Atom from Finder on Mac #177

Open
cronco opened this issue May 31, 2016 · 24 comments
Open

"No symbols found" in file view when opening Atom from Finder on Mac #177

cronco opened this issue May 31, 2016 · 24 comments

Comments

@cronco
Copy link

cronco commented May 31, 2016

  • OS: OS X 10.11.4
  • Atom: Both 1.7.3, 1.7.4 and 1.8.0-beta3
  • The bug affects all languages that I've tried

This issue was "forked" from #173 at @50Wliu's suggestion.

Initially I thought the issue is mitigated by opening Atom in dev or safe mode, but @dperetti correctly pointed out that the bug doesn't reproduce if you start from the CLI, no --dev or --safe needed.

As mentioned in the bug above, I've also tried disabling other plugins, and it does not help. I'll try looking into the bug myself when I get some time.

@winstliu
Copy link
Contributor

Thanks for opening a new issue @cronco!

@octalmage
Copy link

octalmage commented Jun 1, 2016

I'm getting the same issue.

Mac: 10.11.4
Atom: 1.7.4
symbols-view: 0.112.0

I generated tags using ctags and the "Show all symbols in the project" option works, just not the "Show all symbols in current file" option.

It worked once or twice this morning, so I'm not sure what's different.

This has been an issue for a few weeks now. Thanks!

Edit: It does work when opened from the command line, so at least there's a workaround!

@crucialfelix
Copy link

crucialfelix commented Sep 6, 2016

Same for me: I always have to start from the command line.

This is a python project and I think the python that is activated at startup is the one used.
But by what ? "symbols-view" ?

What generates the ctags ?
It's awfully mysterious how that thing gets populated.

@neko1990
Copy link

neko1990 commented Sep 20, 2016

Atom launched from command line will inherit "TMPDIR" environment variable.
$TMPDIR is used by ctags-darwin(provided by symols-view package) and sort(on your machine).

Here's how i validate this thought:

Open Atom from command line and Finder, and compare their process.env. Spot the "TMPDIR".

Check my $TMPDIR

echo $TMPDIR
/var/folders/qs/cv29d01x113b22rk1pyqxk0w0000gp/T/

Launch Atom from Finder, Watch the new process event by dtrace script , cmd-r:

/Users/neko1990/Applications/Atom.app/Contents/Resources/app.asar.unpacked/node_modules/symbols-view/vendor/ctags-darwin --options=/Users/neko1990/Applications/Atom.app/Contents/Resources/app.asar.unpacked/node_modules/symbols-view/lib/ctags-config --fields=+KS -nf - /Users/neko1990/mrrescue-1.02e/highscore_entry.lua
/Applications/Docker.app/Contents/MacOS/com.docker.frontend {"action":"vmstateevent","args":{"vmstate":"running"}}

Same step as above , but from command line:

/Users/neko1990/Applications/Atom.app/Contents/Resources/app.asar.unpacked/node_modules/symbols-view/vendor/ctags-darwin --options=/Users/neko1990/Applications/Atom.app/Contents/Resources/app.asar.unpacked/node_modules/symbols-view/lib/ctags-config --fields=+KS -nf - /Users/neko1990/mrrescue-1.02e/highscore_entry.lua
sort -u -o /var/folders/qs/cv29d01x113b22rk1pyqxk0w0000gp/T//tags.rLcYef /var/folders/qs/cv29d01x113b22rk1pyqxk0w0000gp/T//tags.rLcYef
/Applications/Docker.app/Contents/MacOS/com.docker.frontend {"action":"vmstateevent","args":{"vmstate":"running"}}

@martisj
Copy link

martisj commented Oct 9, 2016

So @neko1990 is this a bug resolution? Should we start atom from the command line to get symbols in our files?

@neko1990
Copy link

neko1990 commented Oct 9, 2016

@martisj IMHO, this issue related to Path environment variable is not inherited of atom. Be aware , workaround on that issue didn't work on my machine, this may due to violating the "Atom.app" signature (reference).

Launching Atom from command line is just another workaround. The bug-fix could be Atom someday properly set "TMPDIR" and other environment variables.

PS: Currently i use goto:file-symbol for file scope symbol navigation, which avoid using ctags but much slower.

@adammenges
Copy link

Getting the same issue here:

Atom: 1.11.1
macOS: 10.12

@pugson
Copy link

pugson commented Feb 13, 2017

Still happens if I launch Atom from Finder. Works properly if I launch it from the terminal.

Atom: 1.14.1
OS X: 10.11.6

@adammenges
Copy link

fwiw still happening here too:

Atom: 1.14.1
macOS 10.12

@nunoh
Copy link

nunoh commented Feb 13, 2017

Exact same setup as @dubstrike and can confirm. This stop happening some release ago and then reappared, think with 1.14.

@eyeman2006
Copy link

eyeman2006 commented Feb 18, 2017

Same Issue here.

now with Atom 1.15.0 and macOS 10.12.4

@collinjackson93
Copy link

I just encountered the same problem. Atom 1.17.0, OS X 10.12.3. This was very frustrating to debug because launching in safe mode works (because Atom is launched from the terminal), but disabling all packages and relaunching Atom does not.

@docsteveharris
Copy link

same problem 1.18.0 and macos 10.12.5, works fine from command line

@luckyliaolei
Copy link

luckyliaolei commented Nov 7, 2017

1 year later, the bug is still there...

@wzin
Copy link

wzin commented Nov 13, 2017

Same here.

@ishiiii
Copy link

ishiiii commented Jan 23, 2018

I recently tried to learn Python programming for building trading bot.
so I installed atom Python3 and this exact same issue happens, but in my case, I cannot use CMD+R even if I oped Atom from terminal.
Can somebody please help me fixing this issue. It is so annoying.

OS:OSX 10.13.2(17C88)
Atom:1.23.3 x64

@crwecker
Copy link

crwecker commented Feb 4, 2018

I am seeing the same issue. The .tags file shows the symbols that should be populating the "File Symbols" list, but I get a "No Symbols Found" message whether I launch from finder or the terminal.

OSX 10.13.3 (17D47)
Atom 1.23.3 x64

@ishiiii
Copy link

ishiiii commented Feb 5, 2018

I was so stupid to make that mistake.
Please check you are typing correct key.
On Atom for Mac, I was supposed to use Control+R to run the program, not CMD+R.
If that doesn't fix your problem, I am not sure how to fix that issue....

@msabramo
Copy link

Same issue with Atom 1.25.0 x64 on OS X 10.12.6
Launching from CLI is a workaround.

@chrisbranson
Copy link

Same issue with Atom 1.30.0 x64 on OS X 10.13.6
Launching from CLI is a workaround.

@GrayCatCode
Copy link

GrayCatCode commented Sep 6, 2018

I'm also having this issue, albeit I'm not running on Mac (not sure if you want to create another issue for this). I'm running Atom v1.30.0 on CentOS v7.5.1804 and I'm launching it via the Programming menu via the Atom desktop shortcut file in /usr/share/applications:

[Desktop Entry]$
Name=Atom$
Comment=A hackable text editor for the 21st Century.$
GenericName=Text Editor$
Exec=/usr/share/atom/atom %F$
Icon=atom$
Type=Application$
StartupNotify=true$
Categories=GNOME;GTK;Utility;TextEditor;Development;Programming;$
MimeType=text/plain;$
StartupWMClass=Atom$

Launching Atom from the command line doesn't fix the issue in my case.

@meetaig
Copy link

meetaig commented Oct 11, 2018

I'm also having this issue, albeit I'm not running on Mac (not sure if you want to create another issue for this). I'm running Atom v1.30.0 on CentOS v7.5.1804 and I'm launching it via the Programming menu via the Atom desktop shortcut file in /usr/share/applications:

Launching Atom from the command line doesn't fix the issue in my case.

same here. working from Linux Mint 18.1 and not many packages installed.

  • c-header-generator
  • clock
  • file-icons
  • language-cuda
  • language-matlab
  • minimap

@jpmvferreira
Copy link

I also have the same issue, running Manjaro with 4.19 LTS kernel, Atom version is 1.43.

Used to work a few months ago, now it isn't.

@Viech
Copy link

Viech commented Mar 12, 2020

I'm also experiencing this issue on Arch Linux for a bunch of weeks now. Just did a full system upgrade and reboot and the issue is still there. Deleting ~/.config/Atom and starting from CLI did not help. It's odd that symbols-navigator works just fine.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests