Clojure on windows

Post Reply
voyzer
Site Admin
Posts: 36
Joined: 2022 Jul 06 16:57

Clojure on windows

Post by voyzer »

How to set clojure on windows.

1. leiningen

https://gist.github.com/bpringe/4f1d07f ... f572e7b810





2. clj on windows

https://github.com/clojure/tools.deps.a ... on-Windows

install from win-install.ps1 (https://github.com/clojure/brew-install ... nstall.ps1)

PS C:\Users\voyze\Downloads> .\win-install.ps1
.\win-install.ps1 : 이 시스템에서 스크립트를 실행할 수 없으므로 C:\Users\voyze\Downloads\win-install.ps1 파일을 로드할
수 없습니다. 자세한 내용은 about_Execution_Policies(https://go.microsoft.com/fwlink/?LinkID=135170)를 참조하십시오.
위치 줄:1 문자:1
+ .\win-install.ps1
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : 보안 오류: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
PS C:\Users\voyze\Downloads> Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted

실행 규칙 변경
실행 정책은 신뢰하지 않는 스크립트로부터 사용자를 보호합니다. 실행 정책을 변경하면 about_Execution_Policies 도움말
항목(https://go.microsoft.com/fwlink/?LinkID=135170)에 설명된 보안 위험에 노출될 수 있습니다. 실행 정책을
변경하시겠습니까?
[Y] 예(Y) [A] 모두 예(A) [N] 아니요(N) [L] 모두 아니요(L) [S] 일시 중단(S) [?] 도움말 (기본값은 "N"): A
PS C:\Users\voyze\Downloads> .\win-install.ps1

보안 경고
신뢰하는 스크립트만 실행하십시오. 인터넷의 스크립트는 유용할 수 있지만 사용자 컴퓨터를 손상시킬 수도 있습니다.
스크립트를 신뢰하는 경우 Unblock-File cmdlet을 사용하면 이 경고 메시지 없이 스크립트를 실행할 수 있습니다.
C:\Users\voyze\Downloads\win-install.ps1을(를) 실행하시겠습니까?
[D] 실행 안 함(D) [R] 한 번 실행(R) [S] 일시 중단(S) [?] 도움말 (기본값은 "D"): R
Downloading Clojure tools
경고: Clojure will install as a module in your PowerShell module path.

Possible install locations:
1) C:\Users\voyze\OneDrive\문서\WindowsPowerShell\Modules
2) C:\Program Files\WindowsPowerShell\Modules
3) C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
Enter number of preferred install location: 2

Installing PowerShell module
Removing download
Clojure now installed. Use "clj -h" for help.
PS C:\Users\voyze\Downloads> clj
Downloading: org/clojure/clojure/1.11.3/clojure-1.11.3.pom from central
Downloading: org/clojure/clojure/1.11.3/clojure-1.11.3.jar from central
Clojure 1.11.3
user=> ^D
Syntax error reading source at (REPL:1:1).
EOF while reading
voyzer
Site Admin
Posts: 36
Joined: 2022 Jul 06 16:57

Re: Clojure on windows - calva shortcuts

Post by voyzer »

Certainly! Calva is an extension for Visual Studio Code that provides enhanced support for Clojure and ClojureScript development. It offers various keyboard shortcuts to streamline your workflow. Here are some common Calva shortcuts:

General Shortcuts:
Ctrl+Alt+C, Enter: Start a REPL for the current Clojure project.
Ctrl+Alt+C, Ctrl+Alt+J: Connect to an existing REPL session.
Ctrl+Alt+C, Ctrl+Alt+S: Disconnect from the REPL session.
Ctrl+Alt+C, Ctrl+Alt+R: Load the current file in the REPL.
Ctrl+Alt+C, Ctrl+Alt+X: Evaluate the current form at the cursor position in the REPL.
Ctrl+Alt+C, Ctrl+Alt+K: Evaluate the top-level form at the cursor position in the REPL.
REPL Shortcuts:
Alt+Enter: Send the current form to the REPL for evaluation.
Shift+Enter: Evaluate the current form in the REPL and move to the next line.
Ctrl+Enter: Evaluate the current form in the REPL and stay on the same line.
Ctrl+Alt+N: Open a new REPL window.
Ctrl+Alt+P: Close the current REPL window.
Navigation Shortcuts:
Ctrl+Alt+N, Ctrl+Alt+N: Go to the next error or warning in the current file.
Ctrl+Alt+N, Ctrl+Alt+P: Go to the previous error or warning in the current file.
Ctrl+Alt+N, Ctrl+Alt+J: Jump to the definition of the symbol at the cursor position.
Ctrl+Alt+N, Ctrl+Alt+I: Show documentation for the symbol at the cursor position.
Formatting Shortcuts:
Ctrl+Alt+C, Ctrl+Alt+F: Format the current Clojure file using cljfmt.
Ctrl+Alt+C, Ctrl+Alt+T: Run tests in the current namespace.
Linting Shortcuts:
Ctrl+Alt+C, Ctrl+Alt+E: Show linting errors and warnings for the current file.
Ctrl+Alt+C, Ctrl+Alt+A: Auto-fix linting errors and warnings in the current file.
These are just some of the most commonly used shortcuts in Calva. You can explore more shortcuts and customize them according to your preferences by going to Visual Studio Code's keyboard shortcuts settings (Ctrl+K Ctrl+S). Additionally, you can find detailed documentation for Calva and its shortcuts on the Calva GitHub page.
voyzer
Site Admin
Posts: 36
Joined: 2022 Jul 06 16:57

Re: Clojure on windows

Post by voyzer »

PS D:\Project> cd .\Clojure\
PS D:\Project\Clojure> dir


디렉터리: D:\Project\Clojure


Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 2024-04-26 오후 2:24 clojure-project


PS D:\Project\Clojure> lein new app clojure-project-test
Generating a project called clojure-project-test based on the 'app' template.
PS D:\Project\Clojure>
Post Reply