robotframework-lsp icon indicating copy to clipboard operation
robotframework-lsp copied to clipboard

Robot creation Error on Windows - Problem with Robocorp_Home

Open kaveecage opened this issue 3 years ago • 10 comments

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 avatar Jul 26 '22 17:07 kaveecage

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.

kaveecage avatar Jul 26 '22 17:07 kaveecage

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 avatar Jul 26 '22 18:07 fabioz

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?

fabioz avatar Jul 26 '22 18:07 fabioz

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: @.***>

kaveecage avatar Jul 26 '22 19:07 kaveecage

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

fabioz avatar Jul 26 '22 19:07 fabioz

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: @.***>

kaveecage avatar Jul 26 '22 21:07 kaveecage

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

fabioz avatar Jul 26 '22 22:07 fabioz

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

fabioz avatar Aug 03 '22 10:08 fabioz

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: @.***>

kaveecage avatar Oct 11 '22 09:10 kaveecage

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!

harshmishra19898 avatar Aug 11 '24 10:08 harshmishra19898