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.

Include folders to import

See original GitHub issue

importing quarkus repo I end up with an almost impossible vscode which keeps waiting on maven to refresh on every java related action.

Was suggested to use java.import.exclusions to tell which projects to not import.

That’s rather tedious and I was realizing if I could just do java.import.exclusions=** and then `java.import.inclusions=integration-tests/maven/,devtools/’ then I would be good.

As opposed to listing ~300 individual lines in exclusion.

Pretty please 😃

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
maxandersencommented, Oct 2, 2019

Alternatively adopt the convention/format of things like .gitignore/.dockerignore where a “!” negates the pattern. see https://git-scm.com/docs/gitignore#_pattern_format

Then it would be: java.import.exclusions=foo/bar/**,!foo/**

1reaction
fbriconcommented, Oct 2, 2019

@maxandersen as usual with that kind of thing, there’s always the problem of who takes precedence. In your exemple java.import.inclusions takes precedence over java.import.exclusions, to a point where it would not even be necessary to define java.import.exclusions=** But then, what if someone needed to include=foo/**, but exclude=foo/bar/** ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Importing files from different folder - python - Stack Overflow
When importing a file, Python only searches the directory that the entry-point script is running from and sys.path which includes locations such as...
Read more >
Python – Import module from different directory - GeeksforGeeks
Method 1: Import module from different directory using the sys module. We can use sys.path to add the path of the new different...
Read more >
Python — How to Import Modules From Another Folder? - Finxter
The most Pythonic way to import a module from another folder is to place an empty file named __init__.py into that folder and...
Read more >
Create import folders - Evernote Help & Learning
Files you place into an import folder are automatically added and synced to your Evernote ... You can choose to include subfolders in...
Read more >
Importing files from different folder - YouTube
Thanks for watching this video !Don't forget to drop a like and share it with your friends !Subscribe to the Hackanon's channel for...
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