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

Feat: Import require/inherit in Bash and Python context #239

Conversation

idillon-sfl
Copy link
Member

@idillon-sfl idillon-sfl commented Jun 11, 2024

This adds "definition" functionality to variables that are required, inherited or included into Bash or Python regions. It also filter out Pylance's reportUndefinedVariable when the variable is actually defined. It even removes the requirement to make a new scan for filtering out shellchecks SC2154 diagnostics when the variable actually exist.

Lets take examples from the file meta/recipes-core/busybox/busybox.inc in Poky. After, a scan, find_cfgs (python region) won't appear anymore as undefined, and clicking on it will bring to its definition in meta/classes-recipe/cml1.bbclass. cml1_do_configure (shell region) will also bring to its definition when clicked.

@idillon-sfl idillon-sfl force-pushed the Feature-14214-import-require-inherit-bash-and-python-context-2 branch from d7bca83 to 29e665e Compare June 11, 2024 02:07
@idillon-sfl idillon-sfl marked this pull request as draft June 11, 2024 05:57
@idillon-sfl
Copy link
Member Author

sorry, should have checked the tests before calling everyone for review

@idillon-sfl idillon-sfl force-pushed the Feature-14214-import-require-inherit-bash-and-python-context-2 branch from cf08882 to c9ee01f Compare June 11, 2024 18:24
@idillon-sfl idillon-sfl marked this pull request as ready for review June 11, 2024 18:36
server/src/tree-sitter/analyzer.ts Outdated Show resolved Hide resolved
client/src/language/diagnosticsSupport.ts Show resolved Hide resolved
client/src/language/diagnosticsSupport.ts Show resolved Hide resolved
integration-tests/src/tests/rename.test.ts Outdated Show resolved Hide resolved
@idillon-sfl idillon-sfl force-pushed the Feature-14214-import-require-inherit-bash-and-python-context-2 branch from c9ee01f to be45ede Compare June 17, 2024 14:18
@idillon-sfl idillon-sfl force-pushed the Feature-14214-import-require-inherit-bash-and-python-context-2 branch from 54b272c to ed463c6 Compare June 18, 2024 21:20
@idillon-sfl idillon-sfl merged commit 9a2ae40 into yoctoproject:staging Jun 19, 2024
5 checks passed
@idillon-sfl idillon-sfl deleted the Feature-14214-import-require-inherit-bash-and-python-context-2 branch June 19, 2024 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants