WFransen
Hello,
Trying to use the exprotobuf library, but get the following error message:
defmodule Messages do
use Protobuf,
from: Path.expand("/home/wannes/Documents/ex_cucumber_message/messages.proto")
# use_package_names: true,
# namespace: :"Elixir"
end
> $ mix compile
Compiling 1 file (.ex)
== Compilation error in file lib/cucumber_messages/messages.ex ==
** (CaseClauseError) no case clause matching: %Protobuf.Field{fnum: 1, name: :name, occurrence: :defaulty, opts: [], rnum: 2, type: :string}
lib/exprotobuf/define_message.ex:147: Protobuf.DefineMessage.define_trivial_typespec_fields/2
lib/exprotobuf/define_message.ex:135: Protobuf.DefineMessage.define_trivial_typespec/1
lib/exprotobuf/define_message.ex:54: Protobuf.DefineMessage.def_message/3
lib/exprotobuf/builder.ex:135: anonymous fn/6 in Protobuf.Builder.generate/2
(elixir 1.10.3) lib/enum.ex:2111: Enum."-reduce/3-lists^foldl/2-0-"/3
lib/exprotobuf/builder.ex:82: Protobuf.Builder.generate/2
(stdlib 3.13) erl_eval.erl:680: :erl_eval.do_apply/6
(stdlib 3.13) erl_eval.erl:449: :erl_eval.expr/5
I’ve put the code at : GitHub - WannesFransen1994/ex_cucumber_messages · GitHub . The proto file is messages.proto .
Note: The proto file can be parsed with the ahamez/protox library, which appears to be more performant but does require compile-time external dependencies. Hence my slight personal preference to exprotobuf, if it compiles.
Thank you in advance.
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hi everyone,
I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding.
I sta...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
I’m new to elixir and just tried to install the elixirLS extension for VScode(ium) and it is throwing some errors that I would like help ...
New
Other Trending Topics
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #ai
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #elixirconf-eu
- #metaprogramming
- #hex










Showing Posts 1 to 6- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
hauleth
Just out of the interest - why not use Elixir-native implementations of Gherkin parser and/or full Cucumber-like BDD testing libraries? For example there is mine Watermelon library.
WFransen
Thank you for your blazing fast response! I’ve only seen cabbage and whitebread tbh. The problem was that either it wasn’t fully compliant with the gherkin syntax/standards / testdata / features, or had bugs / missing implementations.
Hence the effort to try to go into the cucumber monorepo. (using their testdata, also with the berp parser etc…) This seemed us more manageable. Feel free to check my progress at GitHub - WannesFransen1994/ex_gherkin · GitHub and honestly help would be so much appreciated!
Or am i completely wrong here? ^^’
WFransen
Oh forgot to say this, but instead of holding a complete conversation on elixir forum (if you want to ask more direct questions), feel free to hit me up on the Elixir slack (username WFrans).
rbino
I found your thread while googling for a similar error that was happening in my codebase, it seems that the latest version of gpb changed its internal structure and ExProtobuf does not support it yet.
I’ve opened an issue and a PR
https://github.com/bitwalker/exprotobuf/issues/113
If you want a quick fix you could probably just add
to your
mix.exshauleth
You can check out mine library, and if something is missing, then you can open an issue and I will look into it as soon as I will find time. Probably
Backgrounddo not work right now, but the question is whether it should be treated assetup_allorsetup.WFransen
Thank you for your reaction. I’ve tried both adding the dependency and compiling with your PR branch, but both fail. The error message changed a little bit though: