vscode-tlaplus icon indicating copy to clipboard operation
vscode-tlaplus copied to clipboard

Create new module command not found

Open CES-dengzeyuan opened this issue 2 years ago • 11 comments

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.

CES-dengzeyuan avatar Sep 15 '22 06:09 CES-dengzeyuan

This indeed seems to be confusing for new users.

nano-o avatar Apr 05 '23 17:04 nano-o

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.

lemmy avatar Apr 05 '23 17:04 lemmy

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.

nano-o avatar Apr 05 '23 18:04 nano-o

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

lemmy avatar Apr 05 '23 18:04 lemmy

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.

nano-o avatar Apr 05 '23 18:04 nano-o

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

lemmy avatar Apr 05 '23 18:04 lemmy

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

nano-o avatar Apr 05 '23 18:04 nano-o

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

nano-o avatar Apr 05 '23 18:04 nano-o

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

lemmy avatar Apr 05 '23 18:04 lemmy

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

nano-o avatar Apr 05 '23 18:04 nano-o

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.

lemmy avatar Apr 05 '23 19:04 lemmy