diff --git a/Commands/Default.sublime-commands b/Commands/Default.sublime-commands index 46838b70..4b727385 100644 --- a/Commands/Default.sublime-commands +++ b/Commands/Default.sublime-commands @@ -81,7 +81,7 @@ { "caption": "SublimeHaskell: Test", "command": "sublime_haskell_build", - "args": { "task": "install" } + "args": { "task": "test" } }, { "caption": "SublimeHaskell: Run", diff --git a/Messages/2.1.1.md b/Messages/2.1.1.md index 15530b62..515d5a1f 100644 --- a/Messages/2.1.1.md +++ b/Messages/2.1.1.md @@ -9,6 +9,8 @@ SublimeHaskell 2.1.x is a minor release tree for enhancements and newly resolved **Issue 365 (partial)**: Fix dignostic message when SublimeHaskell doesn't accept the `prettify_executable` setting's value. +**Issue 364**: `SublimeHaskell: Test` actually invoked the `install` task, not the `test` task. Also added `SublimeHaskell - Test` to the "Build With..." menu. Issue fixed. + ## 2.1.0 **Issue 352**: Add command line options for `stylish-haskell` and `hindent`. NOTE: These are lists, not strings. diff --git a/SublimeHaskell.sublime-build b/SublimeHaskell.sublime-build index f6ddfc85..e1c2ca75 100644 --- a/SublimeHaskell.sublime-build +++ b/SublimeHaskell.sublime-build @@ -19,6 +19,10 @@ { "name": "Install", "task": "install" + }, + { + "name": "Test", + "task": "test" } ] -} \ No newline at end of file +} diff --git a/build.py b/build.py index 99e60622..f61ec6c8 100644 --- a/build.py +++ b/build.py @@ -223,6 +223,8 @@ def done_callback(): # Run them msg = '{0} {1} with {2}'.format(action_title, project_name, tool_title) + Logging.log(msg, Logging.LOG_DEBUG) + Logging.log('commands:\n{0}'.format(commands), Logging.LOG_DEBUG) Common.show_status_message_process(msg, priority=3) Utils.run_async('run_chain_build_thread', self.wait_for_chain_to_complete, view, project_dir, msg, commands, on_done=done_callback)