!jGawCGhycfrYboDVtV:tchncs.de

Minetest

577 Members
Official Chatroom For The Libre Voxel Game Engine Join Our Space! #minetest:tchncs.de Latest version: 5.8.0 Rules: https://gist.github.com/wsor4035/0f1cebdc9e09fc9df911757793e98a4e105 Servers

Load older messages


SenderMessageTime
23 Apr 2024
@nephele:nheko.imnepheleYes, that is obvious. But the solution then is not to use an even worse tool ...21:24:34
@appguru:matrix.orgLars but similarly, i can define such a subset for which minetest. autocompletion works fine 21:24:41
@appguru:matrix.orgLars
In reply to @nephele:nheko.im
Yes, that is obvious. But the solution then is not to use an even worse tool ...
it is a good enough tool for many purposes
21:24:53
@nephele:nheko.imnephele Claiming that a language server can't be perfect therefore you should use a different less working tool makes no sense 21:24:59
@nephele:nheko.imnephele
In reply to @appguru:matrix.org
it is a good enough tool for many purposes
It is good enough for your purposes.
21:25:17
@appguru:matrix.orgLars claiming that a simpler tool is not perfect therefore you should use a more complex tool which can maybe do a better job doesn't make much more sense 21:25:40
@nephele:nheko.imnepheleFor my purposes an even less complee (highlight only lua keywords) works. But that doesn't mean that nobody needs a langauge server as you claimed21:25:43
@appguru:matrix.orgLars
In reply to @nephele:nheko.im
For my purposes an even less complee (highlight only lua keywords) works. But that doesn't mean that nobody needs a langauge server as you claimed
I do not remember claiming that nobody needs a language server
21:26:21
@appguru:matrix.orgLarsalso, "needs" is too strong a word here; if anything, it should be "benefits from"21:26:38
@appguru:matrix.orgLars
In reply to @appguru:matrix.org
I do not remember claiming that nobody needs a language server
I just pointed out that with simpler methods, you already get very far, in my opinion
21:26:56
@nephele:nheko.imnephele"you don't need a full blown language server for autocompletion"21:27:06
@appguru:matrix.orgLarsyes, that claim is true21:27:16
@appguru:matrix.orgLarsit is not equivalent to the claim that you don't need a language server at all21:27:25
@nephele:nheko.imnephele
In reply to @appguru:matrix.org
I just pointed out that with simpler methods, you already get very far, in my opinion
My point is that isn't what you wrote, and you should be more selective with your wording
21:27:25
@appguru:matrix.orgLarsyou can have simple (and in my opinion very good) autocompletion without a language server21:27:35
@appguru:matrix.orgLars
In reply to @nephele:nheko.im
My point is that isn't what you wrote, and you should be more selective with your wording
I would say the same about you.
21:27:54
@appguru:matrix.orgLars
In reply to @nephele:nheko.im
My point is that isn't what you wrote, and you should be more selective with your wording
* I would say the same about your wording.
21:27:58
@appguru:matrix.orgLars given that you are so insistent that a language server brings a very significant benefit, such that autocompletion without it is clearly infeasible, can you give me an example where a properly configured lua language server will help me correctly autocomplete, but a simple minetest.foo... autocompletion fails? (i think such an example probably exists, but if you can't come up with one quickly, chances are the difference is not nearly as large as you're making it out to be) 21:29:49
@appguru:matrix.orgLars * given that you are so insistent that a language server brings a very significant benefit, such that autocompletion without it is clearly infeasible, can you give me an reasonable example where a properly configured lua language server will help me correctly autocomplete, but a simple minetest.foo... autocompletion fails? (i think such an example most probably exists, but if you can't come up with one quickly, chances are the difference is not nearly as large as you're making it out to be) 21:29:50
@appguru:matrix.orgLars * given that you are so insistent that a language server brings a very significant benefit, such that autocompletion without it is clearly infeasible, can you give me an reasonable example where a properly configured lua language server will help me correctly autocomplete, but a simple global.foo... autocompletion fails? (i think such an example most probably exists, but if you can't come up with one quickly, chances are the difference is not nearly as large as you're making it out to be) 21:30:00
@nephele:nheko.imnephele any minetest.whatever call that has to be passed a table
with
-> members that need certain string values only
-> members that are of different types
etc
21:31:08
@nephele:nheko.imnephelefor example "use_texture_alpha" modifiers in declarations, there are two in the api. one of them ONLY accepts a boolean and the other accpets ONLY three distinct string values21:31:45
@nephele:nheko.imnephelethat I think is a good example of areas where a language server with context witll help out a lot with autcompletion21:32:09
@nephele:nheko.imnephele... do note that I have no idea if any implements that for minetest lua, but i think you get my point. Those are the kind of API inconsistencies that easily bite programmers and that a language server can help with (to mitigate bad api design, in this specific example)21:32:53
@appguru:matrix.orgLarsindeed, if you have proper typedefs, a language server can help here. that's a good example.21:33:46
@appguru:matrix.orgLarswell. i'm personally not a big fan of the current lua ls, mainly because i don't want to restrict myself to the more "static" subset of lua that would be required for it to work well. the most static analysis i currently (sometimes) use for lua is luacheck, and that's because it's relatively conservative and transparent. but you have convinced me that i underestimated the difference in power; it wasn't on my radar because i don't use or need it very much for lua in minetest. for static languages i would always recommend the best tooling you can get, for dynamic languages i like simple, predictable tools that don't impose too many restrictions on me.21:40:10
@appguru:matrix.orgLars * well. i'm personally not a big fan of "the" current lua ls by sumneko, mainly because i don't want to restrict myself to the more "static" subset of lua that would be required for it to work well. the most static analysis i currently (sometimes) use for lua is luacheck, and that's because it's relatively conservative and transparent. but you have convinced me that i underestimated the difference in power; it wasn't on my radar because i don't use or need it very much for lua in minetest. for static languages i would always recommend the best tooling you can get, for dynamic languages i like simple, predictable tools that don't impose too many restrictions on me.21:40:20
@appguru:matrix.orgLars(which brings us to another interesting question of how we can bring static languages that transpile to lua, like typescript or teal, to minetest. i think i've seen prototypes using both the latter. teal seems to have made some big mistakes though (like not having proper nilable types), so that would leave us with only typescript, which i'm not very happy with..)21:42:05
@nephele:nheko.imnepheleI'd be interested in one that atleast implements the a-priori knoweable stuff, like how minetest calls are constructed, what members it needs etc. So that I can ask it "what possible values can be here?". It may not understand what values i pass around in the end but it can help me more quickly get this information than the api docs could :)21:44:58
@chimupurei:matrix.orgChimupurei joined the room.23:50:50

There are no newer messages yet.


Back to Room ListRoom Version: 9