Can't npm link

307 views
Skip to first unread message

Aslak Hellesøy

unread,
Jul 4, 2011, 7:18:33 AM7/4/11
to Ajax.org Cloud9 Editor (Ace)
I'm trying to run Ace's unit tests, but am unable to do so because npm
link fails. (The package.json lists several packages that are not in
the npm registry - pilot is one of them).

Is the README just out of date, or is the project broken?

Thanks,
Aslak

aslak hellesoy

unread,
Jul 4, 2011, 7:44:51 AM7/4/11
to Ajax.org Cloud9 Editor (Ace)
On Mon, Jul 4, 2011 at 12:18 PM, Aslak Hellesøy <aslak.h...@gmail.com> wrote:
I'm trying to run Ace's unit tests, but am unable to do so because npm
link fails. (The package.json lists several packages that are not in
the npm registry - pilot is one of them).


I removed pilot and cockpit from package.json and was able to npm link.
Now I get the following error when I run ./Makefile.dryice.js normal:

# cockpit ---------
- cockpit/ui/request_view.js has require(...) with non-string parameter. Ignoring requirement.

node.js:134
        throw e; // process.nextTick error, or 'error' event on first tick
        ^
TypeError: Cannot call method 'apply' of undefined
    at walk (/Users/ahellesoy/scm/gherkin-editor/vendor/ace/node_modules/dryice/node_modules/uglify-js/lib/process.js:220:36)


My guess is that since I have a fresh install of everything, I have newer libraries that are incompatible with Ace. Here is my environment:

node.js 0.4.9
npm 1.0.15

npm ls gives me this:

npm WARN core-utils >=0.0.4 Unmet dependency in /Users/ahellesoy/scm/gherkin-editor/vendor/ace/node_modules/teleport
npm WARN npm >=0.2.16 Unmet dependency in /Users/ahellesoy/scm/gherkin-editor/vendor/ace/node_modules/teleport
npm WARN promised-fs >=0.1.0 Unmet dependency in /Users/ahellesoy/scm/gherkin-editor/vendor/ace/node_modules/teleport
npm WARN promised-utils >=0.0.8 Unmet dependency in /Users/ahellesoy/scm/gherkin-editor/vendor/ace/node_modules/teleport
npm WARN q 0.2.5 Unmet dependency in /Users/ahellesoy/scm/gherkin-editor/vendor/ace/node_modules/teleport
npm WARN system >=0.1.0 Unmet dependency in /Users/ahellesoy/scm/gherkin-editor/vendor/ace/node_modules/teleport
npm WARN teleport-dashboard >=0.0.5 Unmet dependency in /Users/ahellesoy/scm/gherkin-editor/vendor/ace/node_modules/teleport
npm WARN test >=0.1.0 Unmet dependency in /Users/ahellesoy/scm/gherkin-editor/vendor/ace/node_modules/teleport
a...@0.1.6 /Users/ahellesoy/scm/gherkin-editor/vendor/ace
├── asy...@0.0.5 
├─┬ dry...@0.2.5 
│ └── ugli...@1.0.4 
├── htmlp...@1.7.3 
├─┬ js...@0.2.0 
│ └── req...@1.9.8 
├── mi...@1.2.2 
└─┬ tele...@0.3.2 
  ├── UNMET DEPENDENCY core-utils >=0.0.4
  ├── UNMET DEPENDENCY npm >=0.2.16
  ├── UNMET DEPENDENCY promised-fs >=0.1.0
  ├── UNMET DEPENDENCY promised-utils >=0.0.8
  ├── UNMET DEPENDENCY q 0.2.5
  ├── UNMET DEPENDENCY system >=0.1.0
  ├── UNMET DEPENDENCY teleport-dashboard >=0.0.5
  └── UNMET DEPENDENCY test >=0.1.0

Is anyone else able to run Ace's tests on a fresh checkout with latest versions of node/npm/npm packages?

Aslak

 
Is the README just out of date, or is the project broken?

Thanks,
Aslak

--
You received this message because you are subscribed to the Google Groups "Ajax.org Cloud9 Editor (Ace)" group.
To post to this group, send email to ace-d...@googlegroups.com.
To unsubscribe from this group, send email to ace-discuss...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ace-discuss?hl=en.


Harry Percival

unread,
Jul 4, 2011, 2:07:35 PM7/4/11
to ace-d...@googlegroups.com, Resolver Developers
Hey All,

In case this helps someone else, here's an issue we struggled with and
just solved.

Problem: The cursor in the editor seems offset. You can click way past
the end of the line, and when you type, characters appear offset to the
left of the cursor. This is worse at the end of the line than the
beginnings. The amount of offset varies for each line.

Diagnosis: Page CSS was forcing a proportional font, but Ace calculates
cursor position on assumption of monospace

Fix / Workaround: Use a monospace font. Because that's probably what
you wanted anyway.

Cheers all - keep up the good work!

HP

--

Harry Percival
Developer
ha...@resolversystems.com
+44 (0) 20 3051 2751

PythonAnywhere: A Python Console in your browser
<http://www.pythonanywhere.com/>

17a Clerkenwell Road, London EC1M 5RD, UK
VAT No.: GB 893 5643 79
Registered in England and Wales as company number 5467329.
Registered address: 843 Finchley Road, London NW11 8NA, UK

Irakli Gozalishvili

unread,
Jul 4, 2011, 6:53:28 PM7/4/11
to ace-d...@googlegroups.com
Hi aslak,

I have abandoned `teleport` project because of radical changes in npm >= 1.0.0 and node >= 0.4.0 so it's not going to work. Probably I'll unpublish it to avoid confusion

Regards


Regards
--
Irakli Gozalishvili
Web: http://www.jeditoolkit.com/
Address: 29 Rue Saint-Georges, 75009 Paris, France

aslak hellesoy

unread,
Jul 5, 2011, 2:25:02 AM7/5/11
to ace-d...@googlegroups.com
On Mon, Jul 4, 2011 at 11:53 PM, Irakli Gozalishvili <rfo...@gmail.com> wrote:
Hi aslak,

I have abandoned `teleport` project because of radical changes in npm >= 1.0.0 and node >= 0.4.0 so it's not going to work. Probably I'll unpublish it to avoid confusion


What does this have to do with my question? I'm just trying to follow the README (doing npm link) and haven't seen anything related to teleport.

Aslak

Fabian Jakobs

unread,
Jul 26, 2011, 8:49:18 AM7/26/11
to ace-d...@googlegroups.com
Thanks for sharing this. Ace will break badly if using a non monospace font.

Reply all
Reply to author
Forward
0 new messages