Comments (8)
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.
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.
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.
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.
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.
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.
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)
- `AttributeError` when resolving `install --strip-program` HOT 2
- `AttributeError` when resolving `sort --compress-program=`
- exercer rule not being applied HOT 3
- support mkDerivation `finalAttrs` call pattern? HOT 1
- Function argument substitution failed HOT 2
- Build error on package using resholve HOT 1
- failure to correctly resolve absolute paths shadowed by builtins HOT 2
- Port to python3? HOT 4
- Resholve doesnโt understand `sudo --verison` HOT 4
- Issue parsing zsh nested expansion. HOT 1
- Port to Python 3 HOT 8
- when invoked with multiple scripts, `--prologue` only applies to the first HOT 2
- handling commands that run other commands in a different path-space (different system, chroot, vm, etc.) HOT 2
- position indicators may be wrong in tab-indented scripts
- look for "unresholved" paths
- doublecheck coproc and execer check
- Missing subsequent `! type <command>` replacements HOT 4
- `make ci` fails to `touch` files HOT 4
- `make update` fails to find `../../nixpkgs` HOT 2
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 resholve.