hsdev icon indicating copy to clipboard operation
hsdev copied to clipboard

Is hsdev able to pick up benchmark targets?

Open moodmosaic opened this issue 7 years ago • 2 comments

For example, I tried with https://github.com/phadej/splitmix, where it has

library
  ...

benchmark comparison
  type:             exitcode-stdio-1.0
  hs-source-dirs:   bench
  main-is:          Bench.hs
  ...

test-suite montecarlo-pi
  type:             exitcode-stdio-1.0
  hs-source-dirs:   tests
  main-is:          SplitMixPi.hs
  ...

test-suite dieharder-input
  type:             exitcode-stdio-1.0
  hs-source-dirs:   tests
  main-is:          Dieharder.hs
  ...

And I can only use hsdev/SublimeHaskell in the library and test-suite targets. The benchmark one fails:

Errors: 0, Warnings: 0, Hints: 0, Uncategorized 1

Uncategorized: 1

  <no file/command line/OPTIONS_GHC>: line 1, column 1:
    Uncategorized: Backend error encountered during 'Checking and Linting': module not inspected

Console output:

DPI scale: 1
startup, version: 3143 linux x64 channel: stable
executable: /opt/sublime_text/sublime_text
working dir: /
packages path: /home/nikos/.config/sublime-text-3/Packages
state path: /home/nikos/.config/sublime-text-3/Local
zip path: /opt/sublime_text/Packages
zip path: /home/nikos/.config/sublime-text-3/Installed Packages
ignored_packages: ["Vintage"]
pre session restore time: 0.250396
startup time: 0.338096
first paint time: 0.376798
reloading plugin Default.auto_indent_tag
reloading plugin Default.block
reloading plugin Default.comment
reloading plugin Default.convert_syntax
reloading plugin Default.copy_path
reloading plugin Default.delete_word
reloading plugin Default.detect_indentation
reloading plugin Default.duplicate_line
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.install_package_control
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_context_url
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.profile
reloading plugin Default.quick_panel
reloading plugin Default.run_syntax_tests
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.settings
reloading plugin Default.show_scope_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.swap_line
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.trim_trailing_white_space
reloading plugin Default.ui
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin SublimeHaskell.__init__
reloading plugin SublimeHaskell.add_import
reloading plugin SublimeHaskell.autocomplete
reloading plugin SublimeHaskell.backend_cmds
reloading plugin SublimeHaskell.build
reloading plugin SublimeHaskell.cabal
reloading plugin SublimeHaskell.check_lint
reloading plugin SublimeHaskell.cmdwin_types
reloading plugin SublimeHaskell.commands
reloading plugin SublimeHaskell.event_common
reloading plugin SublimeHaskell.fly_check
reloading plugin SublimeHaskell.indenters
reloading plugin SublimeHaskell.info_popup
reloading plugin SublimeHaskell.parseoutput
reloading plugin SublimeHaskell.repl
reloading plugin SublimeHaskell.sublime_haskell_common
reloading plugin SublimeHaskell.symbols
reloading plugin SublimeHaskell.types
reloading plugin SublimeHaskell.zzplugin
plugins loaded
plugin 'backends' ['Stack-exec local hsdev', 'Cabal new-build local hsdev', 'Cabal-sandboxed local hsdev', 'ghc-mod', 'Local hsdev', 'Remote hsdev@localhost:4567', 'No backend']
Possible/usable 'backends': ['Local hsdev', 'Remote hsdev@localhost:4567', 'Cabal new-build local hsdev', 'No backend']
<hsdev stderr> 2018-02-06 14:29:30 +0200  ERROR :127.0.0.1:41146/update/task/directory/task/package-db/scan> Error reading cache: IO exception while reading cache from /home/nikos/.config/sublime-text-3/Cache/SublimeHaskell/hsdev/cabal/.home.nikos.Downloads.splitmixphadej.stackwork.install.x8664linux.lts103.822.pkgdb.json
Sublime Haskell: complete returns error: other error
msg: File '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs' not found, id: 4
Sublime Haskell: complete returns error: other error
msg: File '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs' not found, id: 6
Sublime Haskell: module returns error: module not inspected
id: 8, module: {'project': None, 'file': '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs'}
Sublime Haskell: types returns error: module not inspected
id: 9, module: {'project': None, 'file': '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs'}
Sublime Haskell: whois returns error: other error
msg: File '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs' not found, id: 10
Sublime Haskell: lookup returns error: other error
msg: File '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs' not found, id: 11
Sublime Haskell: module returns error: module not inspected
id: 12, module: {'project': None, 'file': '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs'}
Sublime Haskell: types returns error: module not inspected
id: 13, module: {'project': None, 'file': '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs'}
Sublime Haskell: whois returns error: other error
msg: File '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs' not found, id: 14
Sublime Haskell: lookup returns error: other error
msg: File '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs' not found, id: 15
Sublime Haskell: module returns error: module not inspected
id: 16, module: {'project': None, 'file': '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs'}
Sublime Haskell: types returns error: module not inspected
id: 17, module: {'project': None, 'file': '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs'}
Sublime Haskell: whois returns error: other error
msg: File '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs' not found, id: 18
Sublime Haskell: lookup returns error: other error
msg: File '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs' not found, id: 19
Sublime Haskell: complete returns error: other error
msg: File '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs' not found, id: 20
Sublime Haskell: complete returns error: other error
msg: File '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs' not found, id: 22
Sublime Haskell: module returns error: module not inspected
id: 24, module: {'project': None, 'file': '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs'}
Sublime Haskell: types returns error: module not inspected
id: 25, module: {'project': None, 'file': '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs'}
Sublime Haskell: whois returns error: other error
msg: File '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs' not found, id: 26
Sublime Haskell: lookup returns error: other error
msg: File '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs' not found, id: 27
Sublime Haskell: module returns error: module not inspected
id: 28, module: {'project': None, 'file': '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs'}
Sublime Haskell: types returns error: module not inspected
id: 29, module: {'project': None, 'file': '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs'}
Sublime Haskell: whois returns error: other error
msg: File '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs' not found, id: 30
Sublime Haskell: lookup returns error: other error
msg: File '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs' not found, id: 31
<hsdev stderr> 2018-02-06 14:33:56 +0200  ERROR :127.0.0.1:41150/check/checkSome> Scope leaves with exception: module not inspected: /home/nikos/Downloads/splitmix-phadej/bench/Bench.hs
<hsdev stderr> CallStack (from HasCallStack):
<hsdev stderr>   onError, called at src/System/Log/Simple/Monad.hs:104:36 in simple-log-0.9.3-BuhkK3KtedOIQ2L9xZLbXB:System.Log.Simple.Monad
<hsdev stderr> 
<hsdev stderr> 2018-02-06 14:33:56 +0200  ERROR :127.0.0.1:41150/check> Scope leaves with exception: module not inspected: /home/nikos/Downloads/splitmix-phadej/bench/Bench.hs
<hsdev stderr> CallStack (from HasCallStack):
<hsdev stderr>   onError, called at src/System/Log/Simple/Monad.hs:104:36 in simple-log-0.9.3-BuhkK3KtedOIQ2L9xZLbXB:System.Log.Simple.Monad
<hsdev stderr> 
Sublime Haskell: check returns error: module not inspected
id: 32, module: {'project': None, 'file': '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs'}
Sublime Haskell: complete returns error: other error
msg: File '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs' not found, id: 34
Sublime Haskell: complete returns error: other error
msg: File '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs' not found, id: 36
Sublime Haskell: complete returns error: other error
msg: File '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs' not found, id: 38
Sublime Haskell: complete returns error: other error
msg: File '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs' not found, id: 40
Sublime Haskell: complete returns error: other error
msg: File '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs' not found, id: 42
Sublime Haskell: complete returns error: other error
msg: File '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs' not found, id: 44
Sublime Haskell: complete returns error: other error
msg: File '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs' not found, id: 46
Sublime Haskell: complete returns error: other error
msg: File '/home/nikos/Downloads/splitmix-phadej/bench/Bench.hs' not found, id: 48

moodmosaic avatar Feb 06 '18 12:02 moodmosaic

No, benchmarks not supported now

mvoidex avatar Feb 07 '18 16:02 mvoidex

Would be great if also benchmarks would be supported.

rikvdkleij avatar Feb 10 '18 15:02 rikvdkleij