Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception thrown if trying to validate a file that has empty whitespace followed after the escape character #79

Closed
rcjsuen opened this issue Jul 11, 2020 · 0 comments
Assignees
Labels

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented Jul 11, 2020

FROM alpine
COPY a b \
\ 
/dir
$ docker run -v `pwd`/Dockerfile:/Dockerfile rcjsuen/dockerfile-utils lint /Dockerfile
/dockerfile-utils/node_modules/dockerfile-ast/node_modules/vscode-languageserver-types/lib/umd/main.js:54
                throw new Error("Range#create called with invalid arguments[" + one + ", " + two + ", " + three + ", " + four + "]");
                ^

Error: Range#create called with invalid arguments[null, [object Object], undefined, undefined]
    at Object.create (/dockerfile-utils/node_modules/dockerfile-ast/node_modules/vscode-languageserver-types/lib/umd/main.js:54:23)
    at Copy.getArgumentsRanges (/dockerfile-utils/node_modules/dockerfile-ast/lib/instruction.js:82:81)
    at Copy.getArgumentsContent (/dockerfile-utils/node_modules/dockerfile-ast/lib/instruction.js:163:27)
    at Validator.checkJSONQuotes (/dockerfile-utils/lib/dockerValidator.js:1043:39)
    at Validator.validateInstruction (/dockerfile-utils/lib/dockerValidator.js:700:26)
    at Validator.validate (/dockerfile-utils/lib/dockerValidator.js:309:18)
    at Object.validate (/dockerfile-utils/lib/main.js:140:22)
    at validate (/dockerfile-utils/bin/dockerfile-utils:161:39)
    at Object.<anonymous> (/dockerfile-utils/bin/dockerfile-utils:35:5)
    at Module._compile (internal/modules/cjs/loader.js:1147:30)
@rcjsuen rcjsuen added the bug label Jul 11, 2020
@rcjsuen rcjsuen self-assigned this Jul 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant