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

Create new module command not found #269

Open
CES-dengzeyuan opened this issue Sep 15, 2022 · 11 comments
Open

Create new module command not found #269

CES-dengzeyuan opened this issue Sep 15, 2022 · 11 comments
Labels
enhancement New feature or request

Comments

@CES-dengzeyuan
Copy link

CES-dengzeyuan commented Sep 15, 2022

Hi - When I followed the Getting Started, I couldn't find either "Create new module (TLA+)" or "Create PlusCal block (TLA+)" snippet from the drop-down list.

截屏2022-09-15 14 32 45

So I wonder how can I get/generate a program demo before I go ahead.

Thanks a lot.

@nano-o
Copy link

nano-o commented Apr 5, 2023

This indeed seems to be confusing for new users.

@lemmy
Copy link
Member

lemmy commented Apr 5, 2023

Yes, this is annoying. It looks like the trouble you're facing might be because VSCode loads the TLA+ extension only after opening a .tla file. So, when you have a fresh workspace without any .tla files, the TLA+ extension isn't activated, and that's why the VSCode command emmet doesn't display the TLA+ commands.

@nano-o
Copy link

nano-o commented Apr 5, 2023

Those commands also don't appear in the command menu even from a loaded tla file on my setup. I'm using the nightly version of the extension.

@lemmy
Copy link
Member

lemmy commented Apr 5, 2023

Is the editor with the .tla file VSCode's active editor?

@nano-o
Copy link

nano-o commented Apr 5, 2023

I think so. That's the only open file and my cursor is in it. It says TLA+ at the bottom right of the window. But then I don't know much about VS Code.

@lemmy
Copy link
Member

lemmy commented Apr 5, 2023

Can you post a screenshot of the VSCode window with the command emmet expanded?

@nano-o
Copy link

nano-o commented Apr 5, 2023

VS Code Screenshot from 2023-04-05 11-38-01

@nano-o
Copy link

nano-o commented Apr 5, 2023

Is that what you mean by "command emmet expanded"?

@lemmy
Copy link
Member

lemmy commented Apr 5, 2023

Thanks, yes, that's what I meant. In the screenshot, the TLA+ commands do show up. When are they missing?

@lemmy lemmy added the enhancement New feature or request label Apr 5, 2023
@nano-o
Copy link

nano-o commented Apr 5, 2023

That's what missing: "Create new module (TLA+)" or "Create PlusCal block (TLA+)"

@lemmy
Copy link
Member

lemmy commented Apr 5, 2023

Ohh, those two commands also don't show up for me. I have the nightly build of the VSCode extension (not the released one) installed.

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

3 participants