10

Scratch hasn't worked for the last two months, I can't edit files:

  • Thanks for correction. I'm new here :) i'll improve my next questions! – alonsocn Jul 4 '15 at 21:43
  • 3
    Can you supply some more information? Which part of the process fails? Can you open files? Is it saving that's the problem? Is it a file you own or a system file? Is there any output when you run scratch from Terminal? – Daniel Foré Jul 5 '15 at 1:31
  • @DanielForé Scratch works fine when I open an existing file, but the problem is only when I try write a new file (click on "+" button) – alonsocn Jul 6 '15 at 22:19
  • 1
    @DanielForé I reported a rather similar bug some days ago: bugs.launchpad.net/scratch/+bug/1471053. I use the terminal to attempt to generate a new file in Scratch and I get the same empty window as a result. See bug entry for more details. – Gabriel Jul 7 '15 at 18:55
  • Fixed. Solution in other thread [link][1] [1]: elementaryos.stackexchange.com/questions/1241/… – alonsocn Aug 14 '15 at 1:56
5

You can reinstall apps / packages with apt-get with the following command:

sudo apt-get install --reinstall scratch-text-editor
  • Doesn't work yet :( screenshot – alonsocn Jul 4 '15 at 21:36
  • @AlonsoCN that's working I think... Click the folder icon. – user3 Jul 4 '15 at 21:39
4

As it isn't working currently, a reinstall might not fix it.

To remove all config files (so Scratch settings and last opened files will be gone) as well, use these commands:

sudo apt-get remove --purge scratch-text-editor
sudo apt-get install scratch-text-editor
  • 1
    I think it should be scratch-text-editor, possible typo. – Suraj Jul 5 '15 at 4:53
  • I'm sorry, but --purge flag doesn't work. I still can't write a new file with Scratch :( – alonsocn Jul 6 '15 at 22:31
-2

Open terminal and run:

sudo apt-get install --reinstall pantheon-files

It will solve your problem

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.