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

Unable to Lint or Format #4346

Closed
nmagerko opened this issue Feb 10, 2019 · 1 comment
Closed

Unable to Lint or Format #4346

nmagerko opened this issue Feb 10, 2019 · 1 comment

Comments

@nmagerko
Copy link

Environment data

  • VS Code version: 1.31.0
  • Extension version: 2019.1.0
  • OS and version: Mac OS X 10.14.2
  • Python version: 3.7.0 (with Pip)
  • Type of virtual environment used: N/A
  • Relevant/affected Python packages and their versions: pylint-2.2.2, autopep8-1.4.3

Expected behaviour

On save, linting should occur by default. When inputting the proper control sequence (Option-Shift-F), formatting should occur.

Actual behaviour

Nothing. No errors or other output for linter (pylint) even when nonsensical code is put into document, formatter says "There is no document formatter for 'python'-files installed."

Steps to reproduce:

  1. Install ms-python.python extension
  2. Install autopep8 and pylint via pip
  3. Use the following config options:
{
    "python.pythonPath": "python3",
    "python.linting.pylintEnabled": true,
    "python.formatting.provider": "autopep8",
    "python.jediEnabled": false
}
  1. Open new document (note that I am mounting remote files via SSH-FS, but this should not matter) and write poorly formatted/incorrect code
  2. Save document and input Option-Shift-F

Logs

Output for Python in the Output panel:

Starting Microsoft Python language server.
Microsoft Python Language Server version 0.1.78.0
Initializing for /usr/local/bin/python3

Output from Console under the Developer Tools panel:

extensionHost.ts:325 [Extension Host] debugger listening on port 44764
TMSyntax.ts:50 Overwriting grammar scope name to file mapping for scope source.python.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/python/syntaxes/MagicPython.tmLanguage.json.
New grammar file: file:///Users/me/.vscode/extensions/magicstack.magicpython-1.1.0/grammars/MagicPython.tmLanguage
e.register @ TMSyntax.ts:50
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:3362 Extension Host
extensionHost.ts:232 Debugger listening on ws://127.0.0.1:44764/959667c9-c48d-4af3-a91f-fc7fca4528db
For help, see: https://nodejs.org/en/docs/inspector

console.ts:134 [Extension Host] �[34m[2019-02-10 14:44:00.664] [TRACE] extension - �[39minitialize
console.ts:134 [Extension Host] �[34m[2019-02-10 14:44:00.665] [TRACE] extension - �[39mgetConfiguration
console.ts:134 [Extension Host] �[36m[2019-02-10 14:44:00.665] [DEBUG] extension - �[39mgetConfiguration { onStartup: false,
  dontShowPortAlreadyInUseError: false,
  port: 52698,
  host: '127.0.0.1' }
log.ts:173   ERR spawn /usr/local/bin/git EACCES: Error: spawn /usr/local/bin/git EACCES
	at Process.ChildProcess._handle.onexit (internal/child_process.js:229:19)
	at onErrorNT (internal/child_process.js:406:16)
	at process._tickCallback (internal/process/next_tick.js:63:19)
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] (node:8035) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
t.log @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287
log.ts:161  INFO no standard startup: panel is active
@ghost ghost added the triage-needed Needs assignment to the proper sub-team label Feb 10, 2019
@d3r3kk
Copy link

d3r3kk commented Feb 11, 2019

Duplicate of #2938, we are using this for tracking all remote development issues.

@d3r3kk d3r3kk closed this as completed Feb 11, 2019
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Feb 11, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Mar 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants