Closed vushu closed 5 years ago
the project file is not parsing correctly. is it working on a simpler project?
I have this problem with any fsharp project, not sure why how this happened, maybe after I have updated to dotnet core 2.2.
:+1: I'm getting the very same errors in :CocInfo
on a very simple project.
Steps to reproduce:
dotnet new console -lang F# -o src/MyConsoleApp
). nvim src/MyConsoleApp/Program.fs
CocList diagnostics
shows
1 src/MyConsoleApp/Program.fs:1:1 Error [fsharp] No .fsproj or .fsx file references /redacted/src/MyConsoleApp/Program.fs
Is there any way I could help figure out why the project file isn't parsing correctly ?
I think I have some clue now. It's about msbuild not finding the tool set. I'll see if I can repro this problem.
Hang on.
Ok I can repro this on WSL. Looking into it.
They decided to add a space to dotnet --info
in 2.2
@elafarge @vushu pushed out 0.1.52
on npm. Feel free to reopen if the problem persists.
Now im getting this error:
## versions
vim version: NVIM v0.3.1
node version: v8.10.0
coc.nvim version: 0.0.72-b24601e6af
term: xterm-kitty
platform: linux
## Messages
[coc.nvim] Error on active extension coc-fsharp: TypeError: mode must be an integer
@vushu I'm not sure what happened. Any detailed logs?
I only get the info above when doing CocInfo
I first did a CocUninstall coc-fsharp then CocInstall coc-fsharp then the error occurs when opening just a simple fsharp project.
in my .config/coc/extensions/node_modules/coc-sharp/package.json I am using your latest version 0.1.52:
{
"name": "coc-fsharp",
"displayName": "F# Language Server for coc.nvim",
"description": "F# Language Support using FSharp Compiler Services",
"author": "Yatao Li",
"license": "MIT",
"icon": "Icon512.png",
"version": "0.1.52",
"publisher": "yatli",
"repository": {
"type": "git",
"url": "https://github.com/yatli/fsharp-language-server"
},
"engines": {
"coc": ">=0.0.71"
},
"keywords": [
"fsharp",
"coc.nvim",
"dotnet",
".NET Core",
".NET"
],
"categories": [
"Programming Languages",
"Linters",
"coc.nvim"
],
"activationEvents": [
"onLanguage:fsharp"
],
"main": "out/client/extension.js",
"files": [
"out",
"syntaxes"
],
"contributes": {
"languages": [
{
"id": "fsharp",
"aliases": [
"F#",
"FSharp",
"fsharp"
],
"extensions": [
".fs",
".fsx",
".fsi",
".fsl",
".fsy"
],
"configuration": "syntaxes/fsharp.configuration.json"
}
],
"grammars": [
{
"language": "fsharp",
"scopeName": "source.fsharp",
"path": "syntaxes/fsharp.json"
},
{
"language": "fsharp",
"scopeName": "source.fsharp.fsx",
"path": "syntaxes/fsharp.fsx.json"
},
{
"language": "fsharp",
"scopeName": "source.fsharp.fsi",
"path": "syntaxes/fsharp.fsi.json"
}
],
"configuration": {
"type": "object",
"title": "FSharp configuration",
"properties": {
"fsharp.trace.server": {
"scope": "application",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VSCode and the language server."
},
"fsharp.project.define": {
"scope": "resource",
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Specifies macro definitions for a F# project."
},
"fsharp.project.otherFlags": {
"scope": "resource",
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Specifies other fsc flags."
},
"fsharp.project.includeCompileBefore": {
"scope": "resource",
"type": "boolean",
"default": false,
"description": "Treat <CompileBefore ../> items in the project as source files."
},
"fsharp.codelens.references": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Display the number of references for the symbols. Uses more resources and may crash coc.nvim for very large projects."
}
}
}
},
"scripts": {
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./"
},
"extensionDependencies": [],
"dependencies": {
"vscode-jsonrpc": "*",
"vscode-languageserver-protocol": "*"
},
"devDependencies": {
"@types/node": "^10.3.3",
"typescript": "^3.0.3",
"coc.nvim": "^0.0.71"
}
}
uh oh I think I see what happened It's about fs.chmodSync
try 0.1.53 :)
It works now, thank you :)
I not sure what happened but here is CocInfo