Skip to content

The language server tries to access files in / on Linux #716

Open

Description

I installed the fsharp-mode emacs plugin, the plugin automatically installed the language server for me.
When I opened a file, I got the following error message:

LSP :: Connected to [fsac:89308/starting].
Package cl is deprecated
Error processing message (error "System.UnauthorizedAccessException: Access to the path ’/home/vetii/.wine-pipelight/dosdevices/z:/home/lost+found’ is denied.
 ---> System.IO.IOException: Permission denied
   --- End of inner exception stack trace ---
   at System.IO.Enumeration.FileSystemEnumerator‘1.CreateDirectoryHandle(String path, Boolean ignoreNotFound)
   at System.IO.Enumeration.FileSystemEnumerator‘1.Init()
   at System.IO.Enumeration.FileSystemEnumerable‘1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)
   at System.IO.Enumeration.FileSystemEnumerableFactory.DirectoryInfos(String directory, String expression, EnumerationOptions options, Boolean isNormalized)
   at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
   at System.IO.DirectoryInfo.GetDirectories(String searchPattern, EnumerationOptions enumerationOptions)
   at ProjectSystem.WorkspacePeek.scanDirs@137-1.GenerateNext(IEnumerable‘1& next) in D:\\Programowanie\\Projekty\\Ionide\\FsAutoComplete\\src\\ProjectSystem\\WorkspacePeek.fs:line 137
   at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase‘1.MoveNextImpl() in E:\\A\\_work\\130\\s\\src\\fsharp\\FSharp.Core\\seqcore.fs:line 371
   at ProjectSystem.WorkspacePeek.scanDirs@137-1.GenerateNext(IEnumerable‘1& next) in D:\\Programowanie\\Projekty\\Ionide\\FsAutoComplete\\src\\ProjectSystem\\WorkspacePeek.fs:line 141
   at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase‘1.MoveNextImpl() in E:\\A\\_work\\130\\s\\src\\fsharp\\FSharp.Core\\seqcore.fs:line 371
   at ProjectSystem.WorkspacePeek.scanDirs@137-1.GenerateNext(IEnumerable‘1& next) in D:\\Programowanie\\Projekty\\Ionide\\FsAutoComplete\\src\\ProjectSystem\\WorkspacePeek.fs:line 141
   at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase‘1.MoveNextImpl() in E:\\A\\_work\\130\\s\\src\\fsharp\\FSharp.Core\\seqcore.fs:line 371
   at ProjectSystem.WorkspacePeek.scanDirs@137-1.GenerateNext(IEnumerable‘1& next) in D:\\Programowanie\\Projekty\\Ionide\\FsAutoComplete\\src\\ProjectSystem\\WorkspacePeek.fs:line 141
   at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase‘1.MoveNextImpl() in E:\\A\\_work\\130\\s\\src\\fsharp\\FSharp.Core\\seqcore.fs:line 371
   at ProjectSystem.WorkspacePeek.scanDirs@137-1.GenerateNext(IEnumerable‘1& next) in D:\\Programowanie\\Projekty\\Ionide\\FsAutoComplete\\src\\ProjectSystem\\WorkspacePeek.fs:line 141
   at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase‘1.MoveNextImpl() in E:\\A\\_work\\130\\s\\src\\fsharp\\FSharp.Core\\seqcore.fs:line 371
   at ProjectSystem.WorkspacePeek.scanDirs@137-1.GenerateNext(IEnumerable‘1& next) in D:\\Programowanie\\Projekty\\Ionide\\FsAutoComplete\\src\\ProjectSystem\\WorkspacePeek.fs:line 141
   at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase‘1.MoveNextImpl() in E:\\A\\_work\\130\\s\\src\\fsharp\\FSharp.Core\\seqcore.fs:line 371
   at System.Collections.Generic.List‘1..ctor(IEnumerable‘1 collection)
   at Microsoft.FSharp.Collections.SeqModule.ToArray[T](IEnumerable‘1 source) in E:\\A\\_work\\130\\s\\src\\fsharp\\FSharp.Core\\seq.fs:line 823
   at Microsoft.FSharp.Collections.ArrayModule.OfSeq[T](IEnumerable‘1 source) in E:\\A\\_work\\130\\s\\src\\fsharp\\FSharp.Core\\array.fs:line 1057
   at ProjectSystem.WorkspacePeek.peek(String rootDir, Int32 deep, FSharpList‘1 excludedDirs) in D:\\Programowanie\\Projekty\\Ionide\\FsAutoComplete\\src\\ProjectSystem\\WorkspacePeek.fs:line 144
   at <StartupCode$FsAutoComplete-Core>.$Commands.WorkspacePeek@820.Invoke(Unit unitVar) in D:\\Programowanie\\Projekty\\Ionide\\FsAutoComplete\\src\\FsAutoComplete.Core\\Commands.fs:line 820
   at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult](AsyncActivation‘1 ctxt, TResult result1, FSharpFunc‘2 part2) in E:\\A\\_work\\130\\s\\src\\fsharp\\FSharp.Core\\async.fs:line 398
   at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc‘2 firstAction) in E:\\A\\_work\\130\\s\\src\\fsharp\\FSharp.Core\\async.fs:line 109").
Quit

When I tried looking at what this file was, I noticed that .wine-pipelight/dosdevices/z: is a link to /.
I do not understand why a language server would be interested in opening files in /home/lost+found. Is this normal?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions