-
Notifications
You must be signed in to change notification settings - Fork 367
Conversation
…ality up to sync with the main branch.
…xing issue with editing of lists.
@mrmowgli: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/ |
Hrmm Just using the tests from the main branch. I'll look into updating these, however I have seen some comments regarding testing kicking around. Anyone know what the current state of testing is for the todos app on the main branch? |
Tests run correctly locally, looking into test results from circle. |
…it apparently tracks this.
Well this brings the coffeescript branch up to date, to 1.4, as well as the tests. Everything works, and should be at par with the current master branch. Please merge. Thanks! |
Great stuff @mrmowgli! Thank you |
@GeoffreyBooth have you seen this? It looks like you might be taking things in a similar direction? |
I didn’t see this, but I’m not a fan of the backticked I added a comment on meteor/meteor#7459 about how a bug was introduced in I also created https://github.com/meteor/todos/tree/coffeescript-1.4.1.1. There’s essentially no change between 1.3.4.4 and 1.4.1.1. I didn’t want to upgrade the main |
P.S. I’m working on a pull request for CoffeeScript that adds support for Currently my PR doesn’t support non-top level |
I'm not a fan of the backticks either, however my main goal was a working version with the latest Meteor. I actually don't mind having an example somewhere of the backtick style, since it IS valid javascript. But I don't like having it in the TODO exaomple, since it's the main scaffolding. Hopefully the coffeescript pull request from @GeoffreyBooth will do the trick. |
@mrmowgli we could maybe make a |
@tmeasday here’s the test I was referring to: https://github.com/GeoffreyBooth/coffeescript-modules-test-meteor-todos It’s a fork of the Todos |
@GeoffreyBooth - I actually would rather avoid having any extra branches kicking around. I'd rather have there be one official way of dealing with this, and perhaps listing the backtick import as a temporary fix in the Readme. Of course that suggests the coffeescript fork gets pulled in. As far as merging goes I'm happy to merge any additional updates, and rip out what I can. I actually already pulled out the ListModules / TodosModules but left in the denormalizer, since I didn't understand why it was in there and wanted to keep the branch relatively close to your original submit. Hapy to rp out any more logging statements, although I think I have most of them out by now. |
As to branches and whether backticks or That said, I’m not sure that’s MDG’s intention for this I’ll happily rewrite my version if and when the modules PR gets merged into CoffeeScript, but I can’t imagine a change that large getting tested and accepted too quickly. We would also need to update the |
I think we are fairly unopinionated about CS, I'll leave it to you guys as to what should be "recommended" in this branch. I would be inclined to agree with @GeoffreyBooth that less branches is probably better, as it's easier to keep them up to date and more discoverable for people. |
Hrmm trying to merge changes actually runs into some interesting issues, and from updating to 1.4.1.1 I think I see some hints of the meteor bug #7459 (See below). So perhaps until the loader changes from @GeoffreyBooth get pulled in, we can hold off on this merge. In the meantime anyone reading this thread should know that my branch (mrmowgli/todos) does work with Meteor 1.4.1, uses partial backticks for some imports, and is current with the main branch in terms of functionality and tests. You can use my fork as a working example against the latest versions of Meteor, until we get loader issues resolved. And then it sounds like @GeoffreyBooth will be updating the original todos coffeescript branch for the new loader and bringing it current with master. .meteor/packages/meteor-tool/.1.4.1_1.1twluyv++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/isopackets/ddp/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:165
throw error;
^
TypeError: Cannot set property './todos.coffee.js' of undefined
at ImportScanner._checkSourceAndTargetPaths (/tools/isobuild/import-scanner.js:275:7)
at /tools/isobuild/import-scanner.js:178:12
at Array.forEach (native)
at ImportScanner.addInputFiles (/tools/isobuild/import-scanner.js:177:11)
at /tools/isobuild/compiler-plugin.js:1011:15
at Array.forEach (native)
at Function.computeJsOutputFilesMap (/tools/isobuild/compiler-plugin.js:982:19)
at ClientTarget._emitResources (/tools/isobuild/bundler.js:930:8)
at /tools/isobuild/bundler.js:701:12
at /tools/utils/buildmessage.js:359:18
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:352:34
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:350:23
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.enterJob (/tools/utils/buildmessage.js:324:26)
at ClientTarget.make (/tools/isobuild/bundler.js:692:18)
at /tools/isobuild/bundler.js:2586:14
at /tools/isobuild/bundler.js:2675:20
at Array.forEach (native)
at Function._.each._.forEach (/home/alewis/.meteor/packages/meteor-tool/.1.4.1_1.1twluyv++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/underscore/underscore.js:79:11)
at /tools/isobuild/bundler.js:2674:7
at /tools/utils/buildmessage.js:271:13
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:264:29
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:262:18
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:253:23
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.capture (/tools/utils/buildmessage.js:252:19)
at bundle (/tools/isobuild/bundler.js:2567:31)
at /tools/isobuild/bundler.js:2514:32
at Object.withCache (/tools/fs/files.js:1585:12)
at Object.exports.bundle (/tools/isobuild/bundler.js:2514:16)
at /tools/runners/run-app.js:582:36
at Function.run (/tools/tool-env/profile.js:489:12)
at bundleApp (/tools/runners/run-app.js:572:34)
at AppRunner._runOnce (/tools/runners/run-app.js:625:35)
at AppRunner._fiber (/tools/runners/run-app.js:884:28)
at /tools/runners/run-app.js:402:12
|
The current Anyway I’m going to close this for now, as I don’t think we should be using backticks in a CoffeeScript example unless absolutely necessary. I’m pushing to get the modules PR accepted into CoffeeScript as soon as possible, so hopefully this will be a moot point before too long. |
any news? |
I assume you’re asking about when a version of this with unbackticked If you want to see a version of this with unbackticked |
Well, that happened faster than I thought it would. CoffeeScript 1.11.0 with support for modules is here, and I’ve opened a PR to Meteor to update Meteor’s |
This fixes minor issues with upgrades from 1.3.1 to 1.4 and brings the Todos coffeescript branch up to current with the master branch.