Git Product home page Git Product logo

Comments (13)

sds avatar sds commented on September 22, 2024

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.

mockdeep avatar mockdeep commented on September 22, 2024

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.

geniou avatar geniou commented on September 22, 2024

I have the same error - I thought its just a problem of my local settings.

from haml-lint.

mockdeep avatar mockdeep commented on September 22, 2024

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.

geniou avatar geniou commented on September 22, 2024

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.

geniou avatar geniou commented on September 22, 2024

Ok - we have the same result. ;)

from haml-lint.

sds avatar sds commented on September 22, 2024

I've released version 0.5.0. Let me know if you still see this issue.

Thanks for the report!

from haml-lint.

trobrock avatar trobrock commented on September 22, 2024

I am running 0.5.0 and am seeing this issue.

from haml-lint.

sds avatar sds commented on September 22, 2024

@trobrock Can you supply a HAML code fragment that reproduces this issue?

from haml-lint.

trobrock avatar trobrock commented on September 22, 2024

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.

mockdeep avatar mockdeep commented on September 22, 2024

@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.

trobrock avatar trobrock commented on September 22, 2024
= 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.

sds avatar sds commented on September 22, 2024

Sorry this took so long to get to, @trobrock.

Fixed in dd9b7ea. Thanks for your patience!

from haml-lint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.