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

No outline available #5

Closed
jolsen71 opened this issue Sep 13, 2017 · 6 comments
Closed

No outline available #5

jolsen71 opened this issue Sep 13, 2017 · 6 comments

Comments

@jolsen71
Copy link

jolsen71 commented Sep 13, 2017

My setup: On Windows 10. Just upgraded to Atom 1.21.0-beta0 and installed atom-ide-ui 0.3.1 and ide-python 0.1.1 packages and the pyls dependency via pip. When I execute "pyls --help" in a command window I get the excepted help text from pyls.

When I open a .py file in Atom and display the "Outline View" pane, it says "No outline available / There are no outline providers registered"

According to the readme.md for ide-python, the outline view should be a supported feature so I don't know what is preventing it from working on my system. I'm not sure how to troubleshoot this to provide better details to you for debugging/fixing. If there is anything I can run to get you better information please let me know.

Thank you for your time and effort creating ide-python and sharing it with us.

@lgeiger
Copy link
Collaborator

lgeiger commented Sep 13, 2017

Are other features like Autocomplete working?

@lgeiger
Copy link
Collaborator

lgeiger commented Sep 13, 2017

For me, language servers only start up when I have a project directory with relevant files added to the tree view. You may want to try if this helps.

@jolsen71
Copy link
Author

I ashamedly do not know for 100% certain, but as I explore I am inclined to say they are not. I tried "find references" and I got a "symbol references are not available for this project"

The linter and diagnostic panes show columns but no content relative to the open file(s)

I will try your suggestion and reply shortly.

@jolsen71
Copy link
Author

That appears to be the case for me as well; adding a project folder with python files in the path made the outline view, diagnostics view, and other things start working. So, the originally observed issue appears to be with the underlying project--do you happen to know which one (ie Atom-ide-ui)? I will report an issue to them for files edited outside of a project directory.

If you confirm that is the case, then this issue can obviously be closed out as moot and I would recommend adding a note to your readme (that the files being edited need to be in a project folder before the functionality is enabled) to prevent other people reporting this issue to you until the underlying project is fixed up.

Thank you again for your time and fast responses.

@lgeiger
Copy link
Collaborator

lgeiger commented Sep 13, 2017

I'm glad it's working for you 🎉

So, the originally observed issue appears to be with the underlying project--do you happen to know which one (ie Atom-ide-ui)?

I'm quite new to language-servers so I'm not 100% sure. Either atom-language-client or atom-ide-ui should be a good place to ask.

If you confirm that is the case, then this issue can obviously be closed out as moot and I would recommend adding a note to your readme (that the files being edited need to be in a project folder before the functionality is enabled) to prevent other people reporting this issue to you until the underlying project is fixed up.

👍 Would you like to make a PR and add this note?

Thank you again for your time and fast responses.

No problem. It's great to see that it works on Windows (I've only tested it on Unix).
Feel free to report any strange behaviors or hickups. ide-php suggests that on Windows it's better to connect to the server via a Socket, but I'm unable to test. Any help is highly appreciated 😄 .

@lgeiger lgeiger closed this as completed Sep 13, 2017
@memeplex
Copy link

We only fire up the language server if the file you open is contained within the folder you have added to atom.

atom/atom-languageclient#170 (comment)

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

3 participants