Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not able to run/launch project in vscodium #64

Open
ahsmha opened this issue Feb 7, 2023 · 7 comments
Open

not able to run/launch project in vscodium #64

ahsmha opened this issue Feb 7, 2023 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@ahsmha
Copy link

ahsmha commented Feb 7, 2023

This is the error in debug console I get when trying to launch the project in vs-code IDE.

DAP server listening at: 127.0.0.1:52655
Type 'dlv help' for list of commands.
fatal: no data directory set
Process 55290 has exited with status 1
Detaching

How can I set the data directory to run the project on my computer. Please help

@casbin-bot
Copy link
Member

@WenyXu @nodece @noneback

@casbin-bot casbin-bot added the question Further information is requested label Feb 7, 2023
@hsluoyz
Copy link
Member

hsluoyz commented Feb 7, 2023

@WenyXu @nodece @noneback

@hsluoyz hsluoyz added bug Something isn't working and removed question Further information is requested labels Feb 7, 2023
@WenyXu
Copy link
Collaborator

WenyXu commented Feb 7, 2023

It's seems like just didn't specify the data path?

Check this
https://mesh.casbin.org/docs/guide/getting-started

You can specify the data path like the following:

casmesh -node-id node0 ~/node1_data

and the related source code was located:

cfg.dataPath = flag.Arg(0)

@ahsmha
Copy link
Author

ahsmha commented Feb 11, 2023

@WenyXu Could you please share the launch config json file which you're using. Actually, I'm trying to set up the local development environment for casbin-mesh only, so that I can contribute code to it.

@hsluoyz
Copy link
Member

hsluoyz commented Feb 12, 2023

@WenyXu

@ahsmha
Copy link
Author

ahsmha commented Feb 16, 2023

@hsluoyz @WenyXu please help me set up the local development environment

@WenyXu
Copy link
Collaborator

WenyXu commented Feb 20, 2023

@WenyXu Could you please share the launch config json file which you're using. I'm trying to set up the local development environment for casbin-mesh only, so I can contribute code to it.

I'm sorry for not getting back to you sooner. I don't use the vscode editor, but this link may help you. You can configure the debug launch file following the below bash commands.

casmesh -node-id node0 ~/node1_data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants