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

Implement showMessage and logMessage from util::IDEServices #185

Open
jurgenvinju opened this issue Sep 27, 2022 · 10 comments
Open

Implement showMessage and logMessage from util::IDEServices #185

jurgenvinju opened this issue Sep 27, 2022 · 10 comments
Assignees
Labels
enhancement New feature or request

Comments

@jurgenvinju
Copy link
Member

Describe the bug

In util::IDEServices two very similar functions have lost their effect:

  • showMessage would show a "popup" in the bottom right corner for alerting the user to certain events
  • logMessage would add a log entry to the Rascal MPL LSP log, or the parametrized LSP log, respectively

Both have worked before. So it could be our upgrade to a higher version of VSCode or the LSP that has introduced this
issue. We can also add (manual) tests for these two function to the release issue template while we are at it.

@jurgenvinju jurgenvinju added the bug Something isn't working label Sep 27, 2022
@jurgenvinju jurgenvinju self-assigned this Sep 27, 2022
@DavyLandman
Copy link
Member

Can you point to the commit that added that functionality? Since I cannot find it in our history.

I agree we need more tests.

@jurgenvinju
Copy link
Member Author

I'll have to dig too. That was around the crunch time for the Strumenta demo with the graph language I believe.

@DavyLandman
Copy link
Member

I've only been able to find places where we would report unsupported features using the languageClient.showMessage call.

@jurgenvinju
Copy link
Member Author

I'll look it up tomorrow with git reflog -S showMessage

@jurgenvinju
Copy link
Member Author

I only see the addition of the (default) interface methods but not their implementation in the log. This means that this functionality is still on a branch somewhere, or has never been committed.

@jurgenvinju
Copy link
Member Author

Ok, after some deep archeology I found out that these things have worked (a bit), but I removed the code before pushing because while testing several times a deadlock occurred. Next step is to enable only the showMessage functionality withou the logMessage because it seems the logMessage is what is causing the deadlocks.

@DavyLandman
Copy link
Member

Do you know why showMessage causes no deadlocks?

@jurgenvinju
Copy link
Member Author

it is not called during the start-up processes

@DavyLandman
Copy link
Member

could we add a guard around the logMessage & showMessage implementation that we only call it once we know that we've finished initializing?

Else someone adds a call to showMessage in the future, and introduces a deadlock accidentally.

@jurgenvinju
Copy link
Member Author

I want to understand completely what is going on first. And then this could be a solution, with a lot of source code comments :-)

@DavyLandman DavyLandman added enhancement New feature or request and removed bug Something isn't working labels Nov 30, 2022
@DavyLandman DavyLandman changed the title showMessage and logMessage from util::IDEServices have no effect anymore Implement showMessage and logMessage from util::IDEServices Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants