jaredly / jaredly/reason-language-server
bug when file of record module is moved to another folder
- Dominant language
- OCaml
- Stars
- 649
- Forks
- 85
- PR merge metrics
- No merged PRs in 30d
Description
i'm using WSL
bs-platform: 5.0.6
steps to reproduce:
1. create react reason app
bsb -init my-react-app -theme react-hooks
2. run the app
yarn start or npm run start
3. create new file for /src/School.re and fill with this
`type person = {
age: int,
name: string
}`
4 insert new code into /src/Demo.re
`let me: School.person = {
name: "my name",
age: 25
}`
5. create new folder for /src/folder
6. move School.re to /src/folder
7. now you will get an error from terminal like this one

8. make an some edit to /src/Demo.re file and saved
just insert some whitespace
9. then you will get an error

alternative solution is to "Reload the VSCode"

and re-start the app, and error will gone
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue in WSL with the bs-platform 5.0.6 React Reason app described: define School.person, reference it from Demo.re, move School.re into a folder, then edit Demo.re. Compare the language-server and restart behavior before and after the move; done means the moved module remains recognized without reloading VSCode or restarting the app.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ocaml, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100