Coder Social home page Coder Social logo

Comments (8)

D3vil0p3r avatar D3vil0p3r commented on May 24, 2024 1

I applied the suggested workaround and then I get a long output containing something like:

(command.CommandList
  children: [
    (command.ShAssignment
      left: <Id.Lit_VarLike 'QUERIES='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'QUERIES='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'QUERIES='> name:QUERIES)
          op: assign_op.Equal
          rhs: {<50>}
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'DOMAIN='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'DOMAIN='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'DOMAIN='> name:DOMAIN)
          op: assign_op.Equal
          rhs: {($ Id.VSub_Number 1)}
        )
      ]
      redirects: []
    )
    ....
    ```
    but when I run again `resholve ./lbd --interpreter none --path ""`, I still get the error of the first post.

from resholve.

abathur avatar abathur commented on May 24, 2024 1

Ok. The long output is just a parse tree (good sign), so maybe there's an actual fix we'll need.

I'll take a look at updating the version resholve uses. Sometimes these are quick and trivial, and sometimes they mean a bit of testing and refactoring. Won't know about timeline until I get my hands dirty.

from resholve.

abathur avatar abathur commented on May 24, 2024

I'm not sure I'll have access to a computer today to poke at this, but if you have a little time a good place to start is with seeing if oil's osh shell can parse it.

You can just try the one in nixpkgs. I think maybe like nix-shell -p oil --command "osh -n lbd" might work.

If that works, it's possible this is something oil's alresdy caught and fixed in the meantime. If not, we may need to figure out where it's going awry in order to check upstream for a matching issue or open our own. (if there's already one open, it may also have a recommended workaround and some notes on whether this is a quick fix or not.)

from resholve.

D3vil0p3r avatar D3vil0p3r commented on May 24, 2024

The output of that command is:

   if [ $[ $D1 * 3600 + $D2 * 60 + $D3 ] -lt $D4 ]
           ^~~
lbd:78: In expressions, remove $ and use `D1`, or sometimes "$D1"

from resholve.

abathur avatar abathur commented on May 24, 2024

Sounds like maybe its a wontfix parse issue with a preferred workaround that is now being correctly caught/messaged in newer osh versions.

Can you try to get that workaround working against osh and then see if it'll run through resholve?

from resholve.

abathur avatar abathur commented on May 24, 2024

I did take a swing at updating from 0.14.x to 0.15.x this past weekend, but this update isn't trivial. Upstream has refactored how exceptions work, and resholve reuses that behavior to get ~free location indicators on its exceptions--I'll need to take a little time to understand what's changed and how to track it.

from resholve.

abathur avatar abathur commented on May 24, 2024

I think I have updates to 0.20.0 worked out and pushed to https://github.com/abathur/resholve/tree/update_oil (current head: 05b25ce).

Can you confirm whether this works on your script?

from resholve.

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.