guillermooo / dart-sublime-bundle

Sublime Text 3 Dart Package
BSD 3-Clause "New" or "Revised" License
264 stars 42 forks source link

Allow project configuration of pubspec.yaml #577

Open mattsonar opened 8 years ago

mattsonar commented 8 years ago

I didn't see anything in the wiki about this, but when I try to build the project it fails with an error:

Could not find a file named "pubspec.yaml" in "<SOME_PATH>"

I would assume the value is hard coded relative to the project root? I say this because it tries to find it at myproject/lib, but in my case it really lives under the root folder myproject.

Is there a way to specify where the pubspec.yaml is located? Or perhaps the plugin can search for it starting from the root of the open project?

my folder structure looks something like:

myproject --.gitignore --README.md --pubspec.lock --pubspec.yaml --web ----website related files (css, js, etc.) --lib ----some dart files ----src ------more dart files and subfolders of dart files

In reality it is actually a bit more complicated as this is just a subproject of a larger project, but I am only trying to get at least the subproject to compile first. In Dartium Editor (the legacy Eclipse based version) I had several subprojects at the root including this "myproject" subproject.