question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Migrating from 0.9.10 to 0.10.2, forPackage does not honor full package name as filter?

See original GitHub issue

If I do this:

ConfigurationBuilder builder = new ConfigurationBuilder()
  .forPackages(packageNamePrefixes)
  .setScanners(
    Scanners.TypesAnnotated,
    Scanners.FieldsAnnotated,
    Scanners.MethodsAnnotated
  );

Internally, it seems to convert the package names to URL’s, and in the process loses crucial information about the package I’m interested in scanning.

If I only want to scan a subset of packages (let’s say hs.ddif.plugins.test.project) version 0.10.2 will now also find types in hs.ddif.plugins. Version 0.9.10 doesn’t do this – it correctly filters by the package given.

Is this intended? What’s the new way of achieving a package filter?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
hjohncommented, Nov 5, 2021

Thank you though for releasing 0.10.2 – I finally managed to upgrade from 0.9.10 and get rid of the guava dependency 😃

0reactions
hjohncommented, Nov 5, 2021

Thanks for that suggestion, integrated with some minor changes: https://github.com/hjohn/hs.ddif/commit/6495453c8d726b26b8e063fa11fd582d5d598958

Read more comments on GitHub >

github_iconTop Results From Across the Web

choco-wiki/ReleaseNotesChocoCli.md at master · chocolatey ...
Moving to "asInvoker" means that Chocolatey will not ask for elevated privileges prior to execution, so you will need to remember to do...
Read more >
Chocolatey 0.10.2
Chocolatey is software management automation for Windows that wraps installers, executables, zips, and scripts into compiled packages.
Read more >
Fully change package name including company domain
1) Open the project folder in Android Studio. · 2) Select app folder -> Right click, and select refactor. · 3) Click on...
Read more >
Bug listing with status RESOLVED with resolution INVALID as ...
... "Feedback system for package installs" status:RESOLVED resolution:INVALID ... Bug:13350 - ""My bugs" does not handle '+' in user names" status:RESOLVED ...
Read more >
f40f58bd92219adf1a42e4b8914...
new upstream version - fix a few tests so they do not need to execute gpg-agent ... 1.3-2 - package name with -fonts...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found