robocorp / robotframework-lsp

Robocorp extensions for VS Code: Robocorp Code and RFW LSP
https://robocorp.com/docs/developer-tools/visual-studio-code
Apache License 2.0
205 stars 93 forks source link

Robot creation Error on Windows - Problem with Robocorp_Home #712

Open kaveecage opened 2 years ago

kaveecage commented 2 years ago

So when trying to follow the user guide to create a robot, I get a problem that is similar to a previous issue "Robot Creation Error #200".

Basically when I open my folder and then ctrl+shift+P, then select "Robocorp: create robot", I get an error message saying The current ROBOCORP_HOME is invalid (paths with spaces/non ascii chars are not supported) However, when I check the path for ROBOCORP_HOME, I have this : C:\ROBOCORP_HOME

So, I don't understand how they can be something wrong. There is no spaces nor non ascii chars Could you advise? Thank you image

kaveecage commented 2 years ago

And I can see that the path used by the program is not at all the one I get when I click to select a new home for robocorp... Really strange. I have uninstalled and reinstalled but that does not change anything.

fabioz commented 2 years ago

Can you verify if the robocorp.home setting is set after you make that choice (it's saved in your user settings)?

If you manually put it in your .vscode/settings.json as:

"robocorp.home": "c:/ROBOCORP_HOME"

and restart, does it work?

fabioz commented 2 years ago

Another thing that could be happening is that you don't have permissions to create c:/ROBOCORP_HOME... can you check if you can manually create it?

kaveecage commented 2 years ago

Hello Fabio,

Could you confirm which user settings your are referring to and where am I supposed to find it? (Looking quickly at VS Code, I can't see anything like that in the menu)

And I could not find settings.json file

Cordialement, Antoine pour la Team Kavee

On Tue, 26 Jul 2022 at 20:20, Fabio Zadrozny @.***> wrote:

Can you verify if the robocorp.home setting is set after you make that choice (it's saved in your user settings).

If you manually put it in your .vscode/settings.json as:

"robocorp.home": "c:/ROBOCORP_HOME"

and restart, does it work?

— Reply to this email directly, view it on GitHub https://github.com/robocorp/robotframework-lsp/issues/712#issuecomment-1195827201, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWQATLULPOZJHSPZ3HD6MJDVWAT5XANCNFSM54WXUZWA . You are receiving this because you authored the thread.Message ID: @.***>

fabioz commented 2 years ago

You can see the settings with Ctrl+, -- or through the command: Open User Settings and then filter with robocorp.home (you can see user and workspace settings there).

i.e.: image

kaveecage commented 2 years ago

Ok, so the problem is that the function that allows to reallocate the home does not work. That setting has still the old location, despite me giving the instruction to set the home somewhere else

Cordialement, Antoine pour la Team Kavee

On Tue, 26 Jul 2022 at 21:39, Fabio Zadrozny @.***> wrote:

You can see the preferences with Ctrl+, -- or through the command: Open User Settings and then filter with robocorp.home (you can see user and workspace settings there).

i.e.: [image: image] https://user-images.githubusercontent.com/117621/181097523-c58b617e-3661-4237-abc8-ac156f72d633.png

— Reply to this email directly, view it on GitHub https://github.com/robocorp/robotframework-lsp/issues/712#issuecomment-1195901910, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWQATLV63RXMOMCH4O6YML3VWA5HZANCNFSM54WXUZWA . You are receiving this because you authored the thread.Message ID: @.***>

fabioz commented 2 years ago

I can't reproduce this.... which version of Robocorp Code and VSCode are you using?

fabioz commented 2 years ago

@kaveecage are you still interested in tracking this issue? Can you provide details on the versions you're using?

kaveecage commented 1 year ago

I am using the latest version as I have just started to try to use it. I have reinstall everything from scratch and it works fine. The problem is that function propositing to change the path that does not work.

Cordialement, Antoine pour la Team Kavee

On Wed, 3 Aug 2022 at 12:58, Fabio Zadrozny @.***> wrote:

@kaveecage https://github.com/kaveecage are you still interested in tracking this issue? Can you provide details on the versions you're using?

— Reply to this email directly, view it on GitHub https://github.com/robocorp/robotframework-lsp/issues/712#issuecomment-1203794933, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWQATLVM6QCV4FYRXL6ET7LVXJGFHANCNFSM54WXUZWA . You are receiving this because you were mentioned.Message ID: @.***>

harshmishra19898 commented 1 month ago

You can see the settings with Ctrl+, -- or through the command: Open User Settings and then filter with robocorp.home (you can see user and workspace settings there).

i.e.: image

This worked Thanks!