vscode-phpactor icon indicating copy to clipboard operation
vscode-phpactor copied to clipboard

Fix annoying popup error.

Open Rodrigo-Barros opened this issue 1 year ago • 5 comments

Hello from Brazil.

Hey I see that someone started a feature to debug trace messages between vscode and phpactor language server but was not in the client code, so I opened this pull request.

What this feature do is: control the popup terminal window show, based on value of phpactor.trace.server.vebosity. Captura de tela de 2023-04-30 21-23-23

set "off" for phpactor.trace.server do not popup the terminal window when a request fail.

Note: I update the version in package.json and I add mkdir to help automatically create the artifacts folder too.


I have one doubt. I run the phpactor via socket in a virtual machine running Linux, and accessed via socket on windows machine everything worked as expected, but only for tag 0.18.1. This is supposed to be happen or is something related to current refactoring.

Rodrigo-Barros avatar May 01 '23 01:05 Rodrigo-Barros

I have one doubt. I run the phpactor via socket in a virtual machine running Linux, and accessed via socket on windows machine everything worked as expected, but only for tag 0.18.1. This is supposed to be happen or is something related to current refactoring.

i'm not sure -- what happens that is not as expected? is it a separate issue?

dantleech avatar May 01 '23 09:05 dantleech

also maybe the confusion is because the settings for phpactor.trace.server in package.json is automatically used by vscode - and controls if code will verbosely log the communication between client and server... it doesn't need any corresponding code in the extension itself.. perhaps there is another setting for revealing the window on error.

... although also good to report the error that is being triggered so it can be fixed :)

dantleech avatar May 01 '23 12:05 dantleech

is this the same feature? is there some documentation / comparable language server extension to compare with?

Yes is the same feature, sorry if I misunderstand.

also maybe the confusion is because the settings for phpactor.trace.server in package.json is automatically used by vscode

I don't knew it.

i'm not sure -- what happens that is not as expected? is it a separate issue?

Yes it is. I wiil open a issue to not blend the subjects.

Thank you for your time.

Rodrigo-Barros avatar May 01 '23 13:05 Rodrigo-Barros

Yes is the same feature, sorry if I misunderstand.

I mean.. why should the trace verbosity affect if the output channel is revealed? what makes you think this is how it should be done?

dantleech avatar May 01 '23 22:05 dantleech

Yes is the same feature, sorry if I misunderstand.

I mean.. why should the trace verbosity affect if the output channel is revealed? what makes you think this is how it should be done?

Hi again, I think must have an option to disable the annoying error pop up, even if another json key must be created only for that. In debug scenarios this could be enabled or maybe set the default value to show the popup, but could be disabled by the user.

Rodrigo-Barros avatar Jun 04 '23 22:06 Rodrigo-Barros