bhai-lang icon indicating copy to clipboard operation
bhai-lang copied to clipboard

docs: project setup & getting started

Open Deep-Codes opened this issue 2 years ago • 4 comments

As of now, there are no docs for Project setup for contributing and trying it out locally.

Let me know if help is needed.

Deep-Codes avatar Mar 13 '22 05:03 Deep-Codes

heyy how to run the project locally, please help me out

adamsyy avatar Mar 13 '22 11:03 adamsyy

As of now, there are no docs for Project setup for contributing and trying it out locally.

Let me know if help is needed.

I am unable to run it locally and also looked open issue about this but nothing worked, could you please help me out

thehardikchaturvedi avatar Mar 15 '22 06:03 thehardikchaturvedi

Code: test.bhai

hi bhai bol bhai "Hello bhai"; bye bhai

when I am trying to run it locally it shows me this error:

In terminal: D:\Dhanashree\Learning\Bhailang_Examples> bhailang test.bhai

bhailang : File C:\Users\DELL\AppData\Roaming\npm\bhailang.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. At line:1 char:1

  • bhailang test.bhai
  •   + CategoryInfo          : SecurityError: (:) [], PSSecurityException
      + FullyQualifiedErrorId : UnauthorizedAccess
    
    

How can I solve this??

Suggestions are welcome

Dhanashree1065 avatar Mar 16 '22 16:03 Dhanashree1065

This Problem that you are facing can be solved in two ways:

1). Run your code in Command Prompt, instead of PowerShell, it will run just fine.

2). or you can change your PowerShell Execution Policy to allow scripts like this to run on your local windows machine in future as well. In PowerShell(Administrator Mode) run: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

After this your test code will run in PowerShell as well, but after changing these Execution Policies, you should only execute scripts that you trust.

More information regarding PowerShell Execution Policy can be found here: https://docs.microsoft.com/en-in/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.2

abhaynaagar avatar Mar 18 '22 08:03 abhaynaagar