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

Grammar access is always generated with all imports even if unnecessary #87

Closed
msujew opened this issue Jun 16, 2021 · 0 comments · Fixed by #93
Closed

Grammar access is always generated with all imports even if unnecessary #87

msujew opened this issue Jun 16, 2021 · 0 comments · Fixed by #93
Assignees
Labels
bug Something isn't working cli CLI related issue

Comments

@msujew
Copy link
Member

msujew commented Jun 16, 2021

Langium version: 0.0.0
Package name: langium-cli

Steps To Reproduce

  1. Create a language without any actions.
  2. Watch the linter/compiler error on an unused import.

The current behavior

The Action import is always generated in the grammar-access.ts even when it is not used.

The expected behavior

Only imports that are actually used are generated in the grammar-access.ts.

@msujew msujew added the bug Something isn't working label Jun 16, 2021
@msujew msujew self-assigned this Jun 16, 2021
@msujew msujew added the cli CLI related issue label Jun 16, 2021
@msujew msujew mentioned this issue Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli CLI related issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant