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

Error with language pack #4

Closed
Asgoret opened this issue Jul 20, 2018 · 8 comments
Closed

Error with language pack #4

Asgoret opened this issue Jul 20, 2018 · 8 comments

Comments

@Asgoret
Copy link

Asgoret commented Jul 20, 2018

Hi!

I install atom plugin via atom settings and catch strange error in Outline view.
image
How can i fix it? Reinstall isn`t help me.

@BoykoAlex
Copy link
Contributor

BoykoAlex commented Jul 20, 2018

Hmm... that works for me with the latest 0.4.0... Is that the version you have installed? Which version of Atom do you have? Do you get hovers and content assist in the editor? Is the only thing not working being the outline content? Did you try hiding it and then opening the outline view again?
Also try opening dev tools (View -> Developer -> Toggle Developer Tools). See what's the console. The console should show comm messages between atom and LS process. One of the messages around the bottom should be:
Concourse-Pipeline-YAML (Concourse-Pipeline-YAML) rpc.sendRequest textDocument/documentSymbol
Check what are the contents of the message. It should have the content for the outline view

@Asgoret
Copy link
Author

Asgoret commented Jul 21, 2018

@BoykoAlex Hi!
My Atom version is 1.27.1. From setting i have 0.4.0 version of plugin.
No, i haven't got any problems in editor.
How can i check Outline? I don't use it before). And yes i tried to hide\reload view and atom.

hhhmmm....it's very strange, but i haven't got any messages from concourse in developer toogle. can it be wrong installation or i missed some packages?

@Asgoret
Copy link
Author

Asgoret commented Jul 21, 2018

@BoykoAlex Ok....It work now, but very odd.
For example, i must add folder with pipeline like a project, without that Outline doesn't work.
But, Outline not for all files from tutorial
image

Green files work fine and orange or not colored files doesn't work(((

UPD: And you must delete last empty row or outline doesn't work for green file.

@Asgoret
Copy link
Author

Asgoret commented Jul 21, 2018

Orange file
image

Green file
image

@Asgoret
Copy link
Author

Asgoret commented Jul 21, 2018

Work
image

Don't work
image

@BoykoAlex
Copy link
Contributor

Atom's outline works with only one outline provider. Probably the latest provider's content is being displayed. Do you have 'ide-yamlpackage installed? If you switch between grammars, i.e.YAMLandConcourse-Task-YAML` the outline view won't automatically refresh itself. You'd have to type something to refresh the outline.

Now, Concourse-Task-YAML doesn't have an outline, not supported the LS. Concourse-Pipeline-YAML outline is supported by the LS.

The outline that you see for the pipeline file is not coming from the Concourse LS. I'll paste you how it looks below:
screen shot 2018-07-22 at 17 35 50

The Outline view sometimes seem to be stuck. If you see that "blue spinning circle" for a while close the view and reooen it.

@BoykoAlex
Copy link
Contributor

BoykoAlex commented Jul 22, 2018

Looks like if the Outline view is opened and a new pipeline or task file is opened then you get a spinning circle in the outline. This is a bug in the atom language client. This should trigger textDocument/documentSymbol request ones LS initializes and Outline view is opened. Raised: atom/atom-languageclient#229

@Asgoret
Copy link
Author

Asgoret commented Jul 25, 2018

Since it's error somewhere in atom. Close issue.

@Asgoret Asgoret closed this as completed Jul 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants