Hello!
I’m running 2.9.0.beta11 on Ubuntu (developer environment) and I get the following errors about these plugins. It works perfectly fine without them. What do I need to do to get these plugins working?
ActionController::RoutingError (No route matches [GET] "/assets/plugins/discourse-adplugin.js")
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/missing_avatars.rb:23:in `call'
lib/middleware/turbo_dev.rb:34:in `call'
ActionController::RoutingError (No route matches [GET] "/assets/plugins/discourse-canned-replies.js")
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/missing_avatars.rb:23:in `call'
lib/middleware/turbo_dev.rb:34:in `call'
ActionController::RoutingError (No route matches [GET] "/assets/plugins/discourse-cakeday.js")
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/missing_avatars.rb:23:in `call'
lib/middleware/turbo_dev.rb:34:in `call'
ActionController::RoutingError (No route matches [GET] "/assets/plugins/discourse-checklist.js")
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/missing_avatars.rb:23:in `call'
lib/middleware/turbo_dev.rb:34:in `call'
ActionController::RoutingError (No route matches [GET] "/assets/plugins/discourse-solved.js")
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/missing_avatars.rb:23:in `call'
lib/middleware/turbo_dev.rb:34:in `call'
ActionController::RoutingError (No route matches [GET] "/assets/plugins/discourse-spoiler-alert.js")
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/missing_avatars.rb:23:in `call'
lib/middleware/turbo_dev.rb:34:in `call'
ActionController::RoutingError (No route matches [GET] "/assets/plugins/docker_manager.js")
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/missing_avatars.rb:23:in `call'
lib/middleware/turbo_dev.rb:34:in `call'
merefield
(Robert)
November 17, 2022, 3:42pm
2
Working on a very similar issue too, in dev.
Did you find a solution?
It looks like for some reason, this code is not firing or files are ending up in the wrong place.
return mergeTrees([appTree, testTree, adminTree]);
},
_generatePluginAppTree() {
const trees = this.pluginInfos()
.filter((p) => p.hasJs)
.map(({ pluginName, directoryName, jsDirectory }) =>
this._buildAppTree({
directory: jsDirectory,
pluginName,
outputFile: `assets/plugins/${directoryName}.js`,
})
);
return mergeTrees(trees);
},
_generatePluginAdminTree() {
const trees = this.pluginInfos()
.filter((p) => p.hasAdminJs)
.map(({ pluginName, directoryName, adminJsDirectory }) =>
this._buildAppTree({
That in turn looks like Ember CLI has not successfully built.
app.import("node_modules/ember-source/dist/ember-template-compiler.js", {
type: "test",
});
app.import(discourseRoot + "/app/assets/javascripts/polyfills.js");
app.import(
discourseRoot +
"/app/assets/javascripts/discourse/public/assets/scripts/module-shims.js"
);
const discoursePluginsTree = app.project
.findAddonByName("discourse-plugins")
.generatePluginsTree();
const terserPlugin = app.project.findAddonByName("ember-cli-terser");
const applyTerser = (tree) => terserPlugin.postprocessTree("all", tree);
return mergeTrees([
createI18nTree(discourseRoot, vendorJs),
parsePluginClientSettings(discourseRoot, vendorJs, app),
app.toTree(),
And yet I’ve got Build successful (70398ms) – Serving on http: ...
david
(David Taylor)
November 17, 2022, 3:53pm
3
How are you starting your development servers? Are you running bin/ember-cli
?
merefield
(Robert)
November 17, 2022, 3:54pm
4
Yes. It’s a non-standard dev install though, I’m running ember-cli on a separate container, sharing a volume with the rails server (investigating if this is the problem)
david
(David Taylor)
November 17, 2022, 3:58pm
5
My main question is: why are you doing that?
Things to check:
Does the ember-cli process have access to the plugins directory?
What does your shared volume include? The whole Discourse directory? In particular, I’m thinking of public/assets
and app/assets/javascripts/discourse/dist
Where are your HTTP requests going? Ember-cli’s proxy? Or straight to the Rails app? (either can work, but knowing which way round you’re doing it may help debug)
1 Like
merefield
(Robert)
November 17, 2022, 4:00pm
6
Thats my current config, but checking
They are going to Ember, and it’s proxying to the rails port.
Don’t ask (educational stuff though debugging the pipeline!).
Useful avenues to check. Was just curious how the OP got on.
I will report my findings for the benefit of others doing crazy configs.
Update :
David Taylor:
Does the ember-cli process have access to the plugins directory?
Ooops, this is where I think I’ve messed up!!
I forgot to add the additional plugins to both containers…
1 Like
merefield
(Robert)
November 17, 2022, 4:12pm
7
David Taylor:
Does the ember-cli process have access to the plugins directory?
@david that was the issue. I’d added a load of ‘local’ volume plugin mappings and forgot to add all of them to both containers
so presumably it had all the nice Ruby on Rails, but none of the Javascript on tap …
It’s now working
@hyphalos let us know if you are still struggling and we might be able to help …
1 Like