You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting a strange bug. If I create a task and enable the lock, but the class name is in camel case, an error is thrown. It seems there is an erroneous conversion of class name into lock file name.
For example, here is the same task from the explanation video in the docs, but the name is TaskToCheckSomething instead of Test:
This will throw an invalid argument error, as it is trying to create a lock file with the name \tmpLock\task:to:check:something.lock'.
If I change the class name to Tasktochecksomething the error does not occur.
Package version
2.0.2
Error Message & Stack Trace
Start the program with node ace serve --watch in the console and:
[1628704860016] FATAL (project-name/19356 on DESKTOP-XXXXX): "uncaughtException" detected. Process will shutdown
Error: EINVAL: invalid argument, mkdir 'C:\Path\to\project\project-name\tmpLock\task:to:check:something.lock'
[ warn ] Underlying HTTP server died with "1 code"
Relevant Information
Adonis 5.1.0
The text was updated successfully, but these errors were encountered:
Description
I'm getting a strange bug. If I create a task and enable the lock, but the class name is in camel case, an error is thrown. It seems there is an erroneous conversion of class name into lock file name.
For example, here is the same task from the explanation video in the docs, but the name is
TaskToCheckSomething
instead ofTest
:This will throw an invalid argument error, as it is trying to create a lock file with the name
\tmpLock\task:to:check:something.lock'
.If I change the class name to Tasktochecksomething the error does not occur.
Package version
2.0.2
Error Message & Stack Trace
Start the program with
node ace serve --watch
in the console and:Relevant Information
Adonis 5.1.0
The text was updated successfully, but these errors were encountered: