liuderchi / ide-html

:atom: Atom-IDE for HTML, Go Template, Mustache and other Templates
https://atom.io/packages/ide-html
MIT License
20 stars 5 forks source link

Does not work for .html file extension #32

Closed hktt closed 5 years ago

hktt commented 5 years ago

Description

IDE-HTML not work for me when I use a file with .html extension. If I change the file extension to .htm it works just fine.

Expected Behavior

HTML Outline in Outline View should work with .html file extension Quick navigation by clicking should work with .html file extension Quick tag selection by double clicking should work with .html file extension Searching by entering tag name or class name should work with .html file extension

Actual Behavior

When using .html file i.e. index.html: Outline gives an error that No Outline available, HTML files do not currently support outlines. install and IDE package first. Quick navigation does not do anything Quick tag selection does not do anything

Possible Fix

Don't know. I am a newbie, sorry!

Steps to Reproduce

  1. Open a file say index.htm
  2. Open Document Outline
  3. Change the filename to index.html
  4. Reopen the file to reload Outline
  5. Outline shows the error message

Context

I need to use .html extension files for my project. I can temporarily change the extension to ".htm" and resume the work, but yields unmanageable codebase.

Your Environment

hktt commented 5 years ago

After reinstallation it worked fine. I may have messed up some config.

hktt commented 5 years ago

I found the issue. I had turned on "Use Tree Sitter Parsers", which is not supported in ide-html 0.4.2. I would suggest to add this in to FAQ.