Comments (13)
Hey @mockdeep, thanks for using haml-lint
.
This error is likely caused by a lint being reported without a filename or a line. I'm not sure what conditions are required in order to this problem to occur.
If you could figure out which file or subset of files triggers this error and post those, I'd be able to reproduce the problem. Alternatively, if this is happening in an open source project, I can clone it locally and investigate.
from haml-lint.
Hi @sds! So I dug a little deeper and there are some pretty simple views causing this error:
%h1 Preview your doc!!!
= link_to 'Next', next_wizard_path, :class => 'btn btn-primary'
We are using wicked for wizard functionality, and most of the views that cause errors call Wicked helpers, but this one doesn't:
%h1 Upload Doc
= render 'components/doc_uploader', :object => @campaign_wizard
In this case, @campaign_wizard
is just a plain ruby object that doesn't call any Wicked methods.
from haml-lint.
I have the same error - I thought its just a problem of my local settings.
from haml-lint.
Actually, I tried pointing to the github version in my Gemfile, and it works fine. Same with local copy. Maybe we just need another gem release?
from haml-lint.
With the github-Version its running fine - can you confirm this. Its (only) the last released version which is causing this error.
from haml-lint.
Ok - we have the same result. ;)
from haml-lint.
I've released version 0.5.0. Let me know if you still see this issue.
Thanks for the report!
from haml-lint.
I am running 0.5.0 and am seeing this issue.
from haml-lint.
@trobrock Can you supply a HAML code fragment that reproduces this issue?
from haml-lint.
We have a ton of haml here, I'm going through file by file right now to see which one breaks it, unless you know an easier way to find the issue.
from haml-lint.
@trobrock what worked for me was to start by running it on sub-folders
first and then narrow it down from there.
On Apr 30, 2014 11:04 AM, "Trae Robrock" [email protected] wrote:
We have a ton of haml here, I'm going through file by file right now to
see which one breaks it, unless you know an easier way to find the issue.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/10#issuecomment-41828734
.
from haml-lint.
= render :partial => "dashboard/tour/steps"
- content_for(:onready) do
:plain
outright.bootstrapTour.tour.addSteps([
#{"{
orphan : true,
title : 'Get paid from anywhere, on any device',
content : function(){ return $('#getpaid').html(); },
animation : true
}," if @get_paid_tour }
]);
// opens the tour on /dashboard#resume_tour
if(window.location.hash == "#resume_tour" || !_.isNull(window.location.search.match(/resume_tour/))) {
window.location.hash = "";
outright.bootstrapTour.openTour(#{!!non_admin_sample_user?});
}
Seems to be the cuplrit
from haml-lint.
Sorry this took so long to get to, @trobrock.
Fixed in dd9b7ea. Thanks for your patience!
from haml-lint.
Related Issues (20)
- False positive Rails/HttpStatus HOT 2
- Failing spec on main branch HOT 2
- Add support to Haml 6.2
- `haml-lint:disable` is ignored when line breaks on commas are present
- Add `-s`/`--stdin` option support HOT 2
- Allow Haml 6.3 HOT 3
- Haml 6.2 actions are not listed among required checks HOT 1
- Failing spec on main (local environment, up to date rubocop)
- Issue with Rubocop `Layout/IndentationConsistency` interaction with haml comment blocks HOT 2
- Version 0.53.0 has not been pushed to Rubygems HOT 1
- RuboCop: Lint/Syntax: unexpected token tSYMBOL and kEND HOT 5
- 0.54.0: Too many files open HOT 4
- Layout/ArgumentAlignment - False positive? HOT 2
- Feature Suggestion: require strict locals
- Possible false positives with Rails/FindEach
- Lint/Syntax: unexpected token kDO_BLOCK | Lint/Syntax: unexpected token kEND HOT 1
- False positive with Layout/SpaceInsideParens for multi-line attributes HOT 7
- Allow multiple reporters?
- False positive on the `UnnecessaryStringOutput` cop HOT 1
- Style/IfUnlessModifier - Potential False Positive as of 0.46.0 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haml-lint.