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

TLA+ CommunityModules and vscode-tlaplus #249

Open
lemmy opened this issue Feb 11, 2022 · 1 comment
Open

TLA+ CommunityModules and vscode-tlaplus #249

lemmy opened this issue Feb 11, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@lemmy
Copy link
Member

lemmy commented Feb 11, 2022

The popularity of the CommunityModules warrants that we bundle (or otherwise) include its jar in the vscode extension.

@lemmy lemmy transferred this issue from tlaplus/CommunityModules Feb 14, 2022
@lemmy lemmy added the bug Something isn't working label Feb 14, 2022
@lemmy lemmy changed the title Range not working in REPL CommunityModules not working in REPL Feb 14, 2022
@lemmy lemmy changed the title CommunityModules not working in REPL Bundle CommunityModules as part of extension Feb 14, 2022
@lemmy lemmy added enhancement New feature or request and removed bug Something isn't working labels Feb 14, 2022
@ZacAttack
Copy link

ZacAttack commented May 5, 2022

Community Modules in vscode can be enabled with the following steps:

  1. Download the CommunityModules.jar and CommunityModules-deps.jar from the CommunityModules release page. Be sure to save these jars to a path that vscode has access to (otherwise it fails silently).
  2. Download the prerelease version of tla2tools.jar from the release page. Other releases have some issues similar to whats described here.
  3. In vscode, go to the settings editor and from there go to Extensions->TLA+. In the Tlaplus › Java: Options field, add: -cp /path/to/jars/CommunityModules.jar:/path/to/jars/CommunityModules-deps.jar:/path/to/jars/tla2tools.jar

Screen Shot 2022-05-05 at 1 22 47 PM

  1. You can additionally specify your java path here if you have multiple versions of java installed. You must have a java version greater then 9 otherwise you will get other errors.
  2. Run check model to verify that everything loads properly. You should be now able to use CommunityModules in your spec!

@lemmy lemmy changed the title Bundle CommunityModules as part of extension TLA+ CommunityModules and vscode-tlaplus May 5, 2022
@lemmy lemmy pinned this issue May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants