On Dev Tools, how can I switch from Console to Diract? Or, in other words, how can I execute step 5 of the Quick Start Guide?

Open
#100 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
30/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
clojure
Domain
documentation

Research direction

Start with the Quick Start guide linked in the issue, especially step 5, and compare it with the reported DevTools screen and launch output. Clarify how users switch from Console to Dirac; done means the guide gets them to a dirac.playground prompt where they can enter ClojureScript code.

Written by the indexing model from the issue text.

Description

Hi,

I am trying to run Dirac. After some problems (see here and here) and some help from people on the web, apparently, the installation was somewhat sucessfull.

I thought everything was fine, see the outputs from the terminal below:

Pedros-MacBook-Air:~ pedro$ dirac
Downloading: org/clojure/clojurescript/maven-metadata.xml from central
WARNING: update-vals already refers to: #'clojure.core/update-vals in namespace: clojure.tools.analyzer.utils, being replaced by: #'clojure.tools.analyzer.utils/update-vals
WARNING: update-keys already refers to: #'clojure.core/update-keys in namespace: clojure.tools.analyzer.utils, being replaced by: #'clojure.tools.analyzer.utils/update-keys
WARNING: update-vals already refers to: #'clojure.core/update-vals in namespace: clojure.tools.analyzer, being replaced by: #'clojure.tools.analyzer.utils/update-vals
WARNING: update-keys already refers to: #'clojure.core/update-keys in namespace: clojure.tools.analyzer, being replaced by: #'clojure.tools.analyzer.utils/update-keys
WARNING: update-vals already refers to: #'clojure.core/update-vals in namespace: clojure.tools.analyzer.passes, being replaced by: #'clojure.tools.analyzer.utils/update-vals
WARNING: update-vals already refers to: #'clojure.core/update-vals in namespace: clojure.tools.analyzer.passes.uniquify, being replaced by: #'clojure.tools.analyzer.utils/update-vals
Located Chromium executable at '/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary'.
Detected Chromium version '107.0.5266.0'
Resolved matching Dirac release as '1.7.2'
Downloading Dirac release from 'https://github.com/binaryage/dirac/releases/download/v1.7.2/dirac-1.7.2.zip'
10545478/10545478   100% [==================================================]  ETA: 00:00
Matching Dirac release is located at '/Users/pedro/.dirac/silo/v/1.7.2'
Preparing playground environment at '/Users/pedro/.dirac/playground'
Compiling playground project...
WARNING: Use of undeclared Var goog.labs.userAgent.browser/isOpera at line 32 /Users/pedro/.dirac/playground/.compiled/dirac/runtime/util.cljs
WARNING: Use of undeclared Var goog.labs.userAgent.browser/isIE at line 32 /Users/pedro/.dirac/playground/.compiled/dirac/runtime/util.cljs
WARNING: Use of undeclared Var goog.labs.userAgent.browser/isEdge at line 32 /Users/pedro/.dirac/playground/.compiled/dirac/runtime/util.cljs
WARNING: Use of undeclared Var goog.labs.userAgent.browser/isFirefox at line 32 /Users/pedro/.dirac/playground/.compiled/dirac/runtime/util.cljs
WARNING: Use of undeclared Var goog.labs.userAgent.browser/isSafari at line 32 /Users/pedro/.dirac/playground/.compiled/dirac/runtime/util.cljs
WARNING: Use of undeclared Var goog.labs.userAgent.browser/isCoast at line 32 /Users/pedro/.dirac/playground/.compiled/dirac/runtime/util.cljs
WARNING: Use of undeclared Var goog.labs.userAgent.browser/isChrome at line 32 /Users/pedro/.dirac/playground/.compiled/dirac/runtime/util.cljs
WARNING: Use of undeclared Var goog.labs.userAgent.browser/isChrome at line 23 /Users/pedro/.dirac/playground/.compiled/dirac/runtime/repl.cljs
WARNING: Use of undeclared Var goog.labs.userAgent.browser/isChrome at line 13 /Users/pedro/.dirac/playground/.compiled/devtools/async.cljs
WARNING: Use of undeclared Var goog.labs.userAgent.browser/isChrome at line 17 /Users/pedro/.dirac/playground/.compiled/devtools/formatters.cljs
Starting playground HTTP server on port 9112
Booting Dirac Agent...
Starting nREPL server v0.8.3 on port 36180
Dirac Agent v1.7.2
Connected to nREPL server at nrepl://localhost:36180.
Agent is accepting connections at ws://localhost:36181.
Launching Chromium [with --user-data-dir='/Users/pedro/.dirac/chromium/profiles/default'] ...
objc[8925]: Class WebSwapCGLLayer is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/Frameworks/libANGLE-shared.dylib (0x226c9db50) and /Applications/Google Chrome Canary.app/Contents/Frameworks/Google Chrome Framework.framework/Versions/107.0.5266.0/Libraries/libGLESv2.dylib (0x1067b40d0). One of the two will be used. Which one is undefined.

I was following the Quick Start guide here. Unfortunately, I am having problems on step 5:

  1. in DevTools switch to Console => Dirac prompt should enter dirac.playground and let you type in cljs code

How can I switch from Console to Dirac?

I tried the following:

image

Thanks!

Dominant language
Clojure
Stars
775
Forks
29
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from binaryage/dirac

All issues in binaryage/dirac

Similar issues

More Clojure issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.