Git Product home page Git Product logo

Comments (2)

dustypomerleau avatar dustypomerleau commented on June 27, 2024

vsce should definitely generate an extension/ directory containing all the goodies. Local setup is a likely culprit. When I run vsce package on the current repo, I get the following contents:

~/Desktop/idris-vscode-0.0.4
├── [Content_Types].xml
├── extension
│   ├── CHANGELOG.md
│   ├── LICENSE.txt
│   ├── README.md
│   ├── idris-vscode.code-workspace
│   ├── language-configuration.json
│   ├── node_modules
│   ├── out
│   ├── package.json
│   └── syntaxes
└── extension.vsixmanifest

My setup:

macOS 10.15.7
VS Code 1.49.2
Node 14.12.0
vsce 1.80.0

from idris-vscode.

timsueberkrueb avatar timsueberkrueb commented on June 27, 2024

Thank you! It appears like the node snap package I was using is at fault. I just replaced that with a deb-based node installation and it works. Sorry for the noise - I will report the (likely) snap-related issue.

Executing prepublish script 'npm run vscode:prepublish'...
npm WARN lifecycle The node binary used for scripts is /snap/bin/node but npm is using /snap/node/3082/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.

> [email protected] vscode:prepublish /home/tim/Dev/GitHub/meraymond2/idris-vscode
> npm run compile

npm WARN lifecycle The node binary used for scripts is /snap/bin/node but npm is using /snap/node/3082/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.

> [email protected] compile /home/tim/Dev/GitHub/meraymond2/idris-vscode
> tsc -p ./

 DONE  Packaged: /home/tim/Dev/GitHub/meraymond2/idris-vscode/idris-vscode-0.0.4.vsix (2 files, 1.04KB)

Did not work with node snap versions 14.12.0 (3082) and 12.18.4 (3041) on Ubuntu 20.04 with vsce 1.80.0, code snap 1.49.2 (45).
Did work with node version v14.12.0 from deb.nodesource.com.

EDIT: Likely related to:

EDIT: AppArmor denials:

Sep 27 16:54:05 ubpo01 kernel: [20602.120858] audit: type=1400 audit(1601218445.511:10619): apparmor="DENIED" operation="file_inherit" profile="/snap/snapd/9279/usr/lib/snapd/snap-confine" pid=55060 comm="snap-confine" family="unix" sock_type="stream" protocol=0 requested_mask="send receive" denied_mask="send receive" addr=none peer_addr=none
Sep 27 16:54:05 ubpo01 kernel: [20602.120863] audit: type=1400 audit(1601218445.511:10620): apparmor="DENIED" operation="file_inherit" profile="/snap/snapd/9279/usr/lib/snapd/snap-confine" pid=55060 comm="snap-confine" family="unix" sock_type="stream" protocol=0 requested_mask="send receive" denied_mask="send receive" addr=none peer_addr=none
Sep 27 16:54:05 ubpo01 kernel: [20602.120865] audit: type=1400 audit(1601218445.511:10621): apparmor="DENIED" operation="file_inherit" profile="/snap/snapd/9279/usr/lib/snapd/snap-confine" pid=55060 comm="snap-confine" family="unix" sock_type="stream" protocol=0 requested_mask="send receive" denied_mask="send receive" addr=none peer_addr=none
Sep 27 16:54:05 ubpo01 kernel: [20602.293033] audit: type=1400 audit(1601218445.683:10622): apparmor="DENIED" operation="file_inherit" profile="/snap/snapd/9279/usr/lib/snapd/snap-confine" pid=55113 comm="snap-confine" family="unix" sock_type="stream" protocol=0 requested_mask="send receive" denied_mask="send receive" addr=none peer_addr=none
Sep 27 16:54:05 ubpo01 kernel: [20602.293037] audit: type=1400 audit(1601218445.683:10623): apparmor="DENIED" operation="file_inherit" profile="/snap/snapd/9279/usr/lib/snapd/snap-confine" pid=55113 comm="snap-confine" family="unix" sock_type="stream" protocol=0 requested_mask="send receive" denied_mask="send receive" addr=none peer_addr=none
Sep 27 16:54:05 ubpo01 kernel: [20602.293039] audit: type=1400 audit(1601218445.683:10624): apparmor="DENIED" operation="file_inherit" profile="/snap/snapd/9279/usr/lib/snapd/snap-confine" pid=55113 comm="snap-confine" family="unix" sock_type="stream" protocol=0 requested_mask="send receive" denied_mask="send receive" addr=none peer_addr=none
Sep 27 16:54:08 ubpo01 kernel: [20605.002073] audit: type=1400 audit(1601218448.391:10625): apparmor="DENIED" operation="file_inherit" profile="/snap/snapd/9279/usr/lib/snapd/snap-confine" pid=55208 comm="snap-confine" family="unix" sock_type="stream" protocol=0 requested_mask="send receive" denied_mask="send receive" addr=none peer_addr=none
Sep 27 16:54:08 ubpo01 kernel: [20605.002076] audit: type=1400 audit(1601218448.391:10626): apparmor="DENIED" operation="file_inherit" profile="/snap/snapd/9279/usr/lib/snapd/snap-confine" pid=55208 comm="snap-confine" family="unix" sock_type="stream" protocol=0 requested_mask="send receive" denied_mask="send receive" addr=none peer_addr=none
Sep 27 16:54:08 ubpo01 kernel: [20605.002078] audit: type=1400 audit(1601218448.391:10627): apparmor="DENIED" operation="file_inherit" profile="/snap/snapd/9279/usr/lib/snapd/snap-confine" pid=55208 comm="snap-confine" family="unix" sock_type="stream" protocol=0 requested_mask="send receive" denied_mask="send receive" addr=none peer_addr=none
Sep 27 16:54:08 ubpo01 kernel: [20605.163071] audit: type=1400 audit(1601218448.555:10628): apparmor="DENIED" operation="file_inherit" profile="/snap/snapd/9279/usr/lib/snapd/snap-confine" pid=55236 comm="snap-confine" family="unix" sock_type="stream" protocol=0 requested_mask="send receive" denied_mask="send receive" addr=none peer_addr=none

from idris-vscode.

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.