Comments (8)
I wonder why that would be: is it this https://superuser.com/questions/1069055/what-is-the-function-of-question-marks-in-file-system-paths-in-windows-registry ?
I have seen the ?\C:... path used a lot to get access to files/paths longer than 260 characters. At least when dealing with Win32 API calls. (...)
It could also be a bug in Cargo / Rust tooling in how it populates those env vars on Windows?
from pest.
from pest.
Maybe a proper fix is to use something like normpath: wasmCloud/wasmCloud@8b876f1 ?
from pest.
or call canonicalize on env!("CARGO_MANIFEST_DIR")
and then use .push
(es) to construct the path?
from pest.
or call canonicalize on
env!("CARGO_MANIFEST_DIR")
and then use.push
(es) to construct the path?
I tried with canonicalize but it has the same problem, as soon as you enter relative path with the prefix "canonicalize" it simply does not find the file. And if the prefix is already there, it won't be removed.
I also don't understand that if I create a simple project with a build.rs
and load the CARGO_MANIFEST_DIR
path is not prepended with \\?\
, but that's another story (tested just in case, if was because the Cargo.toml
rustc version but it seems only happens when running from a different directory).
normpath
sounds like the best approach probably at this moment
from pest.
Related Issues (20)
- Trigger clippy: empty doc comment HOT 3
- perf regression in 2.7.9 HOT 6
- Whitespace ignored between rules HOT 1
- What does `outer` and `inner` do?
- Pairs has peek() but does not implement Peekable and has a different interface
- hebrew not working properly HOT 1
- Expected operator, found EOI HOT 3
- Predicate failure doesn't cause expression failure HOT 5
- Feature request: Option to use tags to improve error messages
- WHITESPACE and COMMENT require $ to be compound HOT 4
- Async Pest HOT 2
- Very unhelpful error messages for unmapped prefix operators in pratt parsers
- Suggestion: Expose a getter function for LineIndex HOT 3
- Tags on rules that can yield more than one pair
- Wrong tag associated with expression?
- Bug when matching brackets
- `Pairs` can be made with mismatched input `str` and `Vec<QueueableToken>` using `pest::state` HOT 1
- docs(book): documentation is missing for `ASCII` HOT 2
- Document panics
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 pest.