janisdd / vscode-edit-csv

vs code extension to edit csv files with an excel like table ui
MIT License
211 stars 30 forks source link

command 'edit-csv.edit' not found #150

Closed Juku7 closed 4 months ago

Juku7 commented 5 months ago

vscode on windows 10 Whenever I click on the Edit CSV button on the top right, I got this error message " command 'edit-csv.edit' not found ". It's used to work fine without any problem. I don't know why this happened! Also, rainbow CSV extension is not working too image

Im trying to uninstall the extension and even reinstall vscode but those did not help either.

janisdd commented 5 months ago

What does vs code shows as "Language" in the bottom right corner? It should say something with "csv" and not "Plain Text". Try searching for "CSV: edit csv" in the command palette. Does this work?

Juku7 commented 5 months ago

image

vscode detects the file as csv but the extension seems to be not. Using command palette > CSV: edit csv still got an error as screenshot above.

janisdd commented 5 months ago

Since rainbow csv doesn't work either, it seems that settings is vs code are wrong. Are other extensions working as expected? I haven't worked much with settings profiles, but maybe you can export all settings, reset all settings and see if it works with all settings at default values. Then you can import the old settings.

This doesn't seem to be specifically related to this extension.

Juku7 commented 5 months ago

Thank you! I'll try your suggestion and the other extensions working as expected.

Juku7 commented 4 months ago

I have tried resetting user setting and everything back to default but still got the same error with Edit CSV and Rainbow CSV. image

janisdd commented 4 months ago

This is really strange... You could also try opening the development tools Developer: Toggle Developer Tools via the command palette and look for error messages. What are the messages when you click on the "edit csv" button?

Maybe execute the palette command Extensions: Open Extensions Folder and check if its the correct one according to https://code.visualstudio.com/docs/editor/extension-marketplace#_common-questions ?

Juku7 commented 4 months ago

These are the error messages that I get in the developer tools image image image

and extension folder is in the correct place: image

This error only happens on my laptop, on my desktop they work fine. If the error persists, I think of doing a clean setup of my windows again.

janisdd commented 4 months ago

I've found this: https://github.com/microsoft/vscode/issues/136537 The problem might be related to another extensions that prevents other extensions from working. They suggest to run the command Help: Start Extension Bisect. I haven't used this feature myself so I can't tell you how it works directly. Alternatively, you can disable all extensions and re-enable them one by one and check if csv works.

Juku7 commented 4 months ago

I followed your last suggestion and everything works now! Thank you very much! So I uninstalled the extensions one by one, but only 3 of them, the first Rainbow CSV, the second CSV editor and the third Excel viewer. I feel that Excel Viewer is causing problems because things do not work, expect Excel Viewer when there is a problem.

After restarting vscode, I reinstalled Rainbow CSV and it worked perfectly, even the Edit CSV. I also reinstalled Excel Viewer and it's also working fine.

image Again thank you so much for your help!!

janisdd commented 4 months ago

I'm glad it worked.