odatatools
odatatools copied to clipboard
Can't execute Quickstart
When i create a new File and run the command "Create proxy client from OData V4.0 Service" VSCode returns the following error: command 'odatatools.GetProxy' not found Looks like there is a dependancy missing in the extension.
Hi,
- I created a new folder on my system and opened it with VSCode.
- I added
test.tsto that folder - I started my command palette and typed
proxyand switched the function you mentioned above. - I put in the restier v4 test service url:
http://services.odata.org/TripPinRESTierService - I got the proxy and the template files were generated in the .vscode folder.
Could you try these steps. Maybe you have system or workspace settings setting your odatatools to an older version in your project? Otherwise, could you please send the log output to me? (Output -> Odatatools)
Please set the loglevel to trace in your user/workspace settings: "odatatools.logLevel": "Trace"
Hi,
I can't give you the output, because if the error occurs, there is no Output from oData Tools.
BUT! I found the difference between our tests: I didn't create a new folder and/or file. I just opened a new Tab and changed the language mode to "TS". Then tried to create the proxy. Apparently there is at least one saved TS-File needed to work properly. after i created the ts file - even after closing and restarting - i wasn't able to reproduce the problem until i deleted the folder again.
If you want to reproduce my problem.
- Open VS Code
- Press "Ctrl + N" to open a new document/tab
- go to step 3 of your to-do list ;-)
Regards
ps. i can work now, thanks - close the issue whenever you feel like it.
Ah, ok, I can reproduce the problem. I am not sure if I can fix this. It seems the activation events do net get called when you don't have a document open.
But as there is no workspace I cannot store the templates in the .vscode folder and, thus, the extension would not work anyway. I'll try to get a clear error message when no workspace is open.