Open Enteleform opened 5 years ago
Can you provide a reproduction repo?
@Shigma
The Getting Started page that I linked to from the official documentation literally just creates a "Hello World" bare-bones project. I can make a repo if you really need it, but the issue is pretty straightforward & will happen if you create a new VuePress project within a folder named [TimeStamp] Project Name
and then run the vuepress dev docs
command on a computer running Windows 10 (and possibly other OS's).
I can make a repo if you really need it.
I hope you'll take a look at our issue template. Repro is a must for your problem.
It happens to me in a Linux but without spaces in the directory name. just with the "]"
In my case is a PHP(Laravel) + Vue project which has a /vendor directory (something like node_modules but for composer) and it fails
~/vendor/symfony/finder/Tests/Fixtures/r+e.gex[c]a(r)s/...
./PHPAPP_directory/node_modules/snapdragon/lib/parser.js:473
throw new Error('no parsers registered for: "' + self.input.slice(0, 5) + '"');
Error: no parsers registered for: "]a(r)"
As the project already has all the documentation scattered into the source code with some API documents etc, I was trying to generate from the base directory of the project and use the docs directory for higher-level documents ... but this problem prevents me from having success.
I have no idea why anyone would want to name directories like this but ... unfortunately, it happens.
PS: It will be really useful to have the ability to ignore such dependencies directories, the same way as node_modules is ignored by default.
Bug report
Version
0.14.8
Steps to reproduce
Create a path on a Windows 10 machine:
C:\Some\Path\[2019-01-18] Some Project
Follow the Getting Started > Inside An Existing Project instructions from the VuePress documentation.
Execute the NPM script:
docs:dev
What is expected?
The development server will start.
What is actually happening?
The following exception is thrown. It seems to be caused by a lack of path quoting and/or escaping, although I'm not sure whether that is happening within the VuePress codebase or somewhere along the dependency chain.
Other relevant information