Where to ask for Diesel questions?

Hi guys !
I'm trying http://diesel.rs and have a compilation problem with diesel_codegen_syntex. Apparently it's solved Build Fails on Nightly · Issue #428 · diesel-rs/diesel · GitHub but that doesn't really tell me how do I try diesel today.
So does anyone know if there's a mailing-list of forum for diesel ?

Thanks

PS: for the record, the compilation error:

error[E0432]: unresolved import `syntax::attr::AttrMetaMethods`
 --> /home/xav/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel_codegen_syntex-0.7.2/src/util.rs:3:5
  |
3 | use syntax::attr::AttrMetaMethods;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `AttrMetaMethods` in `syntax::attr`

error[E0432]: unresolved import `syntax::attr::AttrMetaMethods`
 --> /home/xav/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel_codegen_syntex-0.7.2/src/associations/mod.rs:2:5
  |
2 | use syntax::attr::AttrMetaMethods;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `AttrMetaMethods` in `syntax::attr`

error[E0432]: unresolved import `syntax::attr::AttrMetaMethods`
 --> /home/xav/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel_codegen_syntex-0.7.2/src/update.rs:2:5
  |
2 | use syntax::attr::AttrMetaMethods;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `AttrMetaMethods` in `syntax::attr`

error[E0308]: mismatched types
  --> /home/xav/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel_codegen_syntex-0.7.2/src/util.rs:42:17
   |
42 |                 ast::MetaItemKind::Word(ref value) => Some(str_to_ident(&value)),
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `syntax::ast::NestedMetaItemKind`, found enum `syntax::ast::MetaItemKind`
   |
   = note: expected type `syntax::ast::NestedMetaItemKind`
   = note:    found type `syntax::ast::MetaItemKind`

error[E0308]: mismatched types
  --> /home/xav/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel_codegen_syntex-0.7.2/src/associations/mod.rs:57:17
   |
57 |                 MetaItemKind::Word(ref name) => str_to_ident(&name),
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `syntax::ast::NestedMetaItemKind`, found enum `syntax::ast::MetaItemKind`
   |
   = note: expected type `syntax::ast::NestedMetaItemKind`
   = note:    found type `syntax::ast::MetaItemKind`

error[E0308]: mismatched types
  --> /home/xav/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel_codegen_syntex-0.7.2/src/insertable.rs:36:54
   |
36 |             meta_items.iter().map(|i| table_name(cx, i)).collect()
   |                                                      ^ expected enum `syntax::ast::MetaItemKind`, found enum `syntax::ast::NestedMetaItemKind`
   |
   = note: expected type `&syntax::codemap::Spanned<syntax::ast::MetaItemKind>`
   = note:    found type `&syntax::codemap::Spanned<syntax::ast::NestedMetaItemKind>`

error[E0308]: mismatched types
  --> /home/xav/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel_codegen_syntex-0.7.2/src/update.rs:37:50
   |
37 |             let table_name = try!(table_name(cx, &meta_items[0]));
   |                                                  ^^^^^^^^^^^^^^ expected enum `syntax::ast::MetaItemKind`, found enum `syntax::ast::NestedMetaItemKind`
   |
   = note: expected type `&syntax::codemap::Spanned<syntax::ast::MetaItemKind>`
   = note:    found type `&syntax::codemap::Spanned<syntax::ast::NestedMetaItemKind>`

error[E0308]: mismatched types
  --> /home/xav/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel_codegen_syntex-0.7.2/src/update.rs:38:62
   |
38 |             let treat_none_as_null = try!(boolean_option(cx, &meta_items[1..], "treat_none_as_null"))
   |                                                              ^^^^^^^^^^^^^^^^ expected struct `syntax::ptr::P`, found struct `syntax::codemap::Spanned`
   |
   = note: expected type `&[syntax::ptr::P<syntax::codemap::Spanned<syntax::ast::MetaItemKind>>]`
   = note:    found type `&[syntax::codemap::Spanned<syntax::ast::NestedMetaItemKind>]`

error: aborting due to 5 previous errors

error: Could not compile `diesel_codegen_syntex`.

To learn more, run the command again with --verbose.

(CCing @sgrif)

You can as on https://gitter.im/diesel-rs/diesel.

IIRC, this issue can be solved by using the exact version of syntex that diesel specifies in the guide :slight_smile:

There's no syntex version in the "getting started" guide: ```
[dependencies]
diesel = "0.7.1"
diesel_codegen = { version = "0.7.2", features = ["postgres"] }
dotenv = "0.8.0"
dotenv_macros = "0.9.0"


Otherwise thanks for the link, I'll try that.

(for those interested, turns out I wasn't using the right nightly snapshot, and @sgrif has been effectively helpful on gitter)

1 Like