jaredly / jaredly/reason-language-server

Produce a nice error when bsconfig uses unsupported features

Open
#254 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
OCaml
Stars
649
Forks
85
PR merge metrics
No merged PRs in 30d

Description

I've got a build-system that excercises some of the … more obscure features of `bsb`.

I didn't necessarily expect reason-language-server to immediately *handle* all of them fully, but I also didn't expect it to straight crash. “Unable to read file://...excmd/bsconfig.json”

(I suspect either `"generators"` or `"ppx-flags"` is screwing it up? ¯\\\_(ツ)\_/¯)

Configuration in question: https://github.com/ELLIOTTCABLE/excmd.js/blob/master/bsconfig.json, and my [`node_modules/.lsp/debug.log`](https://gist.github.com/ELLIOTTCABLE/08195986d7c8c2242cf47ac658014bf1).

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked excmd.js bsconfig.json and its node_modules/.lsp/debug.log to reproduce the crash around the unsupported "generators" or "ppx-flags" features. Trace how the language server reads bsconfig.json and identify where the generic "Unable to read" failure is produced. Done means unsupported configuration is reported as a useful error instead of crashing.

Written by the indexing model from the issue text.

Assessment

Tech stack
ocaml
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.