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

"No Outline Available: There is Likely an Error with the Language Package" #177

Closed
JosephTLyons opened this issue Mar 1, 2018 · 22 comments

Comments

@JosephTLyons
Copy link

JosephTLyons commented Mar 1, 2018

Description

"No Outline Available: There is Likely an Error with the Language Package," is the message I get with every language that I have ide-language packages for. C#, HTML, Python,.. etc. I haven't been able to use any of the IDE features introduce by installing atom-ide-ui+a language package. Diagnostics, advanced completion, etc. There is no sign of anything working.

Expected Behavior

The feature set to work as described.

Actual Behavior

Same as description.

Versions

  • Atom: 1.24.0
  • Client OS: macOS 10.13.3
  • atom-ide-ui: 0.9.2
@hansonw
Copy link
Contributor

hansonw commented Mar 1, 2018

If you open Atom's console (cmd-opt-i), do any uncaught exceptions or rejections appear?

@hansonw
Copy link
Contributor

hansonw commented Mar 1, 2018

Given that autocompletion also isn't working for you, this seems like a deeper problem - atom-ide-ui is not responsible for providing autocompletion results. Only the ide- language packages are (via atom-languageclient.)

@JosephTLyons
Copy link
Author

I have the basic autocompletions that existed before installing atom-ide-ui, but nothing new on top of that (to my knowledge at least).

Here's a screenshot of the console after freshly opening Atom and running the command to show the outline of a sample HTML doc and the ide-html package

screen shot 2018-03-01 at 3 03 44 pm

@damieng
Copy link

damieng commented Mar 1, 2018

Hi @JosephTLyons can you try turning on debugging and see what messages you get?

atom.config.set('core.debugLSP', true);

and then restart Atom. You should see more detail then in the dev tools window.

I'm going to close the issue here as it's not atom-ide-ui going wrong here - it's either ide-html or atom-languageclient or atom but we may as well continue the discussion here.

@damieng damieng closed this as completed Mar 1, 2018
@JosephTLyons
Copy link
Author

JosephTLyons commented Mar 1, 2018

Made that boolean for debug true, closed Atom and reopened, then ran the outline command. I don't see very many new details however. And just to reiterate, I have this issue with all ide-language packages, not just HTML. I just used HTML for this specific example, but the same happens in IDE-Python, IDE-CSharp, etc. So I assume its not a language-specific issue, but something that is common amongst them all (not very specific, but this is out of my scope of knowledge).

screen shot 2018-03-01 at 5 26 37 pm

@damieng
Copy link

damieng commented Mar 1, 2018

Ah, do you have tree-sitter experimental support enabled?

@JosephTLyons
Copy link
Author

Not that I'm aware of. I'm on Atom 1.24.0 and that new tree-sitter isn't included until Atom 1.25.0 (beta) to my knowledge. I double-checked and there is no such setting on my end in 1.24.0

@damieng
Copy link

damieng commented Mar 2, 2018

Can you try pressing ctrl-; in the html editor and paste here a screenshot of the 'scopes at cursor' that comes up?

@JosephTLyons
Copy link
Author

JosephTLyons commented Mar 2, 2018

Hmmm, pressing control + ; while my cursor is in the HTML doc does nothing on my end, maybe I'm doing something incorrectly? I'm really wanting to help resolve this, because there is a group of us that ran into this same issue. Thank you for trying to help troubleshoot this.

@hansonw
Copy link
Contributor

hansonw commented Mar 2, 2018

On Mac OS I believe it's cmd-opt-P.

@skylize
Copy link

skylize commented Mar 2, 2018

OS-agnostic. Open the file-in-question. While that tab is active, open dev tools, and paste this in the console.

atom.workspace.getActiveTextEditor().getLastCursor().getScopeDescriptor().getScopesArray()

@JosephTLyons
Copy link
Author

Thanks, here it is!

screen shot 2018-03-01 at 8 42 24 pm

@JosephTLyons
Copy link
Author

JosephTLyons commented Mar 5, 2018

Would anyone else have any helpful tips? Sort of at a loss for what to try next or if it will have to a code fix down the line.

@damieng
Copy link

damieng commented Mar 5, 2018

I'm at a loss to explain why it isn't working on your machine.

@JosephTLyons
Copy link
Author

JosephTLyons commented Mar 5, 2018

@damieng , that's ok. I really appreciate you trying to help me. I suppose will just keep all aspects of Atom IDE disabled and check into it whenever an update comes up. Thanks again.

@JosephTLyons
Copy link
Author

JosephTLyons commented Mar 5, 2018

Interesting, I disabled and re-enabled the atom-ide-ui package and received a handful of a errors:

screen shot 2018-03-05 at 3 42 05 am

screen shot 2018-03-05 at 3 42 12 am

Although I wasn't presented with the same errors when deleting and re-installing the package. Strange.

@chibicode
Copy link

@damieng

Ah, do you have tree-sitter experimental support enabled? (#177 (comment))

Just curious, why would enabling tree-sitter cause a problem here?

@chibicode
Copy link

chibicode commented Mar 22, 2018

Ah, it seems that the scope changes with tree-sitter.

AtomLinter/linter-eslint#1076
AtomLinter/linter-eslint#1115
atom/ide-typescript@8edda74

@damieng
Copy link

damieng commented Mar 22, 2018

Yes, the scope names change with tree-sitter and packages need to update. Looks like the AtomLinter update should be out soon.

@JosephTLyons
Copy link
Author

I just updated to the newest Atom with tree-sitter, but It’s been turned off the entire time.

@diramazioni
Copy link

I had the same problem (on linux) and the real issue was that I need to
pip install 'python-language-server[all]'

@JosephTLyons
Copy link
Author

As an update, IDE is working for me more now than before. Before, nothing worked in any languages. Now, ide-rust works perfectly (diagnostics and outline view and such) and ide-csharp seems to be catching syntax errors and such, still no outline view, but progress it seems.

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

No branches or pull requests

6 participants