Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ide not working anymore #9

Closed
rvion opened this issue Aug 13, 2015 · 11 comments
Closed

ide not working anymore #9

rvion opened this issue Aug 13, 2015 · 11 comments

Comments

@rvion
Copy link
Collaborator

rvion commented Aug 13, 2015

Setup:

  • pull master of stack, stack-ide, and stack-ide-sublime
  • reinstall stack and stack-ide, after setting: resolver: lts-3.0
  • generate brand new test project: stack new supernova && cd supernova && stack build && subl .

Then:

image

Log:

startup, version: 3083 osx x64 channel: stable
executable: /Applications/Sublime Text.app/Contents/MacOS/Sublime Text
working dir: /
packages path: /Users/RemiVion/Library/Application Support/Sublime Text 3/Packages
state path: /Users/RemiVion/Library/Application Support/Sublime Text 3/Local
zip path: /Applications/Sublime Text.app/Contents/MacOS/Packages
zip path: /Users/RemiVion/Library/Application Support/Sublime Text 3/Installed Packages
ignored_packages: ["Vintage"]
pre session restore time: 0.35468
first paint time: 0.409132
startup time: 0.416746
reloading plugin Default.block
reloading plugin Default.comment
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.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_context_url
reloading plugin Default.open_file_settings
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.quick_panel
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_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 CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin 0_package_control_loader.00-package_control
reloading plugin 0_package_control_loader.02-bz2
reloading plugin Git.add
reloading plugin Git.annotate
reloading plugin Git.commit
reloading plugin Git.diff
reloading plugin Git.flow
reloading plugin Git.git
reloading plugin Git.history
reloading plugin Git.repo
reloading plugin Git.stash
reloading plugin Git.status
reloading plugin Git.statusbar
reloading plugin GitGutter.git_gutter
reloading plugin GitGutter.git_gutter_change
reloading plugin GitGutter.git_gutter_compare
reloading plugin GitGutter.git_gutter_events
reloading plugin GitGutter.git_gutter_handler
reloading plugin GitGutter.git_helper
reloading plugin GitGutter.view_collection
reloading plugin HTML5.encode_html_entities
reloading plugin HTML5.html_completions
reloading plugin Package Control.bootstrap
reloading plugin Package Control.Package Control
reloading plugin SublimeStackIDE.stack-ide
plugins loaded
[SublimeStackIDE][NORM]: Starting stack-ide-sublime watchdog
[SublimeStackIDE][NORM]: Initializing window 2
[SublimeStackIDE][NORM]: Launching stack-ide instance for  /Users/RemiVion/dev/supernova/supernova
[SublimeStackIDE][NORM]: Kicking off window 2
[SublimeStackIDE][NORM]: Unhandled response:  {'tag': 'ResponseLog', 'contents': '[Info] Initializing ide-backend session @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.Update ./IdeSession/Update.hs:195:3)\n'}
[SublimeStackIDE][NORM]: Unhandled response:  {'tag': 'ResponseLog', 'contents': '[Debug] Session dir = /Users/RemiVion/dev/supernova/supernova/session.44301 @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.Update ./IdeSession/Update.hs:208:3)\n'}
[SublimeStackIDE][NORM]: Unhandled response:  {'tag': 'ResponseLog', 'contents': '[Debug] Dist dir = /Users/RemiVion/dev/supernova/supernova/.stack-work/dist/x86_64-osx/Cabal-1.22.4.0/ @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.Update ./IdeSession/Update.hs:210:3)\n'}
[SublimeStackIDE][NORM]: Unhandled response:  {'tag': 'ResponseLog', 'contents': '[Debug] Local working dir = /Users/RemiVion/dev/supernova/supernova/ @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.Update ./IdeSession/Update.hs:217:17)\n'}
[SublimeStackIDE][NORM]: Unhandled response:  {'tag': 'ResponseLog', 'contents': '[Info] Searching for ide-backend-server on this path: /Users/RemiVion/dev/supernova/supernova/.stack-work/install/x86_64-osx/lts-3.0/7.10.2/bin/:/Users/RemiVion/.stack/snapshots/x86_64-osx/lts-3.0/7.10.2/bin/:/Users/RemiVion/.local/bin:/Users/RemiVion/.local/bin:/Users/RemiVion/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.RPC.Client ./IdeSession/RPC/Client.hs:341:5)\n'}
[SublimeStackIDE][NORM]: Unhandled response:  {'tag': 'ResponseLog', 'contents': '[Info] Found ide-backend-server - using this one: /Users/RemiVion/.local/bin/ide-backend-server @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.RPC.Client ./IdeSession/RPC/Client.hs:343:5)\n'}
[SublimeStackIDE][NORM]: Unhandled response:  {'tag': 'ResponseLog', 'contents': '[Debug] Recompile required, starting... @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.Update.ExecuteSessionUpdate ./IdeSession/Update/ExecuteSessionUpdate.hs:223:5)\n'}
[SublimeStackIDE][NORM]: Unhandled response:  {'tag': 'ResponseLog', 'contents': '[Info] Restarting session due to update requiring it. @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.Update ./IdeSession/Update.hs:422:11)\n'}
[SublimeStackIDE][NORM]: Unhandled response:  {'tag': 'ResponseLog', 'contents': '[Info] Restarting ide-backend-server @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.Update ./IdeSession/Update.hs:351:3)\n'}
[SublimeStackIDE][NORM]: Unhandled response:  {'tag': 'ResponseLog', 'contents': '[Info] Searching for ide-backend-server on this path: /Users/RemiVion/dev/supernova/supernova/.stack-work/install/x86_64-osx/lts-3.0/7.10.2/bin/:/Users/RemiVion/.stack/snapshots/x86_64-osx/lts-3.0/7.10.2/bin/:/Users/RemiVion/.local/bin:/Users/RemiVion/.local/bin:/Users/RemiVion/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.RPC.Client ./IdeSession/RPC/Client.hs:341:5)\n'}
[SublimeStackIDE][NORM]: Unhandled response:  {'tag': 'ResponseLog', 'contents': '[Info] Found ide-backend-server - using this one: /Users/RemiVion/.local/bin/ide-backend-server @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.RPC.Client ./IdeSession/RPC/Client.hs:343:5)\n'}
[SublimeStackIDE][NORM]: Unhandled response:  {'tag': 'ResponseLog', 'contents': '[Debug] Recompile required, starting... @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.Update.ExecuteSessionUpdate ./IdeSession/Update/ExecuteSessionUpdate.hs:223:5)\n'}
[SublimeStackIDE][WARN]: Unhandled error tag type:  {'tag': 'TextSpan', 'contents': '<from GhcException>'}
@rvion
Copy link
Collaborator Author

rvion commented Aug 14, 2015

hopefully, once commercialhaskell/stack#662 will be done, we'll know more easily if the problem is on sublime plugin side, or on stack / stack-ide & backend side

@lukexi
Copy link
Owner

lukexi commented Aug 14, 2015

Hi Remi,

Hm, I haven't run across that error yet... FYI you can always take the plugin out of the picture by manually running stack ide start supernova on the command line and seeing if you get the same result — I'm guessing this one is upstream.

@lukexi
Copy link
Owner

lukexi commented Aug 14, 2015

(oh, and last I remember errors sometimes don't appear til you nudge stack-ide with a query like {"tag":"RequestGetSourceErrors","contents":[]} which you can just paste on the command line)

@rvion
Copy link
Collaborator Author

rvion commented Aug 14, 2015

Here is what I have:

on ide:

[SublimeStackIDE][NORM]: Initializing window 7
[SublimeStackIDE][NORM]: Launching stack-ide instance for  /Users/RemiVion/dev/supernova/supernova
[SublimeStackIDE][NORM]: Kicking off window 7
[SublimeStackIDE][WARN]: Stack-IDE error:  supernova-0.1.0.0: Test running disabled by --no-run-tests flag.

[SublimeStackIDE][WARN]: Stack-IDE error:  supernova-0.1.0.0: Test running disabled by --no-run-tests flag.

[SublimeStackIDE][NORM]: Unhandled response:  {'tag': 'ResponseLog', 'contents': '[Info] Initializing ide-backend session @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.Update ./IdeSession/Update.hs:195:3)\n'}
[SublimeStackIDE][NORM]: Unhandled response:  {'tag': 'ResponseLog', 'contents': '[Debug] Session dir = /Users/RemiVion/dev/supernova/supernova/session.78563 @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.Update ./IdeSession/Update.hs:208:3)\n'}
[SublimeStackIDE][NORM]: Unhandled response:  {'tag': 'ResponseLog', 'contents': '[Debug] Dist dir = /Users/RemiVion/dev/supernova/supernova/.stack-work/dist/x86_64-osx/Cabal-1.22.4.0/ @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.Update ./IdeSession/Update.hs:210:3)\n'}
[SublimeStackIDE][NORM]: Unhandled response:  {'tag': 'ResponseLog', 'contents': '[Debug] Local working dir = /Users/RemiVion/dev/supernova/supernova/ @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.Update ./IdeSession/Update.hs:217:17)\n'}
[SublimeStackIDE][NORM]: Unhandled response:  {'tag': 'ResponseLog', 'contents': '[Info] Searching for ide-backend-server on this path: /Users/RemiVion/dev/supernova/supernova/.stack-work/install/x86_64-osx/lts-3.0/7.10.2/bin/:/Users/RemiVion/.stack/snapshots/x86_64-osx/lts-3.0/7.10.2/bin/:/Users/RemiVion/.local/bin:/Users/RemiVion/.local/bin:/Users/RemiVion/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.RPC.Client ./IdeSession/RPC/Client.hs:341:5)\n'}
[SublimeStackIDE][NORM]: Unhandled response:  {'tag': 'ResponseLog', 'contents': '[Info] Found ide-backend-server - using this one: /Users/RemiVion/.local/bin/ide-backend-server @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.RPC.Client ./IdeSession/RPC/Client.hs:343:5)\n'}
[SublimeStackIDE][NORM]: Unhandled response:  {'tag': 'ResponseLog', 'contents': '[Debug] Recompile required, starting... @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.Update.ExecuteSessionUpdate ./IdeSession/Update/ExecuteSessionUpdate.hs:223:5)\n'}
[SublimeStackIDE][NORM]: Unhandled response:  {'tag': 'ResponseLog', 'contents': '[Info] Restarting session due to update requiring it. @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.Update ./IdeSession/Update.hs:422:11)\n'}
[SublimeStackIDE][NORM]: Unhandled response:  {'tag': 'ResponseLog', 'contents': '[Info] Restarting ide-backend-server @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.Update ./IdeSession/Update.hs:351:3)\n'}
[SublimeStackIDE][NORM]: Unhandled response:  {'tag': 'ResponseLog', 'contents': '[Info] Searching for ide-backend-server on this path: /Users/RemiVion/dev/supernova/supernova/.stack-work/install/x86_64-osx/lts-3.0/7.10.2/bin/:/Users/RemiVion/.stack/snapshots/x86_64-osx/lts-3.0/7.10.2/bin/:/Users/RemiVion/.local/bin:/Users/RemiVion/.local/bin:/Users/RemiVion/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.RPC.Client ./IdeSession/RPC/Client.hs:341:5)\n'}
[SublimeStackIDE][NORM]: Unhandled response:  {'tag': 'ResponseLog', 'contents': '[Info] Found ide-backend-server - using this one: /Users/RemiVion/.local/bin/ide-backend-server @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.RPC.Client ./IdeSession/RPC/Client.hs:343:5)\n'}
indexing [queue 158]: no files were indexed out of the 15 queued, abandoning crawl
[SublimeStackIDE][NORM]: Unhandled response:  {'tag': 'ResponseLog', 'contents': '[Debug] Recompile required, starting... @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.Update.ExecuteSessionUpdate ./IdeSession/Update/ExecuteSessionUpdate.hs:223:5)\n'}
[SublimeStackIDE][WARN]: Unhandled error tag type:  {'tag': 'TextSpan', 'contents': '<from GhcException>'}

on shell:

➜  supernova  stack ide start supernova
supernova-0.1.0.0: configure (test)
Configuring supernova-0.1.0.0...
supernova-0.1.0.0: build (test)
Preprocessing library supernova-0.1.0.0...
[1 of 1] Compiling Lib              ( src/Lib.hs, .stack-work/dist/x86_64-osx/Cabal-1.22.4.0/build/Lib.o )
In-place registering supernova-0.1.0.0...
Preprocessing test suite 'supernova-test' for supernova-0.1.0.0...
[1 of 1] Compiling Main             ( test/Spec.hs, .stack-work/dist/x86_64-osx/Cabal-1.22.4.0/build/supernova-test/supernova-test-tmp/Main.o )
Linking .stack-work/dist/x86_64-osx/Cabal-1.22.4.0/build/supernova-test/supernova-test ...
supernova-0.1.0.0: Test running disabled by --no-run-tests flag.
{"tag":"ResponseWelcome","contents":[0,1,1]}
{"tag":"ResponseLog","contents":"[Info] Initializing ide-backend session @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.Update ./IdeSession/Update.hs:195:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Session dir = /Users/RemiVion/dev/supernova/supernova/session.78526 @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.Update ./IdeSession/Update.hs:208:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Dist dir = /Users/RemiVion/dev/supernova/supernova/.stack-work/dist/x86_64-osx/Cabal-1.22.4.0/ @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.Update ./IdeSession/Update.hs:210:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Local working dir = /Users/RemiVion/dev/supernova/supernova/ @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.Update ./IdeSession/Update.hs:217:17)\n"}
{"tag":"ResponseLog","contents":"[Info] Searching for ide-backend-server on this path: /Users/RemiVion/dev/supernova/supernova/.stack-work/install/x86_64-osx/lts-3.0/7.10.2/bin/:/Users/RemiVion/.stack/snapshots/x86_64-osx/lts-3.0/7.10.2/bin/:/Users/RemiVion/.local/bin:/Users/RemiVion/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.RPC.Client ./IdeSession/RPC/Client.hs:341:5)\n"}
{"tag":"ResponseLog","contents":"[Info] Found ide-backend-server - using this one: /Users/RemiVion/.local/bin/ide-backend-server @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.RPC.Client ./IdeSession/RPC/Client.hs:343:5)\n"}
{"tag":"ResponseLog","contents":"[Debug] Recompile required, starting... @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.Update.ExecuteSessionUpdate ./IdeSession/Update/ExecuteSessionUpdate.hs:223:5)\n"}
{"tag":"ResponseLog","contents":"[Info] Restarting session due to update requiring it. @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.Update ./IdeSession/Update.hs:422:11)\n"}
{"tag":"ResponseUpdateSession","contents":{"tag":"UpdateStatusRequiredRestart","contents":[]}}
{"tag":"ResponseLog","contents":"[Info] Restarting ide-backend-server @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.Update ./IdeSession/Update.hs:351:3)\n"}
{"tag":"ResponseLog","contents":"[Info] Searching for ide-backend-server on this path: /Users/RemiVion/dev/supernova/supernova/.stack-work/install/x86_64-osx/lts-3.0/7.10.2/bin/:/Users/RemiVion/.stack/snapshots/x86_64-osx/lts-3.0/7.10.2/bin/:/Users/RemiVion/.local/bin:/Users/RemiVion/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.RPC.Client ./IdeSession/RPC/Client.hs:341:5)\n"}
{"tag":"ResponseLog","contents":"[Info] Found ide-backend-server - using this one: /Users/RemiVion/.local/bin/ide-backend-server @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.RPC.Client ./IdeSession/RPC/Client.hs:343:5)\n"}
{"tag":"ResponseLog","contents":"[Debug] Recompile required, starting... @(ideba_HqZKAqZV4wa5sqhSD7XjZv:IdeSession.Update.ExecuteSessionUpdate ./IdeSession/Update/ExecuteSessionUpdate.hs:223:5)\n"}
{"tag":"ResponseUpdateSession","contents":{"tag":"UpdateStatusDone","contents":[]}}
^C{"tag":"ResponseFatalError","contents":"user interrupt"}

@rvion
Copy link
Collaborator Author

rvion commented Aug 14, 2015

on ide, it ends with a [SublimeStackIDE][WARN]: Unhandled error tag type: {'tag': 'TextSpan', 'contents': '<from GhcException>'}

@lukexi
Copy link
Owner

lukexi commented Aug 14, 2015

And does pasting in the {"tag":"RequestGetSourceErrors","contents":[]} to the terminal trigger anything?

@rvion
Copy link
Collaborator Author

rvion commented Aug 14, 2015

yes !! thanks for insisting

{"tag":"RequestGetSourceErrors","contents":[]}
{"tag":"ResponseGetSourceErrors","contents":[{"errorSpan":{"tag":"TextSpan","contents":"<from GhcException>"},"errorKind":"KindError","errorMsg":"ide-backend-server: cannot compile this file to desired target: /Users/RemiVion/dev/supernova/supernova/supernova.cabal\nUsage: For basic information, try the `--help' option."}]}

@rvion
Copy link
Collaborator Author

rvion commented Aug 14, 2015

doesn't seem to be really informative :/

@lukexi
Copy link
Owner

lukexi commented Aug 14, 2015

Well it's a clue anyway : ) Want to move the issue over to stack ide and investigation can continue from there?

@rvion
Copy link
Collaborator Author

rvion commented Aug 15, 2015

yes

@rvion
Copy link
Collaborator Author

rvion commented Aug 15, 2015

fixed :)

@rvion rvion closed this as completed Aug 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants