Open ceronman opened 9 years ago
More debugging information:
This happens when it's trying to detect if it's a server app:
if (project.path_to_example and
self.has_prefix(project.path_to_example)):
# TODO(guillermooo): improve detection of cli apps under
# 'example'.
is_cli_script = self._find_at_top('dart:io')
is_not_web_file = (self.is_dart_file and
not self._find_at_top('import:html'))
return (is_cli_script or is_not_web_file)
I get the same Traceback. It started to go wrong when I went into a different project folder. I was trying to use F7 with the intent to serve a different project. But it kept serving the last project. I did some searching and wondered if this is related, https://github.com/guillermooo/dart-sublime-bundle/pull/359. But before I could comment in that issue, F7 started to fetch my dependencies instead; and not do pub serve as I expected. That's when I noticed the error, matching this thread, which gets triggered on subsequent F7 calls. I hope this helps.
I'm getting the following error when running Dart files:
After looking a little bit at the code it looks like
DartRunFileCommand
is not creating aDartFile
without a sublime view object:Happens with version 1.3.7