Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 22:49
    straight-shoota unassigned #8712
  • 22:49
    straight-shoota unassigned #8712
  • 22:49
    straight-shoota assigned #8712
  • 22:22
    hugopl opened #12537
  • 21:42
    straight-shoota labeled #12536
  • 21:42
    straight-shoota labeled #12536
  • 21:42
    straight-shoota opened #12536
  • 21:22
    straight-shoota milestoned #12535
  • 21:22
    straight-shoota milestoned #12535
  • 15:05
    straight-shoota opened #12535
  • 15:05
    straight-shoota labeled #12535
  • 15:05
    straight-shoota labeled #12535
  • 14:09
    CoelacanthusHex synchronize #11980
  • 13:49
    yb66 opened #12534
  • 13:49
    yb66 labeled #12534
  • 11:28
    asterite closed #12532
  • 11:28
    asterite closed #12533
  • 11:24
    analogsalad synchronize #12530
  • 11:24
    analogsalad synchronize #12530
  • 09:01
    straight-shoota closed #12527
Anniiii
@anniiii:matrix.org
[m]
bc. like this i cant just switch case on the provided ones and instead have to check for each if its default or provided
Paulo Coghi
@paulocoghi

Super newbie question: Trying to install github.com/naqvis/webview as a shard, and after creating the following shard.yml:

dependencies:
  webview:
    github: naqvis/webview

and running shards install, I get:

Error in shard.yml: missing required attribute: name at line 4, column 1

  2.   webview:
  3.     github: naqvis/webview
     ^

Resolving dependencies
ddd
@Dan-Do
You missed the name at beginning like this https://github.com/athena-framework/console/blob/master/shard.yml
Paulo Coghi
@paulocoghi
:facepalm: Thanks
From IRC (bridge bot)
@FromIRC
<walez> hey togehter, did someone use Neovim/Nvim for Crystal development and can tell me some good plugins or settings for nvim.
George Dietrich
@Blacksmoke16
there is https://github.com/vim-crystal/vim-crystal but idk anything about it. like if it still works etc
From IRC (bridge bot)
@FromIRC
<walez> @Blacksmoke16: Thanks for the link, that is a good point to start with, i will check it.
<walez> @Blacksomke16: ok with this vim Plugin I have better Synatax highlighting now. Thanks :⁠D
George Dietrich
@Blacksmoke16
:thumbsup: nice
From IRC (bridge bot)
@FromIRC
<riza> it works well, I use it
<spuun> same here
<riza> it's not perfect but it does fine
<walez> @roza and @ spuun: did you have run a lsp in Neovim too? i only find scry but i dont know if its support by nvim-lspconfig
From IRC (bridge bot)
@FromIRC
<riza> I do run an lsp, but I'm using gvim not nvim
From IRC (bridge bot)
@FromIRC
<walez> @rizza: i will check it and if its work well i can post the nvim config for the lsp part.
From IRC (bridge bot)
@FromIRC
<SamantazFox_> How can I access a method's Annotation outside of said method?
George Dietrich
@Blacksmoke16
OR better yet
you can use #find (or #select) to the method(s) with the annotation
depends on what you're wanting to do exactly id say
From IRC (bridge bot)
@FromIRC
<SamantazFox_> The goal would be to have a module, with multiple methods in it, and each of those methods have annotations that stores metadata
<SamantazFox_> It's for the different rouotes of invidious ^^
George Dietrich
@Blacksmoke16
coughswitchtoathenacough
1 reply
From IRC (bridge bot)
@FromIRC
<SamantazFox_> haha xD
<SamantazFox_> not that easy
George Dietrich
@Blacksmoke16
neither is maintaining the current version :wink:, could do it over time as you could run both at once
From IRC (bridge bot)
@FromIRC
<SamantazFox_> We're currently cleaning the code
<SamantazFox_> that's a prerequisite before moving anywhere
George Dietrich
@Blacksmoke16
nice, how would this module with annotations work? like they're class methods that map to a route?
From IRC (bridge bot)
@FromIRC
<SamantazFox_> currently, we have the following things:
<SamantazFox_> 1) a list of routes declarations: https://github.com/iv-org/invidious/blob/master/src/invidious.cr#L317-L399
George Dietrich
@Blacksmoke16
be pretty easy to build that out with a macro, just need to move some of the data into the annotation
From IRC (bridge bot)
@FromIRC
<SamantazFox_> 2*
<SamantazFox_> and finally, the methods themselves, store in modules
<SamantazFox_> <Blacksmoke16> "be pretty easy to build that out with a macro" <- yep, that's the idea
George Dietrich
@Blacksmoke16
ahh where #2 generates kemal based routing stuff?
From IRC (bridge bot)
@FromIRC
<SamantazFox_> yes
<SamantazFox_> that's something that was initiated by Matthew McGarvey, one of the Lucky devs
<SamantazFox_> And I'd like to improve it a bit in order to deduplicate authentication code, e.g
<SamantazFox_> (Though, currently I'm working on rewriting the database code, and this kind of improvements will be for the future)
George Dietrich
@Blacksmoke16
i think i'd be easier if you used classes with a parent type, or included another module into the controllers
should be enough to get you started
ofc could have diff annotations for each method or whatever :shrug:
From IRC (bridge bot)
@FromIRC
<SamantazFox_> @Blacksmoke16: nice, thanks :⁠)
<SamantazFox_> I'm not really familiar with includes, especially in modules ^^
George Dietrich
@Blacksmoke16
basically just using it so we can more easily get an array of the types we want