Until yesterday, using "Project" worked well: I do a "Projects/OpenProject",
select my ppr file, and then have my last open files restored and in the left
pane the directory tree for my project.
When I did this today, the left pane was empty and no files restored. Of course
I could reopen them one by one using "File/Open Special Recent", but the project
information seemed to be lost somehow.
I thought that the ppr file might be corrupt, so I looked at it. Indeed,
somewhere in the middle, I found the following section:
=====
..\gitwrkp5
epository\maven2\jtidy\jtidyaug2000r7-dev\jtidy-4aug2000r7-dev.
jar.sha1
..\gitwrkp5
epository\maven2\jtidy\jtidyaug2000r7-dev\jtidy-4aug2000r7-dev.
pom
..\gitwrkp5
epository\maven2\jtidy\jtidyaug2000r7-dev\jtidy-4aug2000r7-dev.
pom.sha1
-junit
-junit
-3.??1^@s^@??^Z^@New
Folder^@^@???r??^D^@??^A^@^@^@^@^@???r^@^@
^D^@??^A^@^@^@^@^@???^B^A^@^F^@equals^@^@???r^@^@^E^@??^A^@^@^@t^@???^B^A^@^F^@h
aving^@^@???r??^D^@??^A^@^@^@t^@???r^@^@^D^@??^A^@^@^@^@^@???^B^A^@^E^@write^@^@
^@???^B^A^@^D^@join^@^@^@^@???r^@^@^D^@??^A^@^@^@^@^@???^B^A^@^G^@suspend^@???r^
@^@^G^@??^A^@^@^@r^@???r??^G^@??^A^@^@^@t^@???^B^A^@^F^@factor^@^@???r??^G
..\gitwrkp5
epository\maven2\junit\junit.8.1\_remote.repositories
..\gitwrkp5
epository\maven2\junit\junit.8.1\junit-3.8.1.jar
=====
Note that the ^@ etc is the representation which my file pager uses
fornon-printable characters. There are be NUL bytes and other control
characters.
I erased these block of lines (the files don't have to be in my project anyway)
using a different text editor, and then started PsPad again, and now my project
is fine.
Now this leaves us with the question, how the project file could get corrupted.
I have kept a copy of the corrupt file, in case you need it for investigation.
Also, I wonder whether there is a way to exclude some subdirectories from the
project. The project file is huge (more than 600KB) and I would like to prune
some fairly large subdirectories from the project tree. Having a smaller project
file would also lower the probability that it gets corrupted.
--
Ronald Fischer (Germany)
<https://forum.pspad.com/read.php?4,70539,70539>
PSPad freeware editor https://www.pspad.com