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 when creating extension with tfx: invalid part name #394

Open
urbanfi opened this issue Nov 26, 2021 · 1 comment
Open

Error when creating extension with tfx: invalid part name #394

urbanfi opened this issue Nov 26, 2021 · 1 comment

Comments

@urbanfi
Copy link

urbanfi commented Nov 26, 2021

I was following this tutorial to create a custom azure pipeline task:
https://docs.microsoft.com/en-us/azure/devops/extend/develop/add-build-task?view=azure-devops#createpublisher

I always get the following error message when creating the extension:
PS C:\buildandrealeasetaskhome> tfx extension create --manifest-globs vss-extension.json

error: Error: Part Name '../buildAndReleaseTask/index.js' is invalid. Please check the following: error: 1. No whitespace or any of these characters: #^[]<>? error: 2. Cannot end with a period. error: 3. No percent-encoded / or \ characters. Additionally, % must be followed by two hex characters.

I can't find any problems in the filename itself.
I'm using windows powershell on Windows 10 Home.
tfx is Version 0.9.3

I attached the output of --trace-level debug
tfxdebug.txt

@urbanfi
Copy link
Author

urbanfi commented Nov 30, 2021

I found the following workaround:

This error only occurs when using sibling directories:
e.g C:\buildandrealeasetaskhome <-- containing css-extension.json
and C:\buildandrealeasetask <-- containing the extension

When using a parent-child structure this error does not occur
C:\buildandrealeasetaskhome\buildandrealeasetask

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants