thunderclient / thunder-client-support

Thunder Client is a lightweight Rest API Client Extension for VS Code.
https://www.thunderclient.com
Other
3.61k stars 126 forks source link

File Not Found (CLI v1.12.0, and UI v2.18.0) #1488

Closed esp0314 closed 6 months ago

esp0314 commented 6 months ago

Hi @rangav, Could you please help us check this?

I have a pre-run custom script that reads a text file. This text file only contains the indicator on what environment to run the collections, in this case its int0. Basically its just a simple string. And the location of this text file is the same location with my custom script. When running the CLI using the filePath = '../env.txt', it was able to read the file, local environment was updated with the corresponding endpoints, and api was executed.

image

image

However, when running the API in the UI, it looks like the filePath = '../env.txt' is not recognized. As you can see, my local environment was not updated, that cause the error.

image

image

I updated the filePath to 'api-tests/env.txt' and works fine image

image

image

Going back to CLI, it was not recognized the updated filepath image

It looks like there is an inconsistent behavior between the UI and CLI.

Thank you.

rangav commented 6 months ago

Hi @esp0314

Please right click on file in vscode and select Copy Relative Path and use this path.

please test and let me know

esp0314 commented 6 months ago

Hi @rangav,

Thank you for your reply. I did and got the same result. And i think the relative is the same with the first arrow (api-tests/env.txt) image

image

rangav commented 6 months ago

Thanks for testing

its it working in the extension? Any previous version of CLI working?

I will verify and get back to you

esp0314 commented 6 months ago

Last known working is CLI v1.11.5 using a relative path image

image

Yes, UI extension v2.18.0 is working using relative path

rangav commented 6 months ago

Thanks will verify and get back to you

rangav commented 6 months ago

This bug is fixed and published to the marketplace. Please update to v2.19.0.

You can see all the features released in this update https://github.com/rangav/thunder-client-support/releases/tag/v2.19.0

Please test it and let me know your feedback

esp0314 commented 6 months ago

Thank you for fixing the path issue on CLI v1.12.4 and Extension v2.19.2 image

However, i found another issue but not related to this. I will file a separate ticket and provide the complete info.

rangav commented 6 months ago

Thanks for confirmation