question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Emmet is not working as expected

See original GitHub issue

Can this be because of this plugin? I’m using Goland.

I haven’t found out when exaclty it doesn’t work. It never works inside another tag. Sometimes it doesn’t even work on the root level.

Changing the File type of .svelte files back to HTML makes everything work as expected again.

emmet

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
unlocomqxcommented, Jul 29, 2019

I was able to reproduce, It’s not a big deal really but I will try to debug it sometime nonetheless

1reaction
tomblachutcommented, Jul 28, 2019

In #40 I’ve changed how whitespace is parsed.

Now it’s delegated to HTML side with notable exception of continuous whitespace between Svelte mustaches and first non-whitespace HTML character, it’s required for current (bad) implementation of formatter to work.

Anyway that fixed Emmet partially.

image

image

Preview still does not work with the last character in a file. Add one space after Emmet shorthand and everything starts to work. Anyway you can expand shorthand and it works in both cases.

image

Remaining unsolved issue is shorthand directly after Svelte mustache. I suspect this is connected to mentioned whitespace handling and by extension formatter. Edit. No it doesn’t. Mustaches live in different PSI, that must be an issue. image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio Code Emmet not working - Stack Overflow
With newer versions of VSCode, you can open up settings by selecting Code > Preferences > Settings and then search for "Emmet: Include...
Read more >
Emmet not working in VS Code ?— Here's how you can fix this ...
Step 3: Click on the “Edit in settings:json” hyperlink to edit the settings in JSON format. Step 5: Save the file. Now if...
Read more >
Emmet not working · Issue #958 · microsoft/vscode - GitHub
I just updated visual studio code and as a result I see that emmet is not working now. in previous releases, emmet did...
Read more >
Emmet - Package Control
If you're unable to find Emmet package on last step or installed package doesn't work as expected, restart Sublime Text and try again...
Read more >
Emmet Not Working in Visual Studio Code - YouTube
Emmet Not Working in Visual Studio Code | Emmet Solution | How to fix Emmet Not Working | Hindi | HiI Am Mridul....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found