sublimehq / sublime_text

Issue tracker for Sublime Text
https://www.sublimetext.com
804 stars 39 forks source link

Builds Fail with Homebrew Dart SDK and Sublime Dart Bundle #497

Open partydrone opened 9 years ago

partydrone commented 9 years ago

When trying to build dart files, I see the following error in the Sublime Text console:

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 524, in run_
    return self.run(**args)
  File "exec in /Applications/Sublime Text.app/Contents/MacOS/Packages/Default.sublime-package", line 168, in run
TypeError

I am running:

To reproduce:

brew tap dart-lang/dart
brew install dart-lang/dart/dart
main() {
  print("Hello, Dart world!");
}

In terminal:

dart sample.dart

… produces the expected outcome:

Hello, Dart world!

I created a corresponding issue at dart-lang/dart-sublime-bundle#361 in case this is a bug with that bundle.

FichteFoll commented 9 years ago

What exactly happens when you build repeatedly? Nothing?

The line corresponding to the traceback is:

print("Running " + shell_cmd)

so the only thing that could go wrong here is a mistyped shell_cmd variable. That is, however, not used by the build system. Can you verify that this build system is run by selecting it manually (Tools → Build System)?

What other plugins do you have installed? It could be that another plugin is interfering the exec chain.

partydrone commented 9 years ago

Running a build from the menu Tools > Build produces the error every time. But when I use the keyboard shortcut ⌘B, I only get the error once. Nothing happens after that.

Here is a list of installed packages:

partydrone commented 9 years ago

I just did a clean install of Sublime Text 3, installed Package Control and Dart. Loaded the dart file and used Tools > Build to run the script.

Here is a complete dump of startup and build from the console:

launching: /Applications/Sublime Text.app/Contents/MacOS/plugin_host
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_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.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 Package Control.Package Control
reloading plugin Dart.__init__
reloading plugin Dart.AAA
reloading plugin Dart.analyzer
reloading plugin Dart.browser
reloading plugin Dart.cmds_search
reloading plugin Dart.config_check
reloading plugin Dart.dartlint
Dartlint plugin loaded.
reloading plugin Dart.dev_cmds
reloading plugin Dart.docgen
reloading plugin Dart.execute
reloading plugin Dart.format
reloading plugin Dart.misc
reloading plugin Dart.polymer
reloading plugin Dart.pub_support
reloading plugin Dart.run
reloading plugin Dart.test_runner
plugins loaded
Dart temp logger:  new-style User settings file found, not copying old settings.Everything ok.
loaded 842 snippets
Package Control: Skipping automatic upgrade, last run at 2014-09-28 23:49:17, next run at 2014-09-29 00:49:17 or after
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 524, in run_
    return self.run(**args)
  File "exec in /Applications/Sublime Text.app/Contents/MacOS/Packages/Default.sublime-package", line 168, in run
TypeError

Same error.