-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Formatting does not work with read only file system #13847
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
Comments
@chrisrundlerfu Can you check if the TMP folder is available for writes? Also, check if the TMP environment variable is available. |
When I look at the permissions for the tmp directory in root it shows I ran printenv which shows TMPDIR=/var/folders/w7/1qvx38910775sll063b2vg0w0000gn/T/ so I looked at permissions for var/folders In the /var/folders/w7/1qvx38910775sll063b2vg0w0000gn/T/ folder there are some files for vscode, like |
I get the same issue when formatting an unsaved file |
We have a prototype formatter that can handle this over Language Server Protocol. This means we don't have to create a temporary file to use with black. Please see here for the prototype and try it out. psf/black#2883 When trying out the prototype please disable formatting with the python extension by setting |
Closing this in favor of #17918 |
Issue Type: Bug
When I try and format my python file I get the following error:
Failed to create a temporary file, Unable to write file '/Untitled-1.13264068d108c6901b3592ea654fcd57.tmp' (Unknown (FileSystemError): Error: EROFS: read-only file system, open '/Untitled-1.13264068d108c6901b3592ea654fcd57.tmp')
I am running a mac and format document works for other file types (e.g. json)
Extension version: 2020.8.106424
VS Code version: Code 1.48.2 (a0479759d6e9ea56afa657e454193f72aef85bd0, 2020-08-25T10:09:08.021Z)
OS version: Darwin x64 19.6.0
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: