profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/rodrigues/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Victor Rodrigues rodrigues @ErlangSolutions

rodrigues/brick 2

layer!

rodrigues/awesome-elixir 1

A curated list of amazingly awesome Elixir and Erlang libraries, resources and shiny things.

rodrigues/absinthe_plug 0

Plug support for Absinthe, the GraphQL toolkit for Elixir

rodrigues/active_model_serializers 0

ActiveModel::Serializer implementation and Rails hooks

rodrigues/airbrakex 0

Elixir client for the Airbrake service.

rodrigues/airbrakex_ignorer 0

Simple filtering module for airbrakex errors

rodrigues/calendar.js 0

Port of Python calendar.py module to JavaScript

startedPremwoik/gradualizer-ex

started time in 2 days

issue openedelixir-lang/elixir

Problem with structured logger truncation

Environment

  • Elixir & Erlang/OTP versions (elixir --version): master with otp 24
  • Operating system: macOS

Current behavior

We're logging using a map as the log message. One of the values is a reasonably big string, but we don't want to truncate it, we need to log the full payload. Today the logger truncates it though to first 4096 characters 🤔

Logger.info(%{msg: long_string})
# gets truncated: xxxxxxxxxx" <> ...]

I was looking into how to tweak that, and it seems to me thattruncate: :infinity configuration only works if the message is a binary.

I'm not sure if there's currently a way to tweak that, couldn't find anything related to it.

Screen Shot 2021-09-03 at 21 57 40

I have an example in .livemd here: https://gist.github.com/rodrigues/f09d9f3816cfec32f65a7f15715184e7

Expected behavior

Be able to tweak the printable limit / depth of structured logs.

Thanks!

created time in 13 days

startedelixir-nx/explorer

started time in 18 days

startedCargoSense/vex

started time in 18 days

startedCargoSense/briefly

started time in 18 days

startedNFIBrokerage/mint_web_socket

started time in 18 days

issue openedlivebook-dev/livebook

Start new notebook with an Elixir section

I was thinking that when someone creates a new notebook, it would be nice to start it already with an empty Elixir block, and with the input focus there, so the user could start right away with writing code.

Google Colab and JupyterLab seem to agree with me on this one 😁

What do you think?

Cheers!

created time in 20 days

startedHernanRivasAcosta/kafkerl

started time in 22 days

PR opened spreedly/kaffe

Fix support for :worker_mod config in WorkerSupervisor

Hi,

There's :worker_mod app env that can be configured, currently used by the subscriber when calling process_messages/5.

The WorkerSupervisor starts Kaffe.Worker directly though, using the same setting, we can change consistently the worker implementation. I didn't identify other places that depend on the worker module.

Thanks!

+5 -1

0 comment

1 changed file

pr created time in 22 days

create barnchrodrigues/kaffe

branch : fix_worker_mod

created branch time in 22 days

startedswoosh/swoosh

started time in 25 days

startedlivebook-dev/kino

started time in a month

startedlivebook-dev/vega_lite

started time in a month

startedananthakumaran/tree-sitter-elixir

started time in a month

starteddashbitco/broadway_dashboard

started time in a month

startedslab/delta-elixir

started time in a month

issue commentlivebook-dev/livebook

Hover not working in some cases

Also get no hover in these scenarios:

self()
send(self(), :wut)
rodrigues

comment created time in a month

issue commentlivebook-dev/livebook

Add hover docs for Kernel function calls

@josevalim are you sure? I just reproduced in the latest version in main https://github.com/livebook-dev/livebook/commit/f91c71bf3aa0370221f543703df40be7133ef9f3

When created the issue, was running latest in hex.

Took this screenshot while hovering:

Screen Shot 2021-08-20 at 19 25 23 (2)

rodrigues

comment created time in a month

issue openedlivebook-dev/livebook

Need to press tab twice for switch completion suggestions

Current behavior

If I do Enum.a and press tab, it suggests: Enum.all?. I need to press tab twice to suggest Enum.any?.

Expected behavior

Unless that was intentional, I guess it should be changing when pressing tab once?

created time in a month

issue openedlivebook-dev/livebook

Create persisted notebook from file browser

When you open livebook, you can navigate through the file system to open an existing notebook.

Every time folder changes, it focuses on the filename input so you can refine the search, that's great.

It would be nice if after typing the filename on the input, if it doesn't exist, we could create it right there.

I thought clicking New notebook in this scenario did that, but it creates a notebook in memory instead.

If the user doesn't provide, auto-add the .livemd extension in case it wasn't provided.

Even cooler if hitting Enter would have same effect as pressing New notebook. 🌈

created time in a month

issue openedlivebook-dev/livebook

Hover docs are only available after a cell evaluation

It looks like before running a cell, you can't access the documentation through hover.

If that's not a hard constraint, it would be nice to have them before running.

created time in a month

issue openedlivebook-dev/livebook

Toggle hover docs from keyboard

It would be amazing to have a way to get to docs without going to the trackpad, just with the keyboard 👍

created time in a month

issue openedlivebook-dev/livebook

Add hover docs for Kernel function calls

Hover docs are a great addition to livebook.

Thinking if it isn't too hard, it would be nice to have them also for the calls with the implicit Kernel.:

send elem spawn etc.


Spotted a few other stuff playing these days, creating more issues, feel free to close what doesn't make sense of course, maybe I'll push a PR for something this weekend? 😅

created time in a month

delete branch rodrigues/livebook

delete branch : not_log_task_async

delete time in a month

PR closed livebook-dev/livebook

Do not generate warning logs in livebook when using Task.async

Using Task.async in livebook, some error logs might make people a bit confused: Screen Shot 2021-08-19 at 00 00 36

These are because Task.async does link the processes and the evaluator doesn't have a corresponding handle_info/2 callback for them. I was thinking it would be a good improvement to silence on these, so the experience can be more smooth to the user: Screen Shot 2021-08-18 at 23 41 44

Do you think it's a good idea to go this path?

EDIT: thinking we should error instead of warn in the Logger call that was added. 👍

Thanks!

+34 -0

6 comments

2 changed files

rodrigues

pr closed time in a month

pull request commentlivebook-dev/livebook

Do not generate warning logs in livebook when using Task.async

Nice, guys, as I see now a proper solution to this involves a bigger change, closing this PR, leaving it to your hands @jonatanklosko 👍

Cheers!

rodrigues

comment created time in a month

push eventrodrigues/livebook

Victor Rodrigues

commit sha 37e52d514acc2e986a2639544c4ff41abefbae91

Do not generate warning logs in livebook when using Task.async

view details

push time in a month

PR opened livebook-dev/livebook

Do not generate warning logs in livebook when using Task.async

Using Task.async in livebook, some warnings get logged that might make people a bit confused: Screen Shot 2021-08-19 at 00 00 36

These are because Task.async does link the processes and the evaluator doesn't have a corresponding handle_info/2 callback for them. I was thinking it would be a good improvement to silence on these, so the experience can be more smooth to the user: Screen Shot 2021-08-18 at 23 41 44

Do you think it's a good idea to go this path?

Thanks!

+35 -0

0 comment

2 changed files

pr created time in a month

create barnchrodrigues/livebook

branch : not_log_task_async

created branch time in a month

fork rodrigues/livebook

Interactive and collaborative code notebooks for Elixir - made with Phoenix LiveView

fork in a month