Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Auto-select the closest @tact-lang/compiler to be used #47

Closed
novusnota opened this issue Feb 6, 2025 · 2 comments
Closed

Auto-select the closest @tact-lang/compiler to be used #47

novusnota opened this issue Feb 6, 2025 · 2 comments
Assignees
Labels
tact compiler Related to the `@tact-lang/compiler`
Milestone

Comments

@novusnota
Copy link
Member

novusnota commented Feb 6, 2025

  1. If there's one in the project, use that. To discover: npm list @tact-lang/compiler --json (will work with Node.js, since it bundles with an npm)
  2. If there's one globally, use that. To discover: npm list -g @tact-lang/compiler --json
  3. Finally, use the one bundled with an LSP

And prior to all of that, allow overriding the target path to the @tact-lang/compiler via a config option.

@novusnota novusnota added the tact compiler Related to the `@tact-lang/compiler` label Feb 6, 2025
@Danil42Russia
Copy link
Collaborator

You should not invoke commands like npm, there may be a chance where a user may not have npm but may have yarn or pnpm present.
The best option is to find it yourself in node_modules as other plugins do.

@novusnota
Copy link
Member Author

novusnota commented Feb 6, 2025

Well, npm is always there with Node.js even if user uses yarn (even within most contrainers). Besides, the global node_modules would be hard to find otherwise

@anton-trunov anton-trunov changed the title Auto-select the closest @tact-lang/compier to be used Auto-select the closest @tact-lang/compiler to be used Feb 10, 2025
@i582 i582 added this to the v0.2.0 milestone Feb 13, 2025
@i582 i582 self-assigned this Feb 15, 2025
i582 added a commit that referenced this issue Feb 15, 2025
@i582 i582 closed this as completed Feb 18, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
tact compiler Related to the `@tact-lang/compiler`
Projects
None yet
Development

No branches or pull requests

3 participants