jaredly / jaredly/reason-language-server
Unknown error in vscode plugin
Nobody has claimed this yet.
- Dominant language
- OCaml
- Stars
- 649
- Forks
- 85
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I have got an unknown error when using vscode plugin.
Plugin version 1.7.4
bs-platform: 5.2.1 but also tried on 7.0.1 with the same effect.
bsconfig.json
```
{
"name": "ProjectName",
"sources": [
{
"dir": "src",
"subdirs": true
},
{
"dir": "__tests__",
"subdirs": true,
"type": "dev"
}
],
"package-specs": {
"module": "commonjs",
"in-source": true
},
"suffix": ".bs.js",
"bs-dependencies": [
"reason-react",
"@glennsl/bs-json",
"bs-webapi",
"bs-fetch",
"bs-moment",
"reason-date-fns",
"re-classnames",
"reason-apollo",
"reason-apollo-hooks",
"re-debouncer",
"bs-reform",
"reschema"
],
"bs-dev-dependencies": [
"@glennsl/bs-jest",
"bs-react-test-renderer"
],
"ppx-flags": [
"graphql_ppx/ppx",
"lenses-ppx/ppx"
],
"reason": {
"react-jsx": 3
},
"refmt": 3,
"generate-merlin": true,
"warnings": {
"number": "-45"
}
}
```
The plugin doesn't work. It seems that it cannot compile the code but gets no error. I found in debug log only "type error here " but with no details.
```
... '/home/pawel/workspace/Leon/client/react/lib/bs/__tests__/src/components/DocumentsManager/List/__snapshots__' -I '/home/pawel/workspace/Leon/client/react/lib/bs/__tests__/src/components/DocumentsManager/Data' -I '/home/pawel/workspace/Leon/client/react/lib/bs/__tests__/src/components/DocumentsManager/Data/__snapshots__' -I '/home/pawel/workspace/Leon/client/react/lib/bs/__tests__/src/components/DocumentsManager/__snapshots__' -I '/home/pawel/workspace/Leon/client/react/node_modules/bs-platform/lib/ocaml' -I '/home/pawel/workspace/Leon/client/react/node_modules/reschema/lib/bs/src' -I '/home/pawel/workspace/Leon/client/react/node_modules/bs-reform/lib/bs' -I '/home/pawel/workspace/Leon/client/react/node_modules/bs-reform/lib/bs/src' -I '/home/pawel/workspace/Leon/client/react/node_modules/re-debouncer/lib/bs/src' -I '/home/pawel/workspace/Leon/client/react/node_modules/reason-apollo-hooks/lib/bs' -I '/home/pawel/workspace/Leon/client/react/node_modules/reason-apollo-hooks/lib/bs/src' -I '/home/pawel/workspace/Leon/client/react/node_modules/reason-apollo/lib/bs/src' -I '/home/pawel/workspace/Leon/client/react/node_modules/reason-apollo/lib/bs/src/graphql-types' -I '/home/pawel/workspace/Leon/client/react/node_modules/re-classnames/lib/bs/src' -I '/home/pawel/workspace/Leon/client/react/node_modules/reason-date-fns/lib/bs' -I '/home/pawel/workspace/Leon/client/react/node_modules/reason-date-fns/lib/bs/src' -I '/home/pawel/workspace/Leon/client/react/node_modules/bs-moment/lib/bs/src' -I '/home/pawel/workspace/Leon/client/react/node_modules/bs-fetch/lib/bs/src' -I '/home/pawel/workspace/Leon/client/react/node_modules/bs-webapi/lib/bs/src' -I '/home/pawel/workspace/Leon/client/react/node_modules/bs-webapi/lib/bs/src/Webapi' -I '/home/pawel/workspace/Leon/client/react/node_modules/bs-webapi/lib/bs/src/Webapi/Webapi__Canvas' -I '/home/pawel/workspace/Leon/client/react/node_modules/bs-webapi/lib/bs/src/Webapi/Webapi__Dom' -I '/home/pawel/workspace/Leon/client/react/node_modules/@glennsl/bs-json/lib/bs/src' -I '/home/pawel/workspace/Leon/client/react/node_modules/reason-react/lib/bs/src' -I '/home/pawel/workspace/Leon/client/react/node_modules/bs-react-test-renderer/lib/bs/src' -I '/home/pawel/workspace/Leon/client/react/node_modules/@glennsl/bs-jest/lib/bs/src' -I '/home/pawel/workspace/Leon/client/react/node_modules/bs-platform/lib/ocaml' -bin-annot -bs-no-builtin-ppx-ml -ppx '/home/pawel/workspace/Leon/client/react/node_modules/graphql_ppx/ppx' -ppx '/home/pawel/workspace/Leon/client/react/node_modules/lenses-ppx/ppx' -ppx '/home/pawel/workspace/Leon/client/react/node_modules/bs-platform/lib/bsppx.exe -bs-jsx 3' -nostdlib -w -30-40+6+7+27+32..39+44+45+101-45 -bs-re-out -impl /home/pawel/workspace/Leon/client/react/node_modules/.lsp/LeonAccountModulesServiceCoder.ast with pwd /home/pawel/workspace/Leon/client/react
type error here
```
Or something like below (many times for multiple different modules)
```
<< Making lastDefinitions with type error for file:///home/pawel/workspace/Leon/client/react/__tests__/src/components/Eapis/EapisPersonsTableRow_test.re
type error here
```
The project builds and works when compiling by using npx bsb -make-world
Any ideas what it can be?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure in the VS Code plugin using the supplied bsconfig.json and compare it with the successful `npx bsb -make-world` build. Start from the language-server handling of the logged `type error here` output; done means compiler errors are reported with useful details instead of an empty message.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ocaml, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100