GithubHelp home page GithubHelp logo

Activating extension 'raagh.angular-karma-test-explorer' failed: Cannot find module '..../.vscode/extensions/raagh.angular-karma-test-explorer-0.3.0/out/main.js'. about angular-karma_test-explorer HOT 6 CLOSED

aavelyn avatar aavelyn commented on June 28, 2024
Activating extension 'raagh.angular-karma-test-explorer' failed: Cannot find module '..../.vscode/extensions/raagh.angular-karma-test-explorer-0.3.0/out/main.js'.

from angular-karma_test-explorer.

Comments (6)

Raagh avatar Raagh commented on June 28, 2024

Hi, thank you for reporting this bug. Are you opening the project folder in vscode or opening a root folder that contains multiple projects? Are you using open folder or open workspace? do you have other test explorers?(if yes which one?) sounds stupid but did you try uninstall/install again?

just tried it with the version uploaded to the marketplace and works fine on windows and mac.
yesterday it was the first release using azure pipeline for package and publish so I was wondering if that messed up something, but it has to be something else.

from angular-karma_test-explorer.

aavelyn avatar aavelyn commented on June 28, 2024

It's a single project.

  1. ng new test
  2. install your vscode plugin (all other test-explore plugins deinstalled before)
  3. reload vscode

I also noticed that the default karma.conf.js path is just "karma.conf.js" from Root while a cli created angular project put it to root/src/karma.conf.js

from angular-karma_test-explorer.

Raagh avatar Raagh commented on June 28, 2024

No worries, the karma.conf configuration it's only used on karma/angular projects. With angular cli projects everything is get from the angular.json or angular-cli.json.

Another stupid question, did you do npm install on the project?
If you run Ng test from the project the tests run?
In vscode you re opening the root folder of the project?( where the angular.json is located ).

I am gonna run an Ng new and check if I missed something with latest versions of the angular cli.

I will report back here after.

EDIT 1: I was able to reproduce the bug with a new project. I will check whats going on, to be honest I have no clue. Please still make sure that you do npm install on the project and that ng test works.

EDIT 2: for whatever reason vsce package is ignoring my out folder(which contains the compiled source) when I package on windows. It works fine if I package on Mac OS, makes no sense

from angular-karma_test-explorer.

Raagh avatar Raagh commented on June 28, 2024

@aavelyn just posted version 0.3.2 it should work fine, something in my azure pipeline is messing the package or the publish. I am not sure exactly which part. Its the same code just a version I packaged myself and published manually. Tried it on an regular cli project and its working

from angular-karma_test-explorer.

aavelyn avatar aavelyn commented on June 28, 2024

It works now thanks! Great Plugin!

Some things I've noticed:

  • It took over 3min to initialize and load all the tests. (I have roughly 80)
  • It would be great to have a folder view (see where the spec files are)
  • It would be great to see the total amount of tests run/fail

Cheers!

from angular-karma_test-explorer.

Raagh avatar Raagh commented on June 28, 2024

Really happy it works now and you like it!. last release was a problem, I need to step up on stability.

Totally agree it should'nt take that long to load, specially that 80 is not a lot of tests. One question on that matter, how long does it take when you run "ng test" from the project?

Great suggestions, I will consider them for future updates. Shouldnt be that hard to implement( I am still new on developing extensions though ahaha)

from angular-karma_test-explorer.

Related Issues (20)

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.