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

Unable to select components file #113

Open
brandonroth opened this issue Mar 3, 2021 · 1 comment
Open

Unable to select components file #113

brandonroth opened this issue Mar 3, 2021 · 1 comment

Comments

@brandonroth
Copy link

New user to the Zeplin CLI. Launched from shell using the "Connect to code" button in Zeplin Mac app. I made it to the "Select the component file:" option in the cli and this is where things become unusable for me. It appears there are hundreds of components to select from, and scrolling using the arrow keys is incredibly unresponsive, i.e. if I tap the down arrow once per second it's fine, but if I try and tap a couple times in a row the scrolling lags until all the taps have been processed.

Scrolling issues aside, I have no idea what component to select. I just want the one I selected from the Zeplin app. The options I am given have nothing to do with the current project or components I've selected from Zeplin.

I'm not even sure the options presented are even components because it shows files from my .budle/cache directory.

@yuqu yuqu transferred this issue from zeplin/cli Mar 4, 2021
@fonurr
Copy link
Contributor

fonurr commented Mar 5, 2021

Hi @brandonroth.

I think you are using our VS Code Extension to connect components and tried to add components to the configuration file.

Probably there are too many files in your codebase that results in unresponsiveness. I can think of 2 possible reasons for this. Could you please check both?

  1. You accidentally changed settings to include hidden files/folders. If you did so, you can see the changed rules in both Settings json (press cmd/ctrl+shift+P and run "Open Settings (JSON)") and Workspace Settings json (press cmd/ctrl+shift+P and run "Open Workspace Settings (JSON)") and erase all the rules there starting with "zeplin.connectedComponents". This would reset the filter and invisible files/folders shouldn't appear in the results.

  2. You opened a folder other than your project (which includes a lot of unrelated files) in VS Code. If this is the case, can you open your project's root folder.

If these two doesn't solve the problem, can you send an e-mail describing the error to [email protected] with a screen recording if possible and attach VS Code Extension log file to the email (press cmd/ctrl+shift+P and run "Zeplin: Save Logs")? We'll investigate the issue asap.

Scrolling issues aside, I have no idea what component to select. I just want the one I selected from the Zeplin app

To connect a component you should select a file in your codebase and only after that you can select a component from Zeplin to connect them together. If you are not familiar with connected codes feature you can read the documentation from here

Hope that helps,
Onur

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