Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vsce ls does not show any files #374

Closed
Revilotom opened this issue Jul 15, 2019 · 12 comments
Closed

vsce ls does not show any files #374

Revilotom opened this issue Jul 15, 2019 · 12 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug help wanted Issues identified as good community contribution opportunities

Comments

@Revilotom
Copy link

Running

$ vsce ls 

Does not show any files for me.
What am I doing wrongly?

@joaomoreno
Copy link
Member

What is your full project structure?

@Revilotom
Copy link
Author

The reason there is a "dist" as well as an "out" folder is because I was planning to use webpack for production (dist folder) and the default build system for development (out folder)

$ tree -L 2
.
├── dist
│   ├── extension.js
│   └── extension.js.map
├── node_modules
..........
├── out
│   ├── extension.js
│   ├── extension.js.map
├── package.json
├── package-lock.json
├── README.md
├── src
│   ├── extension.ts
├── tsconfig.json
├── tslint.json
└── webpack.config.js

I have simplified by removing unrelated files and a modules directory from the "src" folder

@joaomoreno
Copy link
Member

Do you have a .vscodeignore file?

@Revilotom
Copy link
Author

Yes but it is empty

@joaomoreno
Copy link
Member

joaomoreno commented Jul 16, 2019

If you remove it, does vsce list any files? Which version of vsce do you have? Can you give me access to your code?

@Revilotom
Copy link
Author

I tried removing it but it made no difference for me.

$ vsce --version
1.65.0

You can access the root directory of the extension code by doing:

git clone https://github.com/conjure-cp/conjure
cd conjure
git checkout loadcore
cd ide

@joaomoreno
Copy link
Member

I can't reproduce. I've cloned it and ran those steps. I've also run npm install. Then, running vsce ls gives me the following output: https://gist.github.com/joaomoreno/9762b05760193c5df265680c28a2232a

What platform are you on?

@Revilotom
Copy link
Author

Trying it on another system it seems to work fine just like you said..😕
The system it doesn't work on has the following environment:

$ uname -a 
Linux mai 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

$ npm -v
6.10.0

$ node --version
v10.14.2

@joaomoreno
Copy link
Member

How fast does vsce ls run? time vsce ls

@Revilotom
Copy link
Author

$ time vsce ls
 ERROR  { Error: Command failed: npm show vsce version

    at ChildProcess.exithandler (child_process.js:294:12)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:962:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
  killed: false,
  code: 243,
  signal: null,
  cmd: 'npm show vsce version' }

real    0m3.532s
user    0m5.011s
sys     0m0.348s

@joaomoreno joaomoreno added bug Issue identified by VS Code Team member as probable bug help wanted Issues identified as good community contribution opportunities labels Jul 23, 2019
@joaomoreno joaomoreno self-assigned this Jul 23, 2019
@xontab
Copy link
Contributor

xontab commented Dec 29, 2019

@Revilotom Are you using the Snap NodeJS version or deb?

I have encountered similar issues with the Snap version and looks like this issue can be related to #341

@Revilotom
Copy link
Author

@xontab Unfortunately I no longer have access to the PC that had this issue so I cant be sure but yes I think I was using Snap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug help wanted Issues identified as good community contribution opportunities
Projects
None yet
Development

No branches or pull requests

3 participants