-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing X server or $DISPLAY #30
Comments
Please share the pipeline file you're using. Thanks! |
My apologies for missing that! To recreate this issue:
I am specifically trying to test out this extension: https://github.com/callwyat/mplab-extension ,but it requires MPLABX be installed in order to pass most tests. |
I also have questions about this, and generally about how to provide environment variables to the test runner, in particular in remote development. I think this also relates to #17 . AFAIU there are the following ways of passing environment variables to the extension test runner:
For (1) the remote mode documentation explains that shell init scripts such as (2) and (3) are nice, but they require hard-coding environment variables into the project workspace. Is there a way to avoid that? The use case is that my tests require external tools to be available. Different developers might install such tools in different locations. So how can a developer set the |
A few things:
I've added a new config option
You can do anything you want in your vscode-test.mjs script, a common thing might be using dotenv to load environment variables from a gitignored |
Thanks for the update @connor4312 . The Also, how can I set up the workspace such that the wrapper would be used on Linux but not on Windows where And finally regarding |
I can make it optionally an array instead
You can set that in your Remote Settings in vscode, which are configurable per-remote.
It depends on your setup. For JS debugging, |
I’m I setting this up wrong? I pulled main, launched the extension and found the new “wrapper” setting, updated it with ‘xvfb-run’ in the remote settings and ran the tests, and xvfb-run didn’t show up in the output? |
Note that you need to install the extension in your remote, not just locally. I'll probably do an official release tomorrow. |
Note that I cloned this repo in the remote and launched it in the remote. I forgot to mention that in my earlier post. |
Thanks for the suggestions @connor4312 . I'll give everything a try once the release is out. |
I tried it out today, and it worked!! Thank you 🙏 |
When connected to a Linux machine using the "Remote - SSH", I get the following error when I try to run tests:
I have seen this error before when setting up a CI pipeline for the tests on linux machines. It seams to be caused by trying to open VSCode with no GUI, but I don't know, I just add
xvfb-run -a
onto the front ofnpm run test
as recommended here: https://code.visualstudio.com/api/working-with-extensions/continuous-integration#github-actionsDebugging the tests works, I'm guessing because the UI is opened on my local machine.
Thanks for this great extension!
The text was updated successfully, but these errors were encountered: