Description
openedon Mar 31, 2021
I'm receiving the following error for some, but not most, files in my project.
(node:26484) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, realpath 'C:\workspaces\WebProduct\Features\MF-QBvN2\Source\Instructor\QuestionBuilder\QuestionBuilder.Web\Scripts\QuestionBuilder\Bank\Models\composite-permissions.service.js'
at Function.realpathSync.native (fs.js:1684:3)
at Function.native (electron/js2c/asar_bundle.js:5:4556)
at c:\Users\usernam\.vscode\extensions\dbaeumer.vscode-eslint-2.1.19\server\out\eslintServer.js:1:14128
at I (c:\Users\usernam\.vscode\extensions\dbaeumer.vscode-eslint-2.1.19\server\out\eslintServer.js:1:14188)
at c:\Users\usernam\.vscode\extensions\dbaeumer.vscode-eslint-2.1.19\server\out\eslintServer.js:1:16188
(node:26484) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 290)
Note that failure is silent. I have to open the Output tab to see that anything's wrong. I would not have known except that I noticed issues eslint should have caught.
(Actual user name in paths changed to protect the innocent.)
Files with this error (not necessarily exhaustive, but all I can find atm):
C:\workspaces\WebProduct\Features\MF-QBvN2\Source\Instructor\QuestionBuilder\QuestionBuilder.Web\Scripts\QuestionBuilder\Bank\Models\cache.service.js
C:\workspaces\WebProduct\Features\MF-QBvN2\Source\Instructor\QuestionBuilder\QuestionBuilder.Web\Scripts\QuestionBuilder\Bank\Models\composite-permissions.service.js
Works from the same parent folder:
C:\workspaces\WebProduct\Features\MF-QBvN2\Source\Instructor\QuestionBuilder\QuestionBuilder.Web\Scripts\QuestionBuilder\Bank\Models\folder-store.service.js
C:\workspaces\WebProduct\Features\MF-QBvN2\Source\Instructor\QuestionBuilder\QuestionBuilder.Web\Scripts\QuestionBuilder\Bank\Models\folder.js
The "no such file or directory" makes me suspect it's not the contents of the files that's the issue, which is why I'm giving paths here.
But additionally note that If I move a file that won't lint to, eg, c:\temp\composite-permissions.service.js
, it lints as expected. Another piece of evidence that it's not content?
If I execute eslint C:\workspaces\WebProduct\Features\MF-QBvN2\Source\Instructor\QuestionBuilder\QuestionBuilder.Web\Scripts\QuestionBuilder\Bank\Models\composite-permissions.service.js
from a command prompt in the C:\Users\usernam
directory, the file lints as expected.
Is there a limit to the characters in a file path specific to the extension? Anything else I can send?