odatatools icon indicating copy to clipboard operation
odatatools copied to clipboard

Can't execute Quickstart

Open CptBlaubart opened this issue 7 years ago • 3 comments

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.

CptBlaubart avatar Mar 23 '18 07:03 CptBlaubart

Hi,

  1. I created a new folder on my system and opened it with VSCode.
  2. I added test.ts to that folder
  3. I started my command palette and typed proxy and switched the function you mentioned above.
  4. I put in the restier v4 test service url: http://services.odata.org/TripPinRESTierService
  5. 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"

apazureck avatar Mar 23 '18 11:03 apazureck

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.

  1. Open VS Code
  2. Press "Ctrl + N" to open a new document/tab
  3. go to step 3 of your to-do list ;-)

Regards

ps. i can work now, thanks - close the issue whenever you feel like it.

CptBlaubart avatar Mar 23 '18 13:03 CptBlaubart

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.

apazureck avatar Mar 23 '18 18:03 apazureck