Open sethladd opened 9 years ago
Here's the code I was looking at:
import 'package:sky/framework/fn.dart';
class HelloWorldApp extends App {
@override
UINode build() {
return new Text('Hello, world!');
}
}
also in that directory:
<sky>
<script>
import 'app.dart';
void main() {
new HelloWorldApp();
}
</script>
</sky>
and
name: skyapp
dependencies:
sky: any
Thanks! Is the plugin completely broken (i. e., no squiggly lines for errors, etc.)?
BTW, was this before restarting ST? Restarting is required.
This was after a restart. I will double check after a clean restart.
On Thu, May 7, 2015 at 11:23 PM Guillermo López-Anglada < notifications@github.com> wrote:
BTW, was this before restarting ST? Restarting is required.
— Reply to this email directly or view it on GitHub https://github.com/guillermooo/dart-sublime-bundle/issues/502#issuecomment-100116068 .
Hello, I remarked that this error happen (autocompletion & dartanalyser fails) when:
I fixed that by replacing in plugin 'Dart/lib/dart_project.py'
...
class DartProject(object):
...
def _get_top_level_dir(self, name):
p = os.path.join(self.pubspec.parent, name)
if os.path.exists(p):
return p
with
...
class DartProject(object):
...
def _get_top_level_dir(self, name):
p = os.path.join(self.pubspec.parent, name)
return p
Errors in output: