26 Jul 2024 |
Clonkk | Got a question by curiosity, how difficult would it be to have tooling that auto-manage imports - similar to what go does (I know Go is much simpler and doesn't have overloading and always specifies the module so it's easier) ? | 13:21:01 |
sOkam! 🫐 | this question assumes the reader knows how go imports work 🤷♂️ | 13:32:24 |
sOkam! 🫐 | might have more chances of an answer if you explain how the work for all of those that never used Go ever, or don't know anything about their auto-imports | 13:34:23 |
Clonkk | I assume people working on toolings took a look at how tooling in other comparable language works | 13:36:28 |
sOkam! 🫐 | why would there be such a need? if you use a tool that works well, there is no need to research other tools, you just use the tool you know works for you | 13:39:43 |
Clonkk | It just makes sense when you are building something to take a look at how other people are building something similar | 13:42:50 |
Clonkk | If you want to build a house, you're telling me you are not going to take a look at houses around you already built ? | 13:45:05 |
Clonkk | I'm not saying it should be identical, but it makes sense to look at what works (and how), and what doesn't work (and why) | 13:47:13 |
jmgomez | You mean something like the people from intellij do as well where if a proc is not found in the current modules it suggests an action to import the module that contains it? | 14:29:13 |
jmgomez | Any update on this? I think more people is running into this issue but I need to be able to repro it | 14:34:08 |
| mo_ar2006 joined the room. | 14:36:52 |
ezquerra | jmgomez I've just done another test and it fails for me with any nim file I open | 14:37:16 |
ezquerra | So I don't really know what to do to help you reproduce it | 14:40:40 |
ezquerra | If you want we can talk directly via DM and I can do any tests that you ask me to do | 14:43:52 |
jmgomez | oh that's bad, sure. Send over your configuration | 14:47:23 |
sOkam! 🫐 | I'm just trying to tell you that some people here, who otherwise could very easily help you, won't be able to do so because you are asking them to research some tool they will never use just to answer your question I'm just pointing at the odds of your question, being as specific as it is without no context, not getting answered just because of a silly assumption | 15:37:57 |
Clonkk | Essentially, yes. | 15:54:23 |
Clonkk | If an import is missing and unique, it suggests-it / or add-it automatically on save. | 15:58:35 |
Clonkk | And also it has the options to removes unused import | 16:03:24 |
Clonkk | From a quality of life perspective it's super nice to have. | 16:08:22 |
| bbbscarter joined the room. | 19:31:12 |
27 Jul 2024 |
| asuidhasdhjasdasd joined the room. | 03:08:08 |
| posxposy joined the room. | 09:37:45 |
jmgomez | https://github.com/nim-lang/nimble/pull/1250 This should fix your issue | 09:40:49 |
| jctheking753 joined the room. | 09:49:40 |
tauruuuuuus | Finally got the best of both worlds with asdf-nim + nimlangserver/official vscode plugin | 09:55:25 |
k0ts | Thanks, I made an issue earlier today but it doesn't seem to be showing up. I'll give that patch a try later. | 09:57:41 |
tauruuuuuus | I had to ditch choosenim, hopefully it becomes more usable in the near future, but this setup is really great | 10:00:45 |
k0ts | I like to use devel so I wrote my own script that switches between symlinks. Don't know if asdf-nim lets you use an existing local Nim. | 10:02:37 |
tauruuuuuus | I don't think so, I just rm -rf ~/.nimble d everything out of frustation and restarted from a clean slate | 10:13:28 |