Progress messages #53
Replies: 4 comments 19 replies
-
Hi Seth. I'm curious how long the Navigator is taking on startup. Normally, I'd expect it to be pretty fast. Below is a gif of me loading vscode on my somewhat slow Surface. It takes a bit for vscode to startup, load the file, and apply syntax highlighting, but relatively soon afterwards the Navigator starts and produces compilation errors. There's not much to do for initialization, so I believe most of the delay is waiting for the editor to start the server. Once it's running, it should be ready to respond to requests almost immediately. It runs a startup task to list all modules available for autocompletion, but this runs asynchronously, so the Navigator should be able to compile files in the meantime (while having slightly degraded autocompletion). Also, I only restart my editor a few times per week at max. I generally always leave it open, so I don't think about startup time much. Startup gif below: And for Format document, I just timed it out. For an arbitrary 1000 line file (I used List::MoreUtils::PP) It takes about 1 second to perltidy and about 2 seconds to run perl imports. VSCode provides a visual indicator of an outstanding request, which is helpful in this case. |
Beta Was this translation helpful? Give feedback.
-
Hi @bscan. I have yet to change anything but the version of the server, but ATM the server is crashing. Often it seems to crash not long after start. I'll continue to look at it and see if this is a problem on my end. |
Beta Was this translation helpful? Give feedback.
-
Hi @WhoIsSethDaniel , I just got back to this now that #11 has been fixed. I suspect progress messages are even more important if waiting for both perltidy and perlimports to finish. I changed them both to run asynchronously via 99e7c2d . Thanks for the suggestions! Hopefully this change gets it working |
Beta Was this translation helpful? Give feedback.
-
it works well. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Any chance for progress messages? Even something as simple as 'I am initializing', 'I am done initializing', 'I am formatting', 'I am done formatting' would be great.
The reason for this is that it isn't always clear, upon start, when the server is ready to start doing things. Also, for formatting (and similar tasks) I don't know if the server is doing something until suddenly my code changes. This can take awhile with
perltidy
andperlimports
.Beta Was this translation helpful? Give feedback.
All reactions