Skip to content

Error when open *.fs file  #148

@mzabolotko

Description

@mzabolotko

Description

I got an error "(wrong-type-argument stringp nil)" when open *.fs file in any directory.
Debugger output

  #[257 "\301\300^B\"\203^P^@\302\303\304\305^D#\302Q\207\207" ["[\\\"]\\| " string-match "\"" replace-regexp-in-string "[\\\"]" "\\\\\\&"] 6 "\n\n(fn STR)"](nil)
  mapconcat(#[257 "\301\300^B\"\203^P^@\302\303\304\305^D#\302Q\207\207" ["[\\\"]\\| " string-match "\"" replace-regexp-in-string "[\\\"]" "\\\\\\&"] 6 "\n\n(fn STR)"] (nil "/nologo" "d:/test/sample/sample.sln") " ")
  combine-and-quote-strings((nil "/nologo" "d:/test/sample/sample.sln"))
  fsharp-mode-choose-compile-command("d:/test/sample/Library1.fs")
  fsharp-mode()
  set-auto-mode-0(fsharp-mode nil)
  set-auto-mode()
  normal-mode(t)
  after-find-file(nil t)
  find-file-noselect-1(#<buffer Library1.fs> "d:/test/sample/Library1.fs" nil nil "d:/test/sample/Library1.fs" (281474976900952 4133428259))
  find-file-noselect("d:/test/sample/Library1.fs" nil nil nil)
  find-file("d:/test/sample/Library1.fs")
  dired-find-file()
  funcall-interactively(dired-find-file)
  call-interactively(dired-find-file nil nil)
  command-execute(dired-find-file)

Repro steps

  1. Create a F# Visual Studio solution with a F# library project.
  2. Open Emacs
  3. eval (setq debug-on-error t) in scratch buffer.
  4. Go to solution directory using Dired.
  5. Open any *.fs file.

Expected behavior

The *.fs file should be opened and intellisense should work.

Actual behavior

Only code syntax highlighting works well.

Known workarounds

:(

Related information

  • Windows 10
  • GNU Emacs 25.3.1 (x86_64-w64-mingw32) of 2017-09-17
  • Installed emacs packages:
  company            20170926.1515
  company-quickhelp  20170429.1052
  dash               20170924.2240
  epl                20150517.433
  flycheck           20170911.127
  fsharp-mode        20170918.842
  pkg-info           20150517.443
  popup              20160709.729
  pos-tip            20150318.813
  powerline          20170708.1442
  s                  20170922.900
  spaceline          20170630.2327
  • F# 4.1 (C:\Program Files (x86)\Microsoft SDKs\F#\4.1\Framework\v4.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions