Code Monkey home page Code Monkey logo

Comments (5)

lierdakil avatar lierdakil commented on July 30, 2024

Would you be interested in making a PR? I'd probably be faster...

from haskell-debug.

DavidEichmann avatar DavidEichmann commented on July 30, 2024

Yeah, I've not done much TS nor atom hacking, but I'll give it a go tonight.

from haskell-debug.

DavidEichmann avatar DavidEichmann commented on July 30, 2024

I'm having some trouble setting up my environment. So far I've done:

  • Clone git repo
  • git submodule init
  • git submodule update
  • apm install
  • apm link

I can now open atom and use the package, but my change to the TS code are not compiled to JS. I've tried using tsc, but it returns a lot of errors:

> tsc
src/lib/Debugger.ts(11,23): error TS2307: Cannot find module 'path'.
src/lib/GHCIDebug.ts(1,21): error TS2307: Cannot find module 'child_process'.
src/lib/GHCIDebug.ts(2,25): error TS2307: Cannot find module 'stream'.
src/lib/GHCIDebug.ts(3,21): error TS2307: Cannot find module 'os'.
src/lib/GHCIDebug.ts(4,23): error TS2307: Cannot find module 'path'.
src/lib/GHCIDebug.ts(366,25): error TS2304: Cannot find name 'Buffer'.
src/lib/TerminalReporter.ts(1,21): error TS2307: Cannot find module 'child_process'.
src/lib/TerminalReporter.ts(2,22): error TS2307: Cannot find module 'net'.
src/lib/TerminalReporter.ts(3,21): error TS2307: Cannot find module 'os'.
src/lib/TerminalReporter.ts(4,23): error TS2307: Cannot find module 'util'.
src/lib/TerminalReporter.ts(27,33): error TS2304: Cannot find name '__dirname'.
src/lib/TerminalReporter.ts(29,37): error TS7006: Parameter 'socket' implicitly has an 'any' type.
src/lib/TerminalReporter.ts(34,26): error TS7006: Parameter 'data' implicitly has an 'any' type.
src/lib/TerminalReporter.ts(94,24): error TS2304: Cannot find name 'Buffer'.
src/lib/config.ts(1,21): error TS2307: Cannot find module 'os'.
src/lib/main.ts(5,21): error TS2307: Cannot find module 'os'.
src/lib/main.ts(6,23): error TS2307: Cannot find module 'path'.
src/lib/main.ts(7,21): error TS2307: Cannot find module 'child_process'.
src/lib/main.ts(59,33): error TS2304: Cannot find name 'require'.
src/lib/main.ts(76,20): error TS7006: Parameter 'code' implicitly has an 'any' type.
src/spec/ghciDebug-spec.ts(2,23): error TS2307: Cannot find module 'path'.
src/spec/ghciDebug-spec.ts(19,37): error TS2304: Cannot find name '__dirname'.

What am I missing?

from haskell-debug.

lierdakil avatar lierdakil commented on July 30, 2024

Sorry about prolonged silence. npm i --only=dev in package directory will install dev-specific dependencies (typescript itself, definitions, tslint). Also, I'm using atom-typescript to emit js, and it's generally rather nice to have (autocompletion, error checking, etc)

from haskell-debug.

lierdakil avatar lierdakil commented on July 30, 2024

I released #16 after some tweaks, so I suppose this can be closed.

from haskell-debug.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.