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

Output console randomly opens to ALS log #187

Closed
mpicard opened this issue Oct 25, 2017 · 15 comments · Fixed by #195
Closed

Output console randomly opens to ALS log #187

mpicard opened this issue Oct 25, 2017 · 15 comments · Fixed by #195

Comments

@mpicard
Copy link

mpicard commented Oct 25, 2017

ALS often opens the "Output" console log in VSCode with debugging statements when writing Angular code. I'd expect that output not to open ever. I've disabled all plugins except ALS and it seems to be the culprit. I noticed that it often happens when an error occurs in the syntax in typescript or html files.

Version 1.17.2
Commit b813d12980308015bcd2b3a2f6efa5c810c33ba5
Date 2017-10-16T13:57:00.652Z
Shell 1.7.7
Renderer 58.0.3029.110
Node 7.9.0
Architecture x64

Ubuntu 16.04

@MarkSheinkman
Copy link

Yup. Super annoying. Writing to the console without activating it, like other modules do, would be much better.

@shhdgit
Copy link

shhdgit commented Oct 27, 2017

Same to me, that's very annoying.

@SamoB25
Copy link

SamoB25 commented Oct 31, 2017

Super annoying

@danwulff
Copy link

danwulff commented Nov 2, 2017

This is killing me. It likely has something to do with an "OutputChannel" if anyone has time to look at the source code of this extension: https://code.visualstudio.com/docs/extensionAPI/vscode-api#OutputChannel

@chuckjaz
Copy link
Contributor

Given the response in microsoft/vscode#36844 (comment) the client should be setting revealOutputChannelOn to off.

@willwsharp
Copy link

@chuckjaz Is setting the revealOutputChannelOn to off something that can be changed via configuration by the user?

@snewell92
Copy link

The option is a part of LanguageClientOptions which is passed to the constructor of a LanguageClient - I can make a quick PR.

@danwulff
Copy link

@snewell92 Thanks for putting up a PR! I didn't have time to look into it further.

@snewell92
Copy link

snewell92 commented Nov 20, 2017

I referenced several other open related issues just now too. Another PR could easily be made such that instead of RevealOutputChannelOn.Never, that property is set to a configurable field (which would close issue 131).

And now we wait patiently 😸 In the mean time I'm uninstalling the language service, it just gets way too noisy 😞

@wbhob
Copy link

wbhob commented Nov 21, 2017

Yeah, can we get this merged please? This extension is great except for this one awful bug that I reported months ago and got marked as resolved when it really wasn't.

@dottodot
Copy link

In the latest versions of cli and angular this is now almost unuseable. I barely have enough time to read the terminal messages before it switches to the output tab.

@Martinspire
Copy link

Martinspire commented Nov 29, 2017

I get that changing a value by the user is a possibility, but why is it opening in the first place? It seems to me that this is only needed for people debugging the Angular Language Service, not somebody working on Angular.

I also get it popping up in multiple projects. Most of the time after changing code to something I know is wrong, but I need to do that in order to continue on my code (I tend to copy code from some place to a new place because I need some variables or object to be the same and splitting the window is not worth the effort for something small). I'm not even saving it and it seems to freak out.

When I open Word, Notepad or whatever, it also doesn't randomly popup a debugger output because a plugin or extension is failing. Even if VS Code has some setting to display stuff, I still think it should be handled differently because in other languages VS Code supports, I never see the output tab opening randomly.

By now it is getting automation to quickly close it because I simply don't need the information.

@snewell92
Copy link

@Martinspire It would be nice if the output was formatted to actually give a compile error, as that is usually what it is trying to report. It should append any errors into the 'Problems' that language services usually dump them in, but instead the language service just throws up all of its output and gets in our way.

So, yes, it could open and be meaningful - but your point about it opening even while you are typing is a good one. The TS language service catches those errors, and then draws a red squiggle - instead of blowing up the output tab.

Perhaps another issue could be opened to explore why this is happening in the first place, and investigate how the ALS is handling errors and logging output - regardless, all of that is outside the scope of this issue. We just want the output to be squelched.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Feb 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.