Skip to content

Uninformative error message from qltest when there are no source files #3406

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

Closed
ghost opened this issue May 4, 2020 · 1 comment
Closed
Labels
question Further information is requested

Comments

@ghost
Copy link

ghost commented May 4, 2020

I ran odasa qltest on a test directory in which I'd neglected to include any source files.

Expected: The extractor should fail with a message like "There are no source files in this test directory."

Actual: The extractor fails with a null pointer exception.

[1/3] Extraction failed in D:\dev\codeql-2\msft\cpp\ql\test\query-tests\Maintainability\CopyrightNoticeCommentsExpertise (extraction: 175ms)
java.lang.NullPointerException
java.nio.file.Files.provider(Files.java:97)
java.nio.file.Files.exists(Files.java:2385)
com.semmle.api.QueryEngine.createDatabase(QueryEngine.java:486)
com.semmle.odasa.qltest.TestDirectory.createDatabase(TestDirectory.java:483)
com.semmle.odasa.qltest.TestDirectory.importTrap(TestDirectory.java:583)
com.semmle.odasa.qltest.TestDirectory.extract(TestDirectory.java:310)
com.semmle.odasa.actions.Qltest.lambda$executeTests$0(Qltest.java:230)
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
java.util.concurrent.FutureTask.run(FutureTask.java:266)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)

Let me know if this isn't the right repo to file this in.

@ghost ghost added the question Further information is requested label May 4, 2020
@jketema
Copy link
Contributor

jketema commented May 22, 2025

Apologies for this issue going unnoticed. odasa is no longer supported. Closing this issue.

@jketema jketema closed this as completed May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy