#dev-general
1 messages · Page 549 of 1
cube would get mad at me if I added that

xd
we are christian server
attack and dethrone god
i've tried several times
oh
but he just punished me to hell
damn that sucks
50 shades of clip?
was talking about cube not clip
50 sided cube
50 sides of an edgeless cube
ok gonna stop now
d50
mod btw
?
o
believe the "Norimaki Synthesizer" is the taste thing I was talking about earlier btw
they are secret. don't talk about em
ah
I know the thing that does smells
but not taste

well this one u've got a few tubes of different shits
should I flashbang you guys?
u got citric acid
magnesium chloride
sodium chloride
all the good stuff
and then it simulates any taste
ewwwww

shit looks like fucked up sushi
no ty
can you eat this
you can eat literally anything if you put your mind to it
can you eat a car
😋
yes...
assuming you don't die before you finish your meal
This is what happens when you forget to add -Xmx to your minecraft server 🥲
lol
-Xms256M -Xmx2G is this correct?
yessssnnn'''t

man I just can't stop playing systemd
OpenRC?
Wierdos
yea seriously
OpenRollerCoasterTycoon2?
😌
Find various artifacts and resources used by Krypton here
Fancy
Has anybody edited datapacks before, not made one but changed files inside one to suit a need? i'm trying to remove custom itoms from a datapack but keep its terrain generation and I have zero idea where to start sadly
anyone here who's used reposilite before got any idea how to mirror central? should I just set it to proxy https://repo.maven.apache.org/maven2?
Yup
alright, thanks
trying to make it so you can depend on the Krypton API by only using one repo lol
lol
so I'm proxying both central and libraries.minecraft.net
yeah that's what I have
lit
okay I have some really strange behaviour
if I enable SSL, it throws an error about the key store and resolves fine
if I disable SSL, it starts up without errors but Caddy can't dial it (resulting in a 502)
tf
I just have ssl setup on nginx and have the reposilite one turned off
https://paste.helpch.at/uwocivopup.json this is the error I get with SSL disabled
it can't connect
and with SSL enabled, the port is opened properly and I can telnet it
You need to pass a few headers
Reposilite uses websocket connection to provide remote CLI functionality.
https://repo.kryptonmc.org/ and now we have the empty page of death
maybe it's time I just switch to NGINX
So, I know you can do something like this in gradle:
root
project // inherits from root's `subprojects`
folder
project (with build.gradle) // declaring dependency 1 here
project (with build.gradle) // Has to repeat declaring dependency 1 again
Basically this way the projects inside the folder repeat the same dependencies (project outside of the folder doesn't need it)
But I wanted to know if this was possible instead
root
project // inherits from root's `subprojects`
folder // works as a secondary root with `subprojects` on it, projects inside no longer need to repeat dependencies
project (with build.gradle)
project (with build.gradle)
I tried earlier but didn't seem to have worked
Not sure if this I'm gonna say is valid but can't you stick a new settings.gradle inside a folder or somewhere?
And like
Do the thing
I can try that, the way i had it was with just one settings.gradle
So CoreProtect is open source now 👀
It needs an ant file as well
maybe a cargo.toml while we're at it
Sadge
and, like a lot of other non-open-source plugins that go open-source, I see the codebase is pretty terrible lol
lol
that's a huge project being worked on by a massive amount of developers, so I'd say: pretty awful
I imagine a decent chunk of the codebase hasn't been touched in the last 20 years or something
still including technical debt from Windows NT!
that a no?
let me just interject for a moment
Windows NT is the kernel, not an OS 🙂
sorry, just had to correct that
Didnt linus show like the function dependency graphs in windows being very very very "sphegetti"
i hate that, they also have one permission for each one of those commands
Windows NT is a proprietary graphical operating system produced by Microsoft, the first version of which was released on July 27, 1993. It is a processor-independent, multiprocessing and multi-user operating system.
The first version of Windows NT was Windows NT 3.1 and was produced for workstations and server computers. It was intended to compl...
🙂
Yeah, it didn't recognize the file 😦
oh yeah, NT was an OS once, it's the name for the family nowadays though
yessir
I'm gonna finally rewrite all of the massively outdated Krypton documentation lol
this is gonna be fun
Minecraft soontm
Does jshell provide any way to change the working directory?
Does that mention changing jshell directory somewhere in there or was just unrelated?
🥲
🥲
thinking about the SecurityManager btw, someone please explain to me why tf it's in java.lang lol
Sadge 😩
composite builds OP
... until you realise that yours somehow breaks on Gradle 7.1 🥲
There were like 8 total packages when it came out, I bet it made sense to classify it as a language feature
What's the best way to kick a player from a world?
to where..
¯_(ツ)_/¯
like if I was regenerating my bedwars map, and a player was in the world, and there was no main lobby set, where would they go?
into the void
I couldn't find any way to get the default world
🤨
send 'em to 8.8.8.8
lol
Hi, do you know if oracle sets up a default password for the default admin vm agent?
nevermind haha
I'm having a problem now, I'm trying to intall docker in CentOS, but somehow it tells me that i need "slirp4netns" and "fuse-overlayfs" dependencies to install it, but when I try to install them they it returns that they don't exist :,c
Should I just skip them?
google those dependencies with 'centos' and it will probably show their actual names
anyway centos bad ;)
Yea I just did it haha, had to "localinstall" every mirror
any good sound for removing something, like a chat tag?
villager hmm thing
was looking for something like an eraser sound, but there's nothing like this
lava item sound
fak, I closed a server without stopping it first, how do I now stop the server lol
Like I just pressed the x to close it
Kill it?
Should I get the domain fredthedoggy.com or fredthedoggy.me?
I currently use me.fredthedoggy in java
But it's more expensive, and seems less professional
.me is kinda intended for personal portfolios and stuff, I don't think there's anything unprofessional about it
Okay, ig I'll go with .me then, no changing my Java packages
$20/y
it's not that much
I never said it was lol
Does everyone use the default command handler or custom ones?
god no
most people here will use some sort of framework
triumph-commands, ACF, and Cloud are all pretty popular
I just started using another framework also, noticed how bad the standard one actually is, or well, just inefficient
the vanilla system is fine, but yeah it's pretty verbose
it leaves all the work up to you
Do you by any chance know which framework this is?
@Command(identifier = "duel start",
description = "Start a duel against another player")
public void duelStart(CommandSender sender,
@Arg(name = "playerName", description = "Player Name")String playerName
){
nope
possibly worldedit's one then
yes
well, it uses one
isn't it called piston or something
no idea
Hmmm cant find it
Ah ty
mf better
shut
no u
Piggy do you know if this is the Piston command handler?
Ohhh alright, ty! Couldn't find examples of Piston in the git
actually no
that might not be piston
seems piston calls description "desc", not "description"
and I'm just looking at w/e for examples
Rip
looks like a clone tho 🤔
where'd you see it?
I mean it's pretty similar in the things you see in that example, besides the annotation parameter names
This is from an open-source project, where they extracted the command handler
Commands in here https://github.com/PrisonTeam/Prison/tree/master/prison-spigot/src/main/java/tech/mcprison/prison/spigot/utils
Don’t they use intake?
wdym
intake is pre 1.13/WE 6
Oh lol
The plugin is made in 1.13.2 tho
?
I linked you the code of the "command framework" you're looking for
it's all in core there
Yeah ik, just looking for where it was originated from
could be unique
It's not, they got it from somewhere
The current owner couldn't find where it was from either, but the old developers didn't make it themselves
Looks a lot like Piston though, might just be a clone of it with a few changes
Why is it so hard to get a nice polybar theme
I hate customisability
I just want something that looks nice and works, not having to install and clone 59 different scripts and packages
copy some shitty git repo that uses an in house colour scheme util that doesn't even work
ugh
If anyone uses i3 and polybar and has a theme that looks nice please send me it
When I add a datapack to a java server. I have to add it to the datapack of a world. Do I have to add the data pack to EACH world if I have multiple? Or just one?
lol
rm -rf'd
Topless
:))
So I don't quite like PHP but I need to do some server side stuff for a web project, would java be an acceptable alternative?
just saying
Ruby on Rails 😌
It needs to be in Java, Matt
I mean, the result will be displayed in front end but still, dont want the code to be accessible
What?
What does that have anything to do with being in Java?
I need it to be made in java
🤨
Stuff will be processed on server side and displayed on client side or whatever front end is called
What does the code being in kt or java have to do with accessibility
which can still be done with like, any language no?
I didnt said it does
This was for matt's statement about kotlin
Let me rephrase that
I need to do a web project, using java will be a big bonus. The main stuff will be done on server side and then just display the final result on a page.
I could probably use js but im not a big fan and the code is accessible by anyone through inspect.
You mean .. like this?
I could probably use js but im not a big fan and the code is accessible by anyone through inspect.
i know a language that's really good for frontend web development as an alternative to js!
Still don't understand why it needs to be in java, but yeah you can do it any language
Where I want to apply for a job they use java and having projects in java and possible spring, will be a good thing to have in portfolio
Hey i am trying to make a bandage item this is what I have so far https://hastebin.com/yofaduruha.csharp
The if statement does not work, I don't get the message
getBenda is piece of paper
https://hastebin.com/ilurimufix.php
this is the creation
what am I doing wrong on if ?
Wrong channel
No bm
Ah okay, that makes sense Gaby
Yeah sorry xd
elm, rust, ts 😌
Dont you have an expansion to fix?
oooooooooooooooooooooo
Dont you have Haskell to learn?
I actualy dont, unlike you :)
Classic js
its typescript
I was showing what I was doing
for the camera
and anyway alt enter doesn't do it, it brings up the menu
Sadly, you do.
happily*
^
Nope
Anyone know how to view how many messages a bot has cached?
In djs
I've got these 3
But not messages
it was the nickname given to me by my moderators, so I called the bot FrogBot
now its basically just a server meme
you're a meme
Lmao
ur mama made only so others have things to laugh at
No need to be so harsh
oh sorry. from now on I'll start lying
definitely
no!?
yes
Maybe you’re lying about that too 
another lie
yes!?
that one's true
always have been
you're such a bad boy. I wanna marry you
another lie
true!
that one's right ^
😳 Blitz

Mostly same issues though
yeah ofc
Btw spigot #help-dev if someone wanna code review this guy who made an async plugin
https://github.com/Luziferium/AsyncSpawnMob/ gonna drop this here if anyone wants to deliberately take the time to commit code review headache edition
Oh no
where's "Async entity add to world" when you need it
that kid literally has a class for global variables (for the whole program)
global variables are a preschool programming concept
A school class?
? wdym
Anybody feeling like taking a look at this https://github.com/iGabyTM/actions? I'm 100% I don't do everything right, any suggestions are welcome ^^
Is there even anything in this plugin that's async other than the update checker? Everything else uses sync task timers that I can tell
you were saying preschool and I got really confused if you meant a class in-school about global variables or a java class lmao
no. i meant like its something we may have done in the beginners (something i did at least when i used to make games in only one file)
id have these "global variables" up at the top of the header
its something common for beginners to do
Hey ya'll. I'm losing my mind updating NMS code to 1.17. Is there anywhere I can get an mc-dev -> mojang mapping
Google?
@static zealot what type do you think a wiki request is under https://i.imgur.com/DSrHSlE.png
damb
Third one would make most sense of the 4
already hit em with a New API Feature
hopefully he can add an option for that while he's at it too!
oh u PRIng to the PAPI wiki directly ?
no made an issue
ah
i mean it's open source
Yea but I mean repo perms
ah
repo perms? how do those work?
Bruh everyone became dumb, or am I speaking in such a high english form
nah. its us that speak in a high english for. you're the dumb one. sorry mate
Ah okay, that was going to be my second guess
hello does this server help anarchy players?
When I add a value to an arraylist it goes to the index of the length of the list right? And not at the beginning index of the list
d;jdk collection#add
boolean add(E e)
throws NullPointerException, IllegalArgumentException, UnsupportedOperationException, IllegalStateException, ClassCastException```
Ensures that this collection contains the specified element (optional operation). Returns true if this collection changed as a result of the call. (Returns false if this collection does not permit duplicates and already contains the specified element.)
Collections that support this operation may place limitations on what elements may be added to this collection. In particular, some collections will refuse to add null elements, and others will impose restrictions on the type of elements that may be added. Collection classes should clearly specify in their documentation any restrictions on what elements may be added.
If a collection refuses to add a particular element for any reason other than that it already contains the element, it must throw an exception (rather than returning false). This preserves the invariant that a collection always contains the specified element after this call returns.
e - element whose presence in this collection is to be ensured
NullPointerException - if the specified element is null and this collection does not permit null elements
IllegalArgumentException - if some property of the element prevents it from being added to this collection
UnsupportedOperationException - if the add operation is not supported by this collection
IllegalStateException - if the element cannot be added at this time due to insertion restrictions
ClassCastException - if the class of the specified element prevents it from being added to this collection
true if this collection changed as a result of the call
d;jdk ArrayList#add
public boolean add(E e)
throws UnsupportedOperationException, ClassCastException, IllegalArgumentException, NullPointerException```
Appends the specified element to the end of this list (optional operation).
Lists that support this operation may place limitations on what elements may be added to this list. In particular, some lists will refuse to add null elements, and others will impose restrictions on the type of elements that may be added. List classes should clearly specify in their documentation any restrictions on what elements may be added.
e - element to be appended to this list
UnsupportedOperationException - if the add operation is not supported by this list
ClassCastException - if the class of the specified element prevents it from being added to this list
IllegalArgumentException - if some property of this element prevents it from being added to this list
NullPointerException - if the specified element is null and this list does not permit null elements
true (as specified by Collection.add(E))
Appends the specified element to the end of this list (optional operation).
😭
send an invite 🙂
Kiss me then
what could be the worst thing that could happen 🙂
public static final ConfiguredSurfaceBuilder<SurfaceBuilderBaseConfiguration> NOPE = register("nope", SurfaceBuilder.NOPE.configured(SurfaceBuilder.CONFIG_STONE)); lol
SurfaceBuilders.NOPE
Rip
@jovial warren whats that?
a surface builder, used in world generation
well, more specifically, it's the configuration for a surface builder
it's from vanilla lol
@onyx loom can you link me the Kotlin expansion please? I keep forgetting its not on the ecloud and I finally want to give it a try xD
Does it take a lot performance when getting strings from config.yml instead of just a variable
Depends
If you cache it then no obv
But if it’s like reading the file each time yeah
Not so good idea
Hmm, I'll work on a caching system then
just use a lib for config. that does the caching for u xD
Wanna learn tho lol
k
How would that work for caching?
pretty sure spigot already caches the config values if thats what u mean
I usually have some static final fields as keys then map then with their corresponding values from a file and cache that into a map
Oh rly? So when I do Main#getConfig() I won't pull it directly from the config.yml file every time? It's cached somewhere?
Yes
It uses YamlConfiguration which caches its latest invocation of #load() to a LinkedHashMap
iirc
Well FileConfiguration does
But yeah same shit
Oh yeah, so it actually only updates when running the methods, ic
as in saveDefaultConfig() or smth
Yes my bad I meant load up there but save also does some io stuff
Not sure what the difference between Option#copyDefaults() and JavaPlugin#saveDefaultConfig() is tho
I always just use both
Tbf Idk nevertheless
Never touches the former and was long time I ref the latter
@obtuse gale we need your wisdom

Oh
Still don’t know, the Bukkit config is kinda meh
And I am used Configurate hehe
Worth looking into ig
It’s worth learning (:
Does it have a docs / wiki?
Yeeeeeeeehaw
They missed an opportunity to name it configur8
🥲
🥲
MF-CFG gang
they missed an opportunity to call it Konfigurate 🙂
hey do you guys think I can link my WSL mariadb database with one on a separate linux drive that I dual boot lmao
like?
i mean is there really a difference tho
like to me
they both work basically the same right
sudo /etc/init.d/mysql start vs docker start mysql or whatevs
Easier to cleanup? idk
hmmm
can i get two dockers to share the same persistent storage
cause that could solve my problem
Yes
😮
ok but can u run docker inside docker
probably
stonccs
pog
Can you send a link? Cant find it
GitHub SpongePowered/Configurate
tyty
wtf
A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.
Anyone know why some players are getting this error when trying to connect to my server? Paper 1.17.1. No plugins, a few Vanilla-Tweaks data packs. [03:45:45 INFO]: com.mojang.authlib.GameProfile@4c4cd544[id=<null>,name=Enthur,properties={},legacy=false] (/71.84.172.36:62682) lost connection: Disconnected
Try removing the data packs and seeing if anything is better
yes volumes
I want add 1 second delay in PlayerInteractEvent .But when i add it ,it is not work.
Bukkit.getScheduler().scheduleSyncDelayedTask(this.plugin, new Runnable() {
@Override
public void run() {
playercooldown.remove(player);
}
},20L);
Can someone help me?
Use codeblocks for formatting code or configuration files:
```<language name>
<your code here>
```
For example:
```yaml
test:
- “hi”
- “there”
```
Produces:
test:
- “hi”
- “there”```
When using gradle is it advised to use the term subproject instead of module.
I have a problem with deluxemenu, when I put for example %player% or something related to placeholderapi those papi do not work
Now I need to figure out how to get the type of block that is falling and what kind of mob etx
😁
https://i.imgur.com/eCHLqnE.png oh static variables should be uppercase in c#? O_o o_O
o wait really?
but then how do you tell the difference from a class-
you don't

just saying it how it is
without an ide or context you can't really tell the difference
ripp
consider using F# instead, which has actual nice conventions :)
Guess what F# compiles to
😄
your loss
why does this remind me of haskell
well
They share some history
Both of them were inspired by ML (and OCaml)
But f# isn't as complicated or academic
Die.
if its a private field _what is fine as well, youd then define a property to actually access it
nice
@old wyvern I need your help
Yes?
What’s the difference between adapter and bridge pattern
Find them very similar
In fact identical imo but they’re not probably
Adapter adopts one interface and delegates to an implementation with a different interface
Bridge decouples different hierarchies, i.e. when you have "2 directions" in which a class can vary
Ah
Bridge is a hard one for me too
Feels a lot better not being alone on that one then lol but yeah trying to learn these patterns lol
One example would be a "Weapon" interface with the implementations Hammer, Axe and Sword
And now you also want all of these with different enchantments
as own classes
They fit nowhere in your current hierarchy
You use an adapter to adapt another interface to an interface that you actually require. In the bridge pattern you bridge an interface with with another layer of interface-interplementations so you can mix-and-match behaviour to get more variant behaviour from less number of classes
man I thought we were talking about like vm network orientations lol
i barely know how those work and now it's all generic 😦
LuxPerms 
Oo thx Johnny and Yugi 
LuxPerms, the successor of LuckPerms
Fork incoming???
LuckPex
LuckyGroupMan
LuckyPermys
BetterPerms
LuckPerms ?? more like SuckPerms amirite 😂 🤣
DeluxePerms
PermBan
FrozenPerms 🥶
😔
HotPerms
sPerms
okay but can I have two database dockers share the same volume
yes
so the scenario is: I dual boot windows and linux
cringe
can I have one docker container on each, and when I start it, it uses the shared sql data
Obviously both will never be running at the same time
But that way I can share a dev mysql server between operating systems
Apple bad!
Apple for rich people
And we aren’t all Bill Gates
I actually hate safari lol
Spoon feeding in #development be like
and this was with --depth 1 🥲
I dont think that would come to 1.2 gb
Hm true
Whelp boys, looks like I'm updating to Windows 10 Insider Build 20211
Gotta mount my linux drive 🥲
ugh i can't believe I'm not allowed to get the preview build that allows drive mounting because my pc doesn't "qualify" for windows 11
oh sick
i can't get windows 11 sadge
intel 8th gen processors or higher 🥲
rip
Lol
💀
i need my goddamn mounting!!!
im looking to see if I can do it with plain old hyperv now
Bruh this guy keeps talking about records should have public final fields instead of accessors like 
Ye
Oh I forgot no need to invoke a method if the field is public
Damn he outsmarted me 
lmao
that's dumb
you can't use method references on fields
i mean if you're using them as data classes
the method is literally named exactly like the field lmao
not gonna lie, don't know how records work
a record class is a record class with record components
How to say nothing with words :))
a record class is not your regular class with getters
Yea just a data holder
Yeah, I mean accessors are just superior n just so much more flexibility and usefulness hehe
Really?
I thought they did
They are kinda like enums
you can't extend java.lang.Enum and enum classes implicitly do so
same with records
There are special reflection methods for both of those too
Yes but they compile down to classes just like the same
Well but there are markers saying "hey jvm this is a record class, i'm a special boy"
Yeah has to be that
if you decompile a classfile it won't be a regular class with getters, tostring hashcode and equals
oh new instructions?
Believe so
Id doubt that
I think it uses invoke dynamic for the generated toString and hashCode and equals not sure
But heard someone say that
So might not be new ones
Why would it use invoke dynamic?
it should be invoke virtual since its part of Object

huh this is interesting
This is the decompiled code according to fernflower
public record StupidRecord(String hehehaha) {
public StupidRecord(String hehehaha) {
this.hehehaha = hehehaha;
}
public String hehehaha() {
return this.hehehaha;
}
}
but the bytecode has methodhandles stuff?
https://stackoverflow.com/questions/61208493/do-java-records-actually-save-memory-over-a-similar-class-declaration-or-are-the oo found this
I wonder what makes records special from other classes for one to not be able to reflectively modify the fields
besides... y'know.. being a record
lmfao
yes
Oo
Also the field hehehahehehehe or whatever u named it to u doob is inferred right?
what?
it's the record component
It’s inferred then hmm
oh?
Can we have a normal class that extends Record? :0
it does, like with enum
and I take like 99% of what I said back
wow
this is why you don't trust what you read but try things yourself
lol
🥲
lmfao
Oh wow. Sim cards run java
Java Card refers to a software technology that allows Java-based applications (applets) to be run securely on smart cards and similar small memory footprint devices. Java Card is the tiniest of Java platforms targeted for embedded devices. Java Card gives the user the ability to program the devices and make them application specific. It is wid...
intriguing
Did you know that 3 billion devices run Java?
😂
angry Star noises
😂
Any idea which html purifier github uses?
the best one 
🌞
this one seems to be pretty popular https://github.com/ezyang/htmlpurifier..... give that it's literally the first one showing up on google lmfao
https://i.imgur.com/RjloHer.gif
unity is not being very nice to me 😭
|| i just had to create a new text object since copy and paste didn't work :c ||
No like im looking for the one github is specifically using 🥲 , like for the about page in a user's profile
grrrrr
I guess worth a shot
any attempts to google that just returns every html purifier on github
🥴
the bytecode for ```java
record CityRecord(Integer id, String name) {}
is
public java.lang.String toString();
Code:
0: aload_0
1: invokedynamic #19, 0 // InvokeDynamic #0:toString:(Ledu/forty/bits/records/equals/CityRecord;)Ljava/lang/String;
6: areturn
public final int hashCode();
Code:
0: aload_0
1: invokedynamic #23, 0 // InvokeDynamic #0:hashCode:(Ledu/forty/bits/records/equals/CityRecord;)I
6: ireturn
public final boolean equals(java.lang.Object);
Code:
0: aload_0
1: aload_1
2: invokedynamic #27, 0 // InvokeDynamic #0:equals:(Ledu/forty/bits/records/equals/CityRecord;Ljava/lang/Object;)Z
7: ireturn```
makes the same constructor and accessor bytecode tho
AH
A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.
that is the bytecode for a normal class like that lol
you were correct 🙂
this all makes me wonder how the jvm prevents reflective field modification on records but not other classes with final fields too
but anything past java 9 regarding is so damn weird with jigsaw n all
MethodHandles API 🙏
I wonder then if that's an "artifact" of how javap works?
Like, does it run a jvm and prints the defined class?
How does javap work 🥲
This is seventh part of mini-series of Explaining invokedynamic. This is the full list of all articles:
Seems to be correct
this also caught my attention too
- the fact that
Record::toString,::hashCodeand::equalsare allabstract
yea haha
🥲
ah I see
e.g. javap SomeClass.class
it can also take a shit load of flags, all described in javap --help ofc
me explaining why you can't make it an enum constant because enum classes can't extend other classes
https://tenor.com/view/ibai-yo-explicando-meme-gif-18360117
My guy was literally storing like
INSTANCE(MainPluginClass.getInstance())
im not kidding lol
and his enum would take in a JavaPlugin or smthing
its so funny
then hes like, "its easier to get!"
oh lord
what the fuck
man at that point just suggest using JavaPlugin.getPlugin or whatever lmfao
exactly
😌
man I love how IJ highlights the method calls that may throw an exception when the cursor is standing on the catch keyword or on an exception in the throws declarations
Catch it faster.
Slimjar release when
By night, gonna wait 2 more hours for someone from the gradle slack to reply
Otherwise Ill just use the runtime resolver to generate an initial resolution file at compile time
yea they reply once in a blue moon
lmao yea
Last time I asked, they replied after like 3 days
And I never noticed till like day before yesterday
omg
someone replied
YES
ok what
LMAO
it says replied yesterday 11 am, but I swear i checked at midnight and it wasnt there
Smh my head.
and... I dont think the answer is what I was asking for... 🥶
or wait no
it does
it points to an issue
So basically an issue that is going no-where.
opened this issue on Jun 20, 2019
ah I have it for my work
I see
Anyone wanna explain to me why this happens?
(yes i know the return can be lifted and the try can be set into the function)
I just have no idea sometimes... (also before i was returning null on the catch, dont worry)
Ok am i dumb?
inline fun <reified E> PersistenceManager.query(key: Any): E? = try {
getObjectById(E::class.java, key)
} catch (_: JDOException) {
null
}
Should this not return the object if it is found and if an exception is thrown return null?
Uh, I believe so
well i look in the debugger as shown above and it goes to the null part everytime
So exception every time
this couldnt possible be a kotlin bug or smth?
Are you sure its actually going into the catch block?
ok well it works as expected just with a basic test:
fun main() {
println(doThis())
}
fun doThis(): String? = try {
"Something cool"
} catch (_: Exception) {
null
}
well thats what the debugger is saying, but then when it returns i get a instance of the class I want to recieve with all null values besides the primary key
Its really weird
but the getObjectById is perfectly fine
Ill send a video, one second
ok
I dont know anymore
now its working
though the debugger says its doing the same thign as before
Im just gonna go cry in a corner somewhere
Probably some issue with kotlin's generated bytecode
might have generated wrong line number meta
these issues seem slightly common xD
i stg picking a DE is the hardest decision there is to make on linux
plasma is nice
you know what I want
I want literally exactly what I have on Windows visually
but with a linux backend
that's the dream
What specifically from windows? Because a lot look similar enough
welp
but like, the translucent taskbars
and the clock/date display
every DE gets that wrong
Wasnt there a distro that tried to mimic windows, maybe check out what de it used?
ReactOS? they mimic like windows xp lmao
It was mostly just a skin I think
i just want exactly that
I generally dont have issues with kotlin itself, but dont get me started on gradle.. If i have some time at some point i might just switch to maven
I've literally never had problems with gradle dude
and it compiles way faster than maven
ah jigsaw
How about JDO?
This isnt gradle's issue
have you used JDO?
kotlin just has some quicks here and there
like WAY better
Dude
convince me otherwise
I have not used jigsaw or JDO
Neither of the build systems affect this
but everything else I've made has been awesome
They have absolutely nothing to do with them
....
I've had similar issues with maven as well
yeah like what's the problem?
offtopic - has anyone used testproject.io?
Its just minor issues with the kotlin compiler here and there, just report an issue
so many issues with split packages and gradle has pretty much no tools to resolve them
and the modularity thing they have just straight up doest work as far as i can tell
you don't know how to use gradle modules?
It patches modules during compile time but not runtime
no wonder you're having a hard time lmao
java modules
I've never had a single problem with jigsaw with gradle
with kotlin?
this sounds like user error
you dont need to deal with gradle directly for jpms
You create the module file
like normal
and then when you run into split packages?
Yeah gradle doesn't really care about the module descriptor lol
if you are using a library that doesnt quite support jpms
?
like spring JPA
just doesnt work with it
all the rest of their libraries do
I'm not really sure what that is tbh, what do you mean by that?
It isn't, no
but in old libraries it kinda worked
but then in java 9 it just throws when it happens
so you can get around it
and then have to patch the modules, which gradle really doest do well at all
and most of the time the answer is just to exclude some dependency, which sucks
this sounds like a case for relocation
patch them how?
Im not going through some java 8 library and fixing all their issues
can you not just relocate one of them?
Im asking what patching would do here?
well in gradle you are suppose to be able to use modularity.patchModule("module name", "jar name")
it would add the --patch-module thingy to javac or however they compile
which would then combine the two modules you specify into one
wdym? Like decompile both and combine them together?
with gradle libraries?
I mean that would cause issues for every other thing that uses them
like jakarta websockets, i dont use it but jetty does, so if i renamed those packages alot of jetty websockets wouldnt work
like you'd change an entire tree
so you'd change all of jetty
and all its dependencies
that sounds pretty hard, then i would have to have a lib folder with static jars right?
and if i wanted to update versions?
is this using the shadow jar plugin?
yeah
that doesnt work with gradle 7
it does
last i checked*
uh yes it does
use 7
i literally use it every day
the latest version
can you send the github of it?
it's version 7.0
I thought it only officially supported 6?
homie
No
go to the top of your gradle file
this oen? https://github.com/johnrengelman/shadow
oh ok
7.0.0
Ignore that
Ima blame them for not redoing their readme then
ima blame you for not looking at the latest release version
that works
Why blame that developer instead of making a pr?
lol
It's easier to complain
becuase thats alot of work
🌞
lol
i'm still waiting on that pr for fixing using minimize, kotlin, shadowjar 7.0, and gradle 7.1 together to be accepted
the what now?
which ?
isnt asm on 9 now?
Oh that stuff yeah I remember
actually records, not kotlin
Well I never minimize so idrc l m a o
yeah i kinda stopped too
Ok well thank you star for the shadow jar stuff, i think that will fix alot of gradle being the worst build tool
yeah turns out you were ignoring the really obvious solution to all your classpath problems lmao
ftr last time i tried shadow jar it literally threw about gradle 7 not being supported
so i have an excuse
Pebkac
cause you didn't update the shadowjar version too numnuts
nah i had the latest
obviously not
X doubt
your version checking skills are obviously not up to par
I took it directly from the gradle site when i tried it
so you swapped to gradle 7 like, a week after it came out? lmao
well idk, that doesnt seem likely either
im probably just dumb, but i like to blame it on others 🤢
