Skip to content
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

Error in .env file parsing if it contains empty line #341

Closed
5 tasks done
Alex-PLACET opened this issue Mar 25, 2022 · 1 comment
Closed
5 tasks done

Error in .env file parsing if it contains empty line #341

Alex-PLACET opened this issue Mar 25, 2022 · 1 comment

Comments

@Alex-PLACET
Copy link

Checklist

  • The issue is about this extension and NOT about a fork.
  • Check the known issues list.
  • The latest version of the extension was used.
  • It is not related to remote-vscode or I checked the following issue
  • Imagine yourself into my position and think how hard to debug the issue without insufficient information.
    I understand that you have privacy concerns and I expect you to understand that this extension is developed for free.
    Thanks.

Describe the bug
If an empty line is present in the file, it leads to an error: Unknown line in: ...

To Reproduce
Set envFile settings

settings.json:

"testMate.cpp.test.advancedExecutables": [
  ...
  "envFile": "${command:cmake.buildDirectory}/test.env",
  ...
]

envFile content (see the empty line)

PATH=C:\A_Path

Desktop

  • Extension Version: 4.0.26
  • VS Code Version: 1.65.2
  • Google Test: 1.10.0
  • OS Type and Version: Windows 10
  • Using remote-ssh/docker/wsl?: no

Log (optional but recommended)

[2022-03-25 14:46:25.774] [WARN] Unable to parse envFile "c:\MyProject\test.env" [Error: Unknown line in: "c:\MyProject\test.env"
	at c:\Users\AlexisPlacet\.vscode\extensions\matepek.vscode-catch2-test-adapter-4.0.26\out\dist\main.js:2:353304
	at Array.forEach (<anonymous>)
	at e.ConfigOfExecGroup._createSuiteByUri (c:\Users\AlexisPlacet\.vscode\extensions\matepek.vscode-catch2-test-adapter-4.0.26\out\dist\main.js:2:353269)
	at runMicrotasks (<anonymous>)
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
	at async c:\Users\AlexisPlacet\.vscode\extensions\matepek.vscode-catch2-test-adapter-4.0.26\out\dist\main.js:2:349779]
@matepek
Copy link
Owner

matepek commented Apr 26, 2022

Fixed in **v4.1.0**.

This issue was mentioned in CHANGELOG.md under a released entry so it is assumed to be fixed.
User verifications are always welcome.

@matepek matepek closed this as completed Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants