prettier / plugin-haml Goto Github PK
View Code? Open in Web Editor NEWPlugin for the HAML template language
License: MIT License
Plugin for the HAML template language
License: MIT License
Hey!
First off, thank you so much for this plugin, as it makes developing in HAML a breeze.
I opened this issue because I encountered several problems during installation, some of them I don’t really know where they come from. I managed to hack my way through to a solution, which I will post here also in case it helps someone else out there.
Implicit haml
requirement
This line
Line 4 in 9276067
is an implicit requirement on the haml
gem. That raised the following error at runtime in VSCode:
`require': cannot load such file -- haml (LoadError)
As this plugin is supposed to, well, work with haml, one could think that the requirement will always be fulfilled. However that was not the case for me. That brings me to my second issue.
VSCode is not using my rbenv
version of ruby
The VSCode stacktrace was mentioning the following path for Ruby when using this plugin /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
, which is the OSX default one and not the one used by my shell, development environment or otherwise as all of those are managed by rbenv.
I don’t know why that is, but that’s the reason why haml
wasn’t installed (as I never use the system version of ruby).
The (admittedly dirty) fix to my issue was then to run the following command:
sudo /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/gem install haml
I think finding a way to have the plugin use the “correct” path to ruby for rbenv users would solve all this.
Feel free to close this issue if it is out of scope of the plugin (I don’t have a clue what’s going on. Otherwise, I’d be happy to help in any way I can!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.