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 on macOS #6

Open
blacknred0 opened this issue May 23, 2018 · 21 comments
Open

No outline available on macOS #6

blacknred0 opened this issue May 23, 2018 · 21 comments

Comments

@blacknred0
Copy link

I got macOS with R version 3.4.1 (2017-06-30) -- "Single Candle" and when I open up outline on atom, it says that

No outline available
This is likely an error with the language package.

I have installed both atom-language-r and install.packages("languageserver").

Thoughts?!

@randy3k
Copy link
Member

randy3k commented May 23, 2018

Could you open the console and turn on the debug mode atom.config.set('core.debugLSP', true) and report the errors shown?

@blacknred0
Copy link
Author

Below are the results. If I am looking at this right, when I go to /Users/blacknred0/.atom/packages/ide-r/lib/main.js:73, I see this console.log('[rls] %s', String(buf));, does this mean that R should have installed a package called rls or is that the language server?

atom.config.set('core.debugLSP', true)
true
/Users/blacknred0/.atom/packages/ide-r/lib/main.js:73 [rls] received: Content-Length: 4049

logger.js:21 R (rls) stderr received: Content-Length: 4049
warn @ logger.js:21
stderr.split.filter.forEach.line @ auto-languageclient.js:641
handleServerStderr @ auto-languageclient.js:641
childProcess.stderr.on.chunk @ auto-languageclient.js:316
emitOne @ events.js:101
emit @ events.js:191
readableAddChunk @ _stream_readable.js:178
Readable.push @ _stream_readable.js:136
onread @ net.js:560
/Users/blacknred0/.atom/packages/ide-r/lib/main.js:73 [rls] received payload.
handling notification: textDocument/didChange

logger.js:21 R (rls) stderr received payload.
warn @ logger.js:21
stderr.split.filter.forEach.line @ auto-languageclient.js:641
handleServerStderr @ auto-languageclient.js:641
childProcess.stderr.on.chunk @ auto-languageclient.js:316
emitOne @ events.js:101
emit @ events.js:191
readableAddChunk @ _stream_readable.js:178
Readable.push @ _stream_readable.js:136
onread @ net.js:560
logger.js:21 R (rls) stderr handling notification: textDocument/didChange
warn @ logger.js:21
stderr.split.filter.forEach.line @ auto-languageclient.js:641
handleServerStderr @ auto-languageclient.js:641
childProcess.stderr.on.chunk @ auto-languageclient.js:316
emitOne @ events.js:101
emit @ events.js:191
readableAddChunk @ _stream_readable.js:178
Readable.push @ _stream_readable.js:136
onread @ net.js:560
/Users/blacknred0/.atom/packages/ide-r/lib/main.js:73 [rls] deliver method: textDocument/publishDiagnostics

logger.js:21 R (rls) stderr deliver method: textDocument/publishDiagnostics
warn @ logger.js:21
stderr.split.filter.forEach.line @ auto-languageclient.js:641
handleServerStderr @ auto-languageclient.js:641
childProcess.stderr.on.chunk @ auto-languageclient.js:316
emitOne @ events.js:101
emit @ events.js:191
readableAddChunk @ _stream_readable.js:178
Readable.push @ _stream_readable.js:136
onread @ net.js:560

@randy3k
Copy link
Member

randy3k commented May 24, 2018

Do you see the same error? The log looks fine.

@blacknred0
Copy link
Author

yes, same error and it doesn't seem to matter if I do an empty R file or existing one.

@randy3k
Copy link
Member

randy3k commented May 25, 2018

But the log doesn’t show the error!?

@blacknred0
Copy link
Author

This is interesting.... even though there is nothing coming up in the outline, I can actually hover over the functions and I do get the functions descriptions from R. So, is there something wrong where languageserver is not talking to atom outline?

@randy3k
Copy link
Member

randy3k commented May 27, 2018

Would it be a problem of atom-ide-u? I don't encounter it personally on my mac.

@blacknred0
Copy link
Author

Is there a way to debug this?

@randy3k
Copy link
Member

randy3k commented May 29, 2018

Check this thread facebookarchive/atom-ide-ui#177

@anasrana
Copy link

Having the same issue. Atom-ide-u can't be it since it works with the python ide package. Any suggestions?

@randy3k
Copy link
Member

randy3k commented Jun 20, 2018

It is still working fine on my mac. What platform are you on? stupid quection, the title of this thead implies already.

@randy3k
Copy link
Member

randy3k commented Jun 20, 2018

Are you using our companion grammar?

@anasrana
Copy link

anasrana commented Jun 20, 2018

Yes, I am and it is up to date. A bit more context:
Atom: 1.27.2
R: 3.5
languageserver: 0.2.3

@randy3k
Copy link
Member

randy3k commented Jun 20, 2018

I have removed the unimplemeted providers, check to see if v0.1.8 fixes it.

@anasrana
Copy link

OK, now I have this. I assume that is what I should see?

image

@randy3k
Copy link
Member

randy3k commented Jun 20, 2018

Did you install ide-r and aotm-ide-ui?

@anasrana
Copy link

Yes, both are installed.

@randy3k
Copy link
Member

randy3k commented Jun 20, 2018

Maybe related to facebookarchive/atom-ide-ui#263

I guess disabling outline-view is an option for now.

@randy3k
Copy link
Member

randy3k commented Jun 20, 2018

I finally get to understand it (I am not a regular Atom user at all). The outline view is expected to be not available. We have to implement it as described in https://github.com/facebook-atom/atom-ide-ui/blob/master/docs/outline-view.md

However, it would won't happen any time soon (unless someone is interested to look into this) since it is an Atom only feature. I'd spend my time first in developing languageserver which could be used in multiple editors.

@anasrana
Copy link

Makes sense, thanks for the update. Looking at this Issue it seemed to me that the outline view was implemented.

@randy3k
Copy link
Member

randy3k commented Jun 20, 2018

I was so ignorant that even didn't know what outline is...

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