-
Notifications
You must be signed in to change notification settings - Fork 37
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
Extension 'Black Formatter' is configured as formatter but it cannot format 'Python'-files #307
Comments
@SingL3 Are you using format on save or did you have a portion of the text selected when trying to format? Are you using some shortcut to format? |
Please share your workspace and user settings. |
@karthiknadig def get_prompt(
message: str, chat_history: list[tuple[str, str]], system_prompt: str
) -> str:
texts = [f'<s>[INST] <<SYS>>\n{system_prompt}\n<</SYS>>\n\n']
# The first user input is _not_ stripped
do_strip = False
for user_input, response in chat_history:
user_input = user_input.strip() if do_strip else user_input
do_strip = True
texts.append(f'{user_input} [/INST] {response.strip()} </s><s>[INST] ')
message = message.strip() if do_strip else message
texts.append(f'{message} [/INST]')
return ''.join(texts) User setting(remote): {
"python.defaultInterpreterPath": "/mnt/data/conda/envs/oasst/bin/python",
"python.analysis.extraPaths": [
"${python.pythonPath}/../../lib/python3.(8|9|10|11)/site-packages",
],
"python.experiments.enabled": false,
"editor.formatOnType": true,
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnType": true
},
"python.formatting.provider": "none",
} |
@SingL3 This would be a feature request on |
Vscode info:
I am using this extension in remote machine with Remote extension, I install this extension and it work well the first time. However now it just doesnt work. I have checked the console output and there is only log from connecting remote.

Here is the console in dev tools:
The text was updated successfully, but these errors were encountered: