File save path problems

#1

I recently found that any time I try to save a file in Atom, I get the alert, "path should be a path.relative() d string, but got “/Users/ME/FOLDER/file.html.” I’m on macOS High Sierra 10.13. Anyone else having a problem saving?

#2

Does this happen when you have started Atom from the command line with atom --safe?

#3

I haven’t tried that. I get the message when I open Atom like regular and use and of the “save” commands.

#4

What happens when you do try it?

#5

Running Atom in safe mode allows me to save files. Thanks! Any suggestions for further steps?

#6

It looks like I’m able to save files if the file’s containing folder is a project folder. I never had to do this before.

#7

I ran into the same issue when trying to edit Atom Config. Opening with --safe allowed me to save again.

What’s the next step to diagnose the cause?

#8

The manual has something to say about this situation:
https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode

1 Like
#9

Thanks! I managed to find the offending package and disable the setting that was causing the problem.

#10

Same thing happens to me.

#11

What did it turn out to be?

#12

For me it was prettier-atom. Disabling it let me save files again.

#13

Mine was also prettier-atom. Instead of disabling it altogether, I deselected the “format files on save” box. That worked.