Sublime Text user experience

2024-04-16 Thread dxb
Thank you @amjadBHD Also, someone looking for information about how to setup debugging with SublimeText + lldb may find the following useful: Adding `"preRunCommands": ["command script import --allow-reload PATH_TO/nimlldb.py"]` to an lldb debug configuration does some symbol demangling. Exam

Sublime Text user experience

2024-04-16 Thread AmjadBHD
See

Sublime Text user experience

2024-04-13 Thread dxb
> Did you not have terminus installed ? Nope. With terminus installed both "console": "integratedTerminal"` and no `"console"` setting at all also work.

Sublime Text user experience

2024-04-13 Thread AmjadBHD
Did you not have terminus installed ?

Sublime Text user experience

2024-04-12 Thread dxb
"pre_debug_task" was hanging because "shell_cmd" expects a string and I was passing an array of strings instead. It was easy to find out what was wrong with this task once I figured 'Debugger->Run Task' does report errors on the console. Running the same task as part of starting a debug session

Sublime Text user experience

2024-04-12 Thread dxb
Adding `"console": "internalConsole"` fixes debugging: { "folders": [ ], "debugger_configurations": [ { "type": "lldb", "request": "launch",

Sublime Text user experience

2024-04-11 Thread AmjadBHD
* Please change the test program so that it doesn't contain an infinite loop or sleep, just some assignments, then add a breakpoint. * Do you have lldb and clang installed and in PATH ? Otherwise please open an issue with a screen recording?

Sublime Text user experience

2024-04-11 Thread dxb
> If your test program reads from stdin, it could be that it did compile > successfully but then started debugging until it reached the line where it > waits for user input No user input. Just echo something and sleep 1 second in an infinite loop. If I remove the loop and let the test program t

Sublime Text user experience

2024-04-11 Thread AmjadBHD
* If your test program reads from stdin, it could be that it did compile successfully but then started debugging until it reached the line where it waits for user input. * What platform are you on ? Can you try replacing `shell_cmd": "nim c -g ${file}` with `cmd": ["nim", "c", "-g", "${file}"]`.

Sublime Text user experience

2024-04-11 Thread dxb
> Just to be sure, these should go to your .sublime-project file. Yes, that's how I am doing it. FYI I took your example config at the bottom of the [LSP](https://forum.nim-lang.org/postActivity.xml#LSP) page [1] and changed `${file_basename}` to `${file_base_name}` because `${file_basename}` do

Sublime Text user experience

2024-04-10 Thread AmjadBHD
Just to be sure, these should go to your `.sublime-project` file.

Sublime Text user experience

2024-04-08 Thread AmjadBHD
Thanks. I decided to keep them separate, and recommend each plugin from the other. Btw, [LSP-nimlangserver](https://packagecontrol.io/packages/LSP-nimlangserver) is now on Package Control.

Sublime Text user experience

2024-04-08 Thread georgelemon
option to disable LSP would be great.

Sublime Text user experience

2024-04-08 Thread Clonk
As someone who uses Sublime text and NimLime with LSP, I am of the opinion that it's safe to merge both plugins as long as there is an option to disable LSP in NimLIme. Thanks for your work btw, it's great to see Sublime getting some love :)

Sublime Text user experience

2024-04-05 Thread PMunch
No idea what to answer for your latest question, but seems like I missed one from last year. I did have semantic highlighting planned, but the spec wasn't finalised last time I looked at it. Probably it's more stable now though

Sublime Text user experience

2024-04-05 Thread AmjadBHD
There is now an [LSP-nimlangserver](https://github.com/AmjadHD/LSP-nimlangserver) plugin. Should I publish this on package control or instead merge the plugin with NimLime ? See the [issue](https://github.com/nim-lang/NimLime/issues/185).

Sublime Text user experience

2023-01-08 Thread AmjadBHD
Are you planning to support semantic highlighting in nimLSP ? It is supported in sublimeLSP.

Sublime Text user experience

2023-01-06 Thread AmjadBHD
There's , you're welcomed to test and review.

Sublime Text user experience

2020-11-04 Thread Stefan_Salewski
> Semantic highlighting is in fact better Does it work without causing high CPU load? I tested it some years ago with my NEd editor, only with nimsuggest without lsp, but for nearly all edits there was a lot of nimsuggest traffic generated. I had no idea how I could avoid the traffic, so I stop

Sublime Text user experience

2020-11-04 Thread Yardanico
Why though? Semantic highlighting is in fact better than normal syntax definitions, because with semantic highlighting you know the tokens as the compiler sees them, so it's always correct.

Sublime Text user experience

2020-11-04 Thread AmjadBHD
As for sublime there was a lengthy discussion on the ST discord server about semantic highlighting and whether or not sublime should provide API to support it without a final say for now. See also: and

Sublime Text user experience

2020-11-04 Thread AmjadBHD
I don't think semantic highlighting reduces the need for good syntax definitions. But works as a complementary to it.

Sublime Text user experience

2020-11-03 Thread PMunch
There is a proposed extension to LSP to support semantic highlighting. Hopefully that will get officially included someday (the Vim LSP client already supports this, not sure about Sublime). If we implement that into NimLSP then we would have highlighting as well in the same plug-in.

Sublime Text user experience

2020-11-02 Thread g5becks
I'm pretty new to Nim, and to be honest - so far, editor support is the biggest gripe I have about the language. The vs-code plugin is unuseable for me because it won't stop repositioning my cursor to where it thinks it should be for some reason. The intellij plugin is not really feature comple

Sublime Text user experience

2020-11-02 Thread JPLRouge
Hello: actually it's great, very light ... simple and easy, powerful the nim module for TEXTADEPT is it possible to put all the functions/ myproc in colors to differentiate them from the labels please

Sublime Text user experience

2020-11-02 Thread timothee
aha, so you're writing the extension in nim using `nim js -d:nodejs`, cool! exec "nim js -d:nodejs -d:release --outdir:out --checks:off --sourceMap src/nimvscode.nim" Run That's actually yet another compelling use case for improving nodejs support, refs

Sublime Text user experience

2020-11-02 Thread timothee
Do you have some links? for example uses `ts`

Sublime Text user experience

2020-11-02 Thread saem
Funny you mention that extension:

Sublime Text user experience

2020-11-02 Thread saem
You can write the extensions for vscode in Nim.

Sublime Text user experience

2020-11-01 Thread gemath
[Kakoune](https://kakoune.org/) with [kak-lsp](https://github.com/kak-lsp/kak-lsp) as the LSP client and [nim-lsp](https://nimble.directory/search?query=nimlsp). Kakoune is close to what you would get if someone kicked the quirks out of Vim, simplified/orthogonalised it and threw half of the ke

Sublime Text user experience

2020-10-31 Thread timothee
I primarily use sublimetext (with nimlime) and disagree maintaining it is not worth it, it's one of the best editors (nim aside) and quite usable with nim thanks to nimlime, but yes it would benefit more contributors. One of its best features are being lightweight, and its plugin infrastructure

Sublime Text user experience

2020-10-30 Thread ElAfalw
Interesting topic. I am using Sublime myself. What are you guys using?

Sublime Text user experience

2020-10-30 Thread moigagoo
I use ST with nimlsp and it works great. There's currently only one issue I find critical, it's reported and waiting to be fixed (it's something to do with Windows paths, nothing extraordinary).

Sublime Text user experience

2020-10-30 Thread slonik_az
> Another interesting option is textadept, in part because it uses the same > plugins a well known and well liked Mac editor uses. Plus iirc there also is > a terminal version. Moreover, there is already a nim plugin for textadept, albeit not updated since late 2018

Sublime Text user experience

2020-10-30 Thread AmjadBHD
This plugin just provides the syntax (grammar), indentation, comments and symbol rules, no python logic included. nimlsp should be used alongside this plugin.

Sublime Text user experience

2020-10-30 Thread AmjadBHD
> No wonder that Sublime is little used as it has no current and good Nim > support. I bet that once it supports Nim about as well as VSC it'll find > quick uptake. What's missing is a good syntax support as for LSP support, ST's [LSP client](https://github.com/sublimelsp/LSP) is actively maint

Sublime Text user experience

2020-10-30 Thread zetashift
What's wrong with nimlsp and Sublime? I'm not a Sublime user, but wouldn't it be better/easier to improve nimlsp instead of creating another plugin?

Sublime Text user experience

2020-10-30 Thread moerm
Hint: I didn't even really read your post because whenever certain "red flags" appear (like 'rust', 'go', 'xml') I immediately loose interest and switch off. If however you were to create reasonably good support for Nim in sublime (in C, lua, or python iirc) I'd volunteer to serve as lab rat _(f

Sublime Text user experience

2020-10-30 Thread moerm
No wonder that Sublime is little used _as it has no current and good Nim support_. I bet that once it supports Nim about as well as VSC it'll find quick uptake. @AmjadBHD I am very interested in seeing more editors with support for Nim, in particular Sublime Text which, unlike VSC, isn't a blo

Sublime Text user experience

2020-10-30 Thread Yardanico
I wouldn't say that Sublime has much better responsiveness than VSCode, but okay ;) -

Sublime Text user experience

2020-10-30 Thread AmjadBHD
It's not about ram it's about speed and responsiveness. As for popularity all editors lost popularity to the multi-million-dollar-company-driven VSCode that M$ provides it for free just because it loves developpers. Anyway this is not the subject of the thread.

Sublime Text user experience

2020-10-30 Thread Yardanico
I didn't say that "it isn't worth", I just said that few people use SublimeText for Nim and that NimLime unmaintained for a long time

Sublime Text user experience

2020-10-30 Thread AmjadBHD
Just to add a note there's an [extension](https://github.com/BenjaminSchaaf/sbnf) (rust crate) made by one of Sublime text's core devs that creates an ST4077+ compatible sublime syntax file from a BNF like grammar. That + should make it eas

Sublime Text user experience

2020-10-30 Thread AmjadBHD
> and sublimetext is losing popularity in general > and RAM usage isn't that > much smaller than with VSCode really, sublimetext is like at least ~300mb ram Pardon but what I understood is "it's not worth it"

Sublime Text user experience

2020-10-30 Thread AmjadBHD
Hello, I started this thread to discuss improving the sublime text user experience for Nim developpers. For now the only plugin that provides syntax highlighting for sublime text is the the apparently unmaintained [Nimlime](https://packagecontrol.io/packages/NimLime) Which uses the old