question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request for temporary environment variables

See original GitHub issue

Hi, thanks for the plugin! It’s quickly become a treasured component of my Neovim config.

One extra feature I’d appreciate is specifying per-command environment variables. Here’s an example where that would be useful: https://github.com/ezyang/expecttest. This library allows you to specify a unit test without explicitly knowing the right hand side of the test. Then, if a particular environmental variable is turned on, the test runner itself overwrites the file to fill in the RHS based on the current output. This is very useful for numerically heavy projects, e.g. in ML. It would be useful to have a separate command that

  1. sets up an environmental variable
  2. runs an ultest command
  3. removes the env variable whether or not the command was successfully completed

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
d-miketacommented, Nov 29, 2021

Thank you, it works perfectly now. 😃 Very useful functionality.

0reactions
rcarrigacommented, Nov 28, 2021

Yes that’s correct, which is what is wanted. The issue has to do with how the remote plugin call was being made (originally async and so couldn’t make a synchronous call). I’ve adjusted to be synchronous, so please try now

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to set temporary environment variable windows ...
Simply use the set command: C:\>set foo=bar C:\>echo %foo% bar C:\>exit. Open cmd again. C:\>echo %foo% %foo% C:\>.
Read more >
Check temp environment variable - Microsoft Community
Check temp environment variable · Click Start, then type the three letters cmd into the Search box and press Enter. · Type these...
Read more >
How can I set an environment variable only for the duration of ...
On Linux (Ubuntu 11.04 (Natty Narwhal)) in Bash, is it possible to temporarily set an environment variable that will only be different from ......
Read more >
Windows TEMP/TMP Environment Variables - Romex Software
The TEMP/TMP environment variables specify the location in which most programs place temporary files. By default, TEMP/TMP location is in the Windows partition ......
Read more >
Environment Variables - Micro Focus
Environment variables can be defined temporarily by booting to MS-DOS mode, defining variables with the SET command and then starting Windows. Variables ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found