Open FabriceSalvaire opened 7 months ago
I also got issues with a __TRASH__
directory...
It is a horrible design to scan everything in the root directory.
It is impossible to have unused files since npm build
will throw zillion of errors !
Another issue with Emacs .#FILENAME
ENOENT: no such file or directory, stat '/home/fabrice/astro-test/blog/src/pages/blog/.#[...page].astro'
Stack trace:
at Object.statSync (node:fs:1676:25)
at walk (file:///home/fabrice/astro-test/blog/node_modules/astro/dist/core/routing/manifest/create.js:241:9)
at createRouteManifest (file:///home/fabrice/astro-test/blog/node_modules/astro/dist/core/routing/manifest/create.js:413:27)
at async AstroBuilder.run (file:///home/fabrice/astro-test/blog/node_modules/astro/dist/core/build/index.js:167:23)
at async build (file:///home/fabrice/astro-test/blog/node_modules/astro/dist/cli/build/index.js:20:3)
> ll /home/fabrice/astro-test/blog/src/pages/blog/.#\[...page\].astro
... /home/fabrice/astro-test/blog/src/pages/blog/.#[...page].astro -> fabrice@isis.home.24461:1706615895
fabrice@isis:~/astro-test/blog>
I guess Astro's pages detection could try and detect those special file names, and ignore them as pages. But do you know why emacs is generating them? It seems like an odd thing to do.
They're backup files, Emacs store the last 9 versions of the file in ~
files and the #file#
one is a temp version of the file currently operated on, when you save it overwrites the normal file with the content of this temp one (presumably in an effort to ensure atomic saves?)
Vim has a similar system, but no modern editors do, as far as I know at least.
@Princesseuh you could try (setq create-lockfiles nil)
maybe?
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Emacs editor generates
FILENAME~
and#FILENAME#
files.It generates messages like
I tried
But it doesn't work. Not sure the regexp is right, I tried several possibilities...
What's the expected result?
Astro should ignore thoses files.
Link to Minimal Reproducible Example
irrelevant
Participation