-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
No files found #3
Comments
Hi @roadieroundup , The information you present is very minimal and may lead you to think that the extension is not working. If I had to guess, you are using NextJS (or fork) and the issue only appears in folders that contain the characters '[' or ']' in their name. This is a known bug that I have been fighting with for months but have not been able to come up with a solution and it is actually part of a function within the VSCode Core itself. I am sorry for the issue and if it is the case I invite you to try to create the files manually in this type of folders or try with another extension since what you are looking for is the comfort as a development experience. |
Hi @ManuelGil Which additional information do you need? I'm using vite with react and the error appears in any folder with .jsx files |
In order to recreate your issue, I would like to know first the configuration you have of the extension for this project. For example: {
"autoBarrel.language.defaultLanguage": "JavaScript",
"autoBarrel.files.disableRecursiveBarrelling": false,
"autoBarrel.files.includeExtensionOnExport": ["js", "jsx"],
"autoBarrel.files.ignoreFilePathPatternOnExport": ["**/*.spec.*", "**/*.test.*"],
"autoBarrel.files.keepExtensionOnExport": false,
"autoBarrel.files.detectExportsInFiles": false,
"autoBarrel.files.exportDefaultFilename": "filename",
"autoBarrel.formatting.excludeSemiColonAtEndOfLine": true,
"autoBarrel.formatting.useSingleQuotes": true,
"autoBarrel.formatting.endOfLine": "crlf",
"autoBarrel.formatting.insertFinalNewline": false,
} |
I'm also getting this error. Is there a better way to get debug info. The only additional information I have is this worked once, and then stopped. I've tried all the settings, and nothing works.
I removed this line:
It flashed a 'dont forget to update the file' message, but nothing happened. vscode:
Is it possible you're not sanitizing folders on windows? |
So it looks like you may want to update "findFiles"
This is probably more helpful: Is it possible exclude or maxResults are truncating results? The error suggests maxResults The first time it worked was perfect, so it's odd it stops working. That would suggest some kind of cache is being hit, but I've restarted multiple times; uninstalled, reinstaleld. testing other plugins, etc. |
Just tried uninstalling almost everything, and no change with default install. |
Hi @disarticulate , Thank you so much for your comments. I made the changes you proposed and did some tests with a React project and a Vue project with the settings you suggested in the comments. In both cases the files were generated without problems. This change is already published, please perform the relevant tests and share your results. I look forward to hearing from you |
Sorry, I didn't pay attention to the functions, it was my mistake. Actually that is the internal API of VSCode. To develop the extensions you install the I have performed the test on several computers, I suggest you try it on a different computer and share your results with me. You can also clone this repository and test on your own how the extension works. |
Recently created its own function for file tracking that would replace the use of VSCode's native This update is now available. I hope it will definitely fix this issue and help you. |
this seems to work! Great! I had to restart when updating the settings, but otherwise it's fine. To get it to work with vue:
Thanks again! |
...unfortunately, this appears to be a heisenbug. It's reverted to not finding files. It's definitely an upstream issue with how ever vscode handles files. I'm using the ssh plugin. |
I'm going to have to spend a little more time checking what else might be affecting the performance of the extension. I'll be reporting back if I find anything |
So basically, I'm operating on 2-3 project workspaces. It works immediately upon installing. But after ignoring it for hours or whatever, and I need to create a new set of barrel files, it suddenly stops working. It has become more reliable, but there must be some kind of cache inbetween invokes. |
I have uploaded a new update that may bring improvements to the way files are searched by removing the dependency on I have also added a workspace folder check and some additional error messages in order to have a better bug tracking. Please test this update and confirm if it fixes the issue. |
Hi @oribenez , I recently uploaded an update with a different text so that I could recognize the error. Please download the new version and share the new error message. |
Hi thank you for your help. |
Please share your settings for the extension |
Since a while ago I have been facing this problem when I try to create a barrel:
The text was updated successfully, but these errors were encountered: