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 way to debug, or even see the output for commands and actions #145465

Closed
julie777 opened this issue Mar 19, 2022 · 3 comments
Closed

No way to debug, or even see the output for commands and actions #145465

julie777 opened this issue Mar 19, 2022 · 3 comments
Labels
*caused-by-extension Issue identified to be caused by an extension

Comments

@julie777
Copy link

No way to debug, or even see the output for commands and actions
Share the steps needed to reliably reproduce the problem. Please include actual and expected results. We support GitHub-flavored Markdown. You will be able to edit your issue and add screenshots when we preview it on GitHub.
I am seriously frustrated at the moment.
I just spent over 2 hours trying to get autopep8 to run when saving the file.
It ran fine when executed with ctrl-shift-p.

  1. I could see the flashing autopep8 in the status bar
  2. there was not output in any of the logs or the console window
    The result is that I kept changing settings and trying again because I couldn't get any feedback about the problem.

My final solution was to rename my user settings file so only the workspace settings would be used. This is not at all user friendly.

I previously submitted an issue about settings #136068 that describes the problems with settings.

CPUs Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz (12 x 2904)
GPU Status 2d_canvas: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: enabled opengl: enabled_on rasterization: enabled skia_renderer: enabled_on video_decode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled
Load (avg)
Memory (System) 31.74GB (8.77GB free)
Process Argv . --crash-reporter-id 99c965d6-d9dd-4aad-92e7-7948a08539da
Screen Reader no
VM 0%

Extension Author (truncated) Version
vscode-lark dir 0.1.0
comment-anchors Exo 1.9.6
auto-rename-tag for 0.1.10
Python-autopep8 him 1.0.2
volar joh 0.33.2
vscode-dependency-cruiser jua 0.0.1
vscode-format-context-menu lac 1.0.4
vscode-attrs-sorter mrm 2.1.0
vscode-duplicate mrm 1.2.1
python ms- 2022.2.1924087327
vscode-pylance ms- 2022.3.2
remote-containers ms- 0.224.3
remote-ssh ms- 0.76.1
remote-wsl ms- 0.64.2
vscode-remote-extensionpack ms- 0.21.0
(1 theme extensions excluded)

Preview on GitHub

@weinand
Copy link
Contributor

weinand commented Mar 20, 2022

/extPython

@weinand weinand removed their assignment Mar 20, 2022
@julie777
Copy link
Author

It looks like this is caused by the Python extension. Please file the issue to the Python extension repository. Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our issue reporting guidelines for more information.

Happy Coding!

First, I didn't think it was an extension problem. I though it was a vscode problem that there was no place for output.
Today I finally found the error output from trying to run autopep8 in The output pane after selecting Python in the dropdown. I'm not sure why I didn't see that before. Maybe I was too focused on logs.

As for deciding where to create the issue, when it comes to settings sometimes it is hard to tell what is part of an extension vs. used to control extensions.

I will give you an example to clarify what I mean. I finally got both formatting and sorting imports (formatting) working. It was easier once I found the output from running on save.

    "[python]": {
    "formatOnSave": true,
    
    "defaultFormatter": "ms-python.python",
        "formatting.provider": "autopep8",
    }
   "editor.codeActionsOnSave": {
         "source.organizeImports": true,
   },

Without the default formatter set to ms-python.python (an extension) it won't work. I finally found this sentence in defaultsettings
"Defines a default formatter which takes precedence over all other formatter settings."
It had previously been set on editor, but that won't work if I have non python files that need a different default formatter.
I moved it into a Python language block and that work.

However, when I moved codeActionsOnSave to the Python block it didn't work.

I haven't found any place in the documentation that tells me which settings are language settings and which aren't.
I already figured out that "python.editor.tabSize" doesn't work because tabSize is a language setting and python.x.y is not a language setting even though it starts with a language.

The amount of time I waste when moving from one project to another with different languages is terrible and frustrating.

Also, it seems like every issue I report gets quickly closed without discussion and without a solution.

@github-actions github-actions bot locked and limited conversation to collaborators May 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*caused-by-extension Issue identified to be caused by an extension
Projects
None yet
Development

No branches or pull requests

3 participants
@weinand @julie777 and others