I'm attempting to use Vale for documentation in a Node.js project. I have several NPM packages that install dictionaries, which means that the dictionaries don't exist in a single folder.
In my project, I created a new folder dictionaries and then created symlinks inside that folder to the dictionaries in the NPM packages. Then I configured my Spelling style with dicpath: dictionaries. When I run vale, it crashes:
$ ls -l dictionaries
total 1744
lrwxr-xr-x 1 eskwayrd staff 26 23 Mar 16:51 en_US.dic@ -> ../node_modules/dictionary-en/index.dic
lrwxr-xr-x 1 eskwayrd staff 26 23 Mar 16:51 en_US.aff@ -> ../node_modules/dictionary-en/index.aff
... additional symlinks to more dictionaries ...
If I replace the symlinks with copies of the dictionary files, vale runs successfully.
Supporting symlinks would be great, since I wouldn't have to worry about the copied dictionary files getting out of date should the package dictionaries get updated. Supporting multiple dicpath entries would also work.
vale 2.24.0 macOS Ventura 13.2.1 on an M1 Max.
I'm attempting to use Vale for documentation in a Node.js project. I have several NPM packages that install dictionaries, which means that the dictionaries don't exist in a single folder.
In my project, I created a new folder
dictionaries
and then created symlinks inside that folder to the dictionaries in the NPM packages. Then I configured my Spelling style withdicpath: dictionaries
. When I run vale, it crashes:The file structure of the dictionaries folder:
If I replace the symlinks with copies of the dictionary files, vale runs successfully.
Supporting symlinks would be great, since I wouldn't have to worry about the copied dictionary files getting out of date should the package dictionaries get updated. Supporting multiple
dicpath
entries would also work.