Comments (4)
After narrowing it down, I think just switching to yaml
triggers this one. It's a different line than I wrote though. Mentioned it from memory, so it was incorrect.
import "test.yaml"
[2023-06-20T06:58:23Z TRACE nls::files] Parsed, checking types
[2023-06-20T06:58:23Z DEBUG nls::linearization] adding term: Null @ None
[2023-06-20T06:58:23Z DEBUG nls::linearization] linearizing
[2023-06-20T06:58:23Z DEBUG nls::linearization] unresolved references: []
[2023-06-20T06:58:23Z DEBUG nls::linearization] adding term: ResolvedImport(FileId(4)) @ Original(RawSpan { src_id: FileId(3), start: ByteIndex(1), end: ByteIndex(19) })
thread 'main' panicked at 'TermPos::unwrap', lsp/nls/src/linearization/mod.rs:471:38
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[Error - 08:58:23] Connection to server got closed. Server will not be restarted.
from nickel.
Anecdotally, I've also had it panic in a different location for the same reason:
nickel/lsp/nls/src/linearization/mod.rs
Lines 463 to 466 in 00b6ce9
from nickel.
@simonzkl I have a fix for my simple test case (and which makes sense with respect to the original location of the panic). But I didn't hit the second location yet. Maybe it's an artifact of the first issue, but just in case, would you mind sharing the JSON file you tried?
from nickel.
Ok, this is more in line with my own findings. Thanks!
from nickel.
Related Issues (20)
- Strange error in std.array.any HOT 2
- Provide contract interface to pyckel HOT 1
- Add functions to create and generically unwrap enum variants HOT 1
- Inconsistent behaviour while loading multiple files vs single file HOT 2
- Getting `record_insert: tried to extend but already exists` when using patterns with duplicate bound variables HOT 2
- Memory leak with long-running nickel process HOT 1
- Opaque foreign values HOT 1
- Update documentation for new pattern features
- Accessing late-bind field fails HOT 6
- Context-sensitive completion in match cases
- Go-lang wrapper for nickel HOT 1
- List equality in contracts can cause some big slowdowns when applied several times HOT 5
- A way to assign a variable to a field with the same name HOT 1
- LSP: Completion shouldn't suggest variable names for record fields
- A completion candidate can shadow a more informative one HOT 3
- Unresolved import causes `nls` to panic HOT 2
- Auto-generate Nickel contracts from Kubernete resource specifications HOT 1
- Non-deterministic typecheck LSP errors when modifying a transitive import of a file HOT 1
- LSP crash on _some_ modifications of a file imported in another HOT 1
- `std.record.get_or` is not working as expected HOT 1
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 nickel.