neuron-team / vscode-ipe

Interactive programming experience for data scientists: Visual Studio Code extension
MIT License
353 stars 27 forks source link

Developer docs not accurate #195

Open haberdashPI opened 5 years ago

haberdashPI commented 5 years ago

Following the instructions from the developer docs, I cannot get the development server working.

[davidlittle@Mycroft:tools]$ git clone https://github.com/neuron-team/vscode-ipe
Cloning into 'vscode-ipe'...
remote: Enumerating objects: 3309, done.
remote: Total 3309 (delta 0), reused 0 (delta 0), pack-reused 3309
Receiving objects: 100% (3309/3309), 1.96 MiB | 6.46 MiB/s, done.
Resolving deltas: 100% (2399/2399), done.
[davidlittle@Mycroft:tools]$ cd vscode-ipe/
[davidlittle@Mycroft:vscode-ipe]$ npm install

> neuron-IPE@1.0.4 postinstall /Users/davidlittle/Documents/tools/vscode-ipe
> node ./node_modules/vscode/bin/install

Detected VS Code engine version: ^1.23.0
Found minimal version that qualifies engine range: 1.23.0
Fetching vscode.d.ts from: https://raw.githubusercontent.com/Microsoft/vscode/7c7da59c2333a1306c41e6e7b68d7f0caa7b3d45/src/vs/vscode.d.ts
vscode.d.ts successfully installed!

added 350 packages from 514 contributors and audited 994 packages in 5.819s
found 16 vulnerabilities (4 low, 8 moderate, 4 high)
  run `npm audit fix` to fix them, or `npm audit` for details
[davidlittle@Mycroft:vscode-ipe]$ cd src-frontend/
[davidlittle@Mycroft:src-frontend]$ npm install

> fsevents@1.2.3 install /Users/davidlittle/Documents/tools/vscode-ipe/src-frontend/node_modules/fsevents
> node install

[fsevents] Success: "/Users/davidlittle/Documents/tools/vscode-ipe/src-frontend/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" is installed via remote

> uws@9.14.0 install /Users/davidlittle/Documents/tools/vscode-ipe/src-frontend/node_modules/uws
> node-gyp rebuild > build_log.txt 2>&1 || exit 0

> node-sass@4.9.0 install /Users/davidlittle/Documents/tools/vscode-ipe/src-frontend/node_modules/node-sass
> node scripts/install.js

Cached binary found at /Users/davidlittle/.npm/node-sass/4.9.0/darwin-x64-64_binding.node

> uglifyjs-webpack-plugin@0.4.6 postinstall /Users/davidlittle/Documents/tools/vscode-ipe/src-frontend/node_modules/webpack/node_modules/uglifyjs-webpack-plugin
> node lib/post_install.js

> node-sass@4.9.0 postinstall /Users/davidlittle/Documents/tools/vscode-ipe/src-frontend/node_modules/node-sass
> node scripts/build.js

Binary found at /Users/davidlittle/Documents/tools/vscode-ipe/src-frontend/node_modules/node-sass/vendor/darwin-x64-64/binding.node
Testing binary
Binary is fine
added 1286 packages from 1273 contributors and audited 7499 packages in 34.373s
found 110 vulnerabilities (16 low, 74 moderate, 20 high)
  run `npm audit fix` to fix them, or `npm audit` for details
[davidlittle@Mycroft:src-frontend]$ cd ..
[davidlittle@Mycroft:vscode-ipe]$ npm run watch-frontend

> neuron-IPE@1.0.4 watch-frontend /Users/davidlittle/Documents/tools/vscode-ipe
> npm run build-types && cd src-frontend && npm run watch

> neuron-IPE@1.0.4 build-types /Users/davidlittle/Documents/tools/vscode-ipe
> npm install ./src-common

+ neuron-ipe-types@1.0.0
updated 1 package and audited 994 packages in 2.14s
found 16 vulnerabilities (4 low, 8 moderate, 4 high)
  run `npm audit fix` to fix them, or `npm audit` for details

> src-frontend@1.0.1 watch /Users/davidlittle/Documents/tools/vscode-ipe/src-frontend
> ng build --watch

Date: 2019-04-20T11:51:53.061Z
Hash: b64644dc1d700b290b53
Time: 3277ms
chunk {inline} inline.bundle.js, inline.bundle.js.map (inline) 3.89 kB [entry] [rendered]
chunk {main} main.bundle.js, main.bundle.js.map (main) 277 bytes [initial] [rendered]
chunk {polyfills} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 297 bytes [initial] [rendered]
chunk {scripts} scripts.bundle.js, scripts.bundle.js.map (scripts) 32.4 kB [initial] [rendered]
chunk {styles} styles.bundle.js, styles.bundle.js.map (styles) 15.3 kB [initial] [rendered]

ERROR in src/app/app.component.ts(3,34): error TS2307: Cannot find module 'neuron-ipe-types'.
src/app/card/card.component.ts(2,22): error TS2307: Cannot find module 'neuron-ipe-types'.
src/app/classes/extension.service.ts(3,22): error TS2307: Cannot find module 'neuron-ipe-types'.
lorenzo2897 commented 5 years ago

Can you try running npm run build-types from the root directory?

haberdashPI commented 5 years ago

That ran just fine, but it doesn't seem to have fixed the problem:

[davidlittle@Mycroft:vscode-ipe]$ npm run build-types

> neuron-IPE@1.0.4 build-types /Users/davidlittle/Documents/tools/vscode-ipe
> npm install ./src-common

+ neuron-ipe-types@1.0.0
updated 1 package and audited 994 packages in 1.631s
found 16 vulnerabilities (4 low, 8 moderate, 4 high)
  run `npm audit fix` to fix them, or `npm audit` for details
[davidlittle@Mycroft:vscode-ipe]$ npm run watch-frontend

> neuron-IPE@1.0.4 watch-frontend /Users/davidlittle/Documents/tools/vscode-ipe
> npm run build-types && cd src-frontend && npm run watch

> neuron-IPE@1.0.4 build-types /Users/davidlittle/Documents/tools/vscode-ipe
> npm install ./src-common

+ neuron-ipe-types@1.0.0
updated 1 package and audited 994 packages in 1.83s
found 16 vulnerabilities (4 low, 8 moderate, 4 high)
  run `npm audit fix` to fix them, or `npm audit` for details

> src-frontend@1.0.1 watch /Users/davidlittle/Documents/tools/vscode-ipe/src-frontend
> ng build --watch

Date: 2019-04-21T12:16:57.147Z
Hash: b64644dc1d700b290b53
Time: 3044ms
chunk {inline} inline.bundle.js, inline.bundle.js.map (inline) 3.89 kB [entry] [rendered]
chunk {main} main.bundle.js, main.bundle.js.map (main) 277 bytes [initial] [rendered]
chunk {polyfills} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 297 bytes [initial] [rendered]
chunk {scripts} scripts.bundle.js, scripts.bundle.js.map (scripts) 32.4 kB [initial] [rendered]
chunk {styles} styles.bundle.js, styles.bundle.js.map (styles) 15.3 kB [initial] [rendered]

ERROR in src/app/app.component.ts(3,34): error TS2307: Cannot find module 'neuron-ipe-types'.
src/app/card/card.component.ts(2,22): error TS2307: Cannot find module 'neuron-ipe-types'.
src/app/classes/extension.service.ts(3,22): error TS2307: Cannot find module 'neuron-ipe-types'.
lorenzo2897 commented 5 years ago

I don't really know how to help. My best suggestion is try reverting to commit 8056154f2cd2c8ba4d743bd206938cd09ad199f9 and re-compile everything again, see if that fixes the problem; it may have something to do with us renaming all the files.

haberdashPI commented 5 years ago

Alright; thank you for your help. If/when I figure out how to get it working, I can update the docs with new directions.