Upgrade vscode and fix windows #92
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I am trying to work on some issues/improvements I would like to propose to fsharp-language-server and encountered some problem for running the project.
Here is a list of the issues and solution I followed to fix them:
When running
npm install
I got:A solution is proposed on this issue microsoft/vscode#119822 (comment) linking to a migration guide.
I followed the migration guide but didn't installed the
vscode-test
extensions because I don't think this project is running debugging inside of the VSCode.After that I got an error from the TypeScript compiler
TS2304: Cannot find name 'unknown'.
In order, to fix it I upgraded the TypeScript compiler to latest version as
unkown
has been introduced in version 3 and the project was using version 2.After that I got an error from the TypeScript compiler
TS2300: Duplicate identifier 'IteratorResult'.
This time I upgraded
@types/node
to the latest version.When running the extension via the
Extension
debug task, I had the errorCouldn't start client F# Language Server
. The problem, was that on windows the command name as used infindInPath
should bedotnet.exe
and not justdotnet
.I added a platform detection so choose the right name to follow the actual code. But personally, I would just change the code to
because the
findInPath
doesn't really provide anything. We don't add an error message or anything currently to help debug the issue.Edit: If you want me to change the code to remove
findInPath
please tell me, I will update the PR or create a new one.