Giter VIP home page Giter VIP logo

vscode-bitbake's Introduction

Sorry folk, I don't have any time to work on this plugin. I'm very happy that the project is takeover by Yocto Project Official YP fork https://github.com/yoctoproject/vscode-bitbake https://marketplace.visualstudio.com/items?itemName=yocto-project.yocto-bitbake

BitBake recipe language support plugin for Visual Studio Code

This Visual Studio Code plugin is based on Example - Language Server.

For a description of the extension itself, please see the client's README. The changelog for the extension may be found here.

To install this extension from the VS Code Extension Marketplace, please follow this guide. For more information regarding the Extension Marketplace, please see the official documentation.

Manual installation

Manual installation takes place in two steps. The code must be installed via npm and subsequently built within Visual Studio Code. Before performing these steps, please ensure you have cloned this repository.

Code installation

To install the extension:

npm install

vscode-bitbake's People

Contributors

bjorkstromm avatar eugenwiens avatar johnbivens avatar priv-kweihmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vscode-bitbake's Issues

Bad highlighting if a class function is called `python_foo`

I have a class with a function called python_pep517_do_install. It gets highlighted badly and appears as python pep517_do_install (without the space, can't wrangle markdown enough).

I'm guessing that's the detection for python functions being too loose and looking for any functions that start with python when it should be python-then-whitespace.

command 'bitbake.rescan-project' not found

Hi,

I'm not sure if I have properly configured environment. I installed plugin using extension browser, I got proper syntax highlighting but proposition for inherit not working. Invoking re-scan end with popup command 'bitbake.rescan-project' not found. I'm using Gentoo and I'm using vscode from binary redistribution.

What is your thought on this topic, am I missing something?

Thanks,
Bartłomiej

The layers are not parsed automatically.

Hello

I tried to parse the layers but it did not worked.
I kept the folder structure as

Sources
poky
meta-openembedded
meta-atmel

I run command like
source source/poky/oe-init-build-env vscode-bitbake-build

After that there is folder created like
vscode-bitbake-build

when I check it doesn't create the sh script as shown in Youtube Tutorial
So I created manually. Still no effect. It's not able to parse the layers, recipes also.

Thanks in advance

New override syntax

Hi,
As Yocto honister is now released, will there be a new release of the plugin with the new override syntax ?
Thank you.

New fork Extension on VS Market Place

Hey @EugenWiens I saw that you added the 11fa149
I've also maintained a fork since January: https://github.com/microhobby/vscode-bitbake
It's been published already on VS Market Place to support the new syntax and other minor improvements: https://marketplace.visualstudio.com/items?itemName=microhobby.bitbake2

I also asked to deprecate your extension to people get the new one here: microsoft/vscode-discussions#1

But, since I see that you are blessing the other fork, maybe should I remove the discussion there.
Anyway, I'm trying to communicate my work here.

Rename default "vscode-bitbake-build" directory

The Poky git repo by default has /build*/ in its .gitignore file. It would be great if the default build directory for this project could be "build-vscode-bitbake" instead so it doesn't show up as untracked changes in git.

Capture

Language Server can not be started: Language client is not ready yet

[2018-08-29 07:19:13.408] [exthost1] [error] Error: Language client is not ready yet at LanguageClient.sendRequest (/home/wiens/.vscode/extensions/eugenwiens.bitbake-1.1.0/node_modules/vscode-languageclient/lib/client.js:1473:19) at disposeables.push.vscode_1.commands.registerCommand.args (/home/wiens/.vscode/extensions/eugenwiens.bitbake-1.1.0/node_modules/vscode-languageclient/lib/client.js:1367:28) at e._executeContributedCommand (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:712:994) at e.$executeContributedCommand (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:713:479) at e._doInvokeHandler (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:671:983) at e._invokeHandler (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:671:701) at e._receiveRequest (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:670:767) at e._receiveOneMessage (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:670:536) at /usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:669:452 at /usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:672:575 at /usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:96:903 at e.fire (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:98:218) at a (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:162:713) at Socket._socketDataListener (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:162:932) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at Socket.Readable.push (_stream_readable.js:208:10) at Pipe.onread (net.js:594:20) bitbake.rescan-project

Add command to set MACHINE Variable

If a Project is using multible machiens with one local.conf it is possible to build for different machiens with following command.
MACHINE=xxx bitbake image
Add a possibility to switch the parser to other machien.

Error: ENOENT: no such file or directory, open 'null/executeBitBakeCmd.sh'

Today I opened a recipe and code threw this error log in the console:

error: parsing all recipes is abborted: Error: ENOENT: no such file or directory, open 'null/executeBitBakeCmd.sh'
error: scanning of project is abborted: Error: ENOENT: no such file or directory, open 'null/executeBitBakeCmd.sh'
/home/bernd/.vscode/extensions/EugenWiens.bitbake-1.0.1/server/BitBakeProjectScanner.js:89
                throw error;
                ^

Error: ENOENT: no such file or directory, open 'null/executeBitBakeCmd.sh'
    at Object.fs.openSync (fs.js:584:18)
    at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:173:20)
    at Object.fs.writeFileSync (fs.js:1326:33)
    at BitBakeProjectScanner.executeCommandInBitBakeEnvironment (/home/bernd/.vscode/extensions/EugenWiens.bitbake-1.0.1/server/BitBakeProjectScanner.js:287:12)
    at BitBakeProjectScanner.scanAvailableLayers (/home/bernd/.vscode/extensions/EugenWiens.bitbake-1.0.1/server/BitBakeProjectScanner.js:118:27)
    at BitBakeProjectScanner.rescanProject (/home/bernd/.vscode/extensions/EugenWiens.bitbake-1.0.1/server/BitBakeProjectScanner.js:78:26)
    at Timeout.setTimeout [as _onTimeout] (/home/bernd/.vscode/extensions/EugenWiens.bitbake-1.0.1/server/server.js:25:31)
    at ontimeout (timers.js:386:14)
    at tryOnTimeout (timers.js:250:5)
    at Timer.listOnTimeout (timers.js:214:5)
[Info  - 08:55:47] Connection to server got closed. Server will restart.
error: parsing all recipes is abborted: Error: ENOENT: no such file or directory, open 'null/executeBitBakeCmd.sh'
error: scanning of project is abborted: Error: ENOENT: no such file or directory, open 'null/executeBitBakeCmd.sh'
/home/bernd/.vscode/extensions/EugenWiens.bitbake-1.0.1/server/BitBakeProjectScanner.js:89
                throw error;
                ^

Error: ENOENT: no such file or directory, open 'null/executeBitBakeCmd.sh'
    at Object.fs.openSync (fs.js:584:18)
    at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:173:20)
    at Object.fs.writeFileSync (fs.js:1326:33)
    at BitBakeProjectScanner.executeCommandInBitBakeEnvironment (/home/bernd/.vscode/extensions/EugenWiens.bitbake-1.0.1/server/BitBakeProjectScanner.js:287:12)
    at BitBakeProjectScanner.scanAvailableLayers (/home/bernd/.vscode/extensions/EugenWiens.bitbake-1.0.1/server/BitBakeProjectScanner.js:118:27)
    at BitBakeProjectScanner.rescanProject (/home/bernd/.vscode/extensions/EugenWiens.bitbake-1.0.1/server/BitBakeProjectScanner.js:78:26)
    at Timeout.setTimeout [as _onTimeout] (/home/bernd/.vscode/extensions/EugenWiens.bitbake-1.0.1/server/server.js:25:31)
    at ontimeout (timers.js:386:14)
    at tryOnTimeout (timers.js:250:5)
    at Timer.listOnTimeout (timers.js:214:5)
[Info  - 08:55:48] Connection to server got closed. Server will restart.
error: parsing all recipes is abborted: Error: ENOENT: no such file or directory, open 'null/executeBitBakeCmd.sh'
error: scanning of project is abborted: Error: ENOENT: no such file or directory, open 'null/executeBitBakeCmd.sh'
/home/bernd/.vscode/extensions/EugenWiens.bitbake-1.0.1/server/BitBakeProjectScanner.js:89
                throw error;
                ^

Error: ENOENT: no such file or directory, open 'null/executeBitBakeCmd.sh'
    at Object.fs.openSync (fs.js:584:18)
    at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:173:20)
    at Object.fs.writeFileSync (fs.js:1326:33)
    at BitBakeProjectScanner.executeCommandInBitBakeEnvironment (/home/bernd/.vscode/extensions/EugenWiens.bitbake-1.0.1/server/BitBakeProjectScanner.js:287:12)
    at BitBakeProjectScanner.scanAvailableLayers (/home/bernd/.vscode/extensions/EugenWiens.bitbake-1.0.1/server/BitBakeProjectScanner.js:118:27)
    at BitBakeProjectScanner.rescanProject (/home/bernd/.vscode/extensions/EugenWiens.bitbake-1.0.1/server/BitBakeProjectScanner.js:78:26)
    at Timeout.setTimeout [as _onTimeout] (/home/bernd/.vscode/extensions/EugenWiens.bitbake-1.0.1/server/server.js:25:31)
    at ontimeout (timers.js:386:14)
    at tryOnTimeout (timers.js:250:5)
    at Timer.listOnTimeout (timers.js:214:5)
[Info  - 08:55:49] Connection to server got closed. Server will restart.
error: parsing all recipes is abborted: Error: ENOENT: no such file or directory, open 'null/executeBitBakeCmd.sh'
error: scanning of project is abborted: Error: ENOENT: no such file or directory, open 'null/executeBitBakeCmd.sh'
/home/bernd/.vscode/extensions/EugenWiens.bitbake-1.0.1/server/BitBakeProjectScanner.js:89
                throw error;
                ^

Error: ENOENT: no such file or directory, open 'null/executeBitBakeCmd.sh'
    at Object.fs.openSync (fs.js:584:18)
    at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:173:20)
    at Object.fs.writeFileSync (fs.js:1326:33)
    at BitBakeProjectScanner.executeCommandInBitBakeEnvironment (/home/bernd/.vscode/extensions/EugenWiens.bitbake-1.0.1/server/BitBakeProjectScanner.js:287:12)
    at BitBakeProjectScanner.scanAvailableLayers (/home/bernd/.vscode/extensions/EugenWiens.bitbake-1.0.1/server/BitBakeProjectScanner.js:118:27)
    at BitBakeProjectScanner.rescanProject (/home/bernd/.vscode/extensions/EugenWiens.bitbake-1.0.1/server/BitBakeProjectScanner.js:78:26)
    at Timeout.setTimeout [as _onTimeout] (/home/bernd/.vscode/extensions/EugenWiens.bitbake-1.0.1/server/server.js:25:31)
    at ontimeout (timers.js:386:14)
    at tryOnTimeout (timers.js:250:5)
    at Timer.listOnTimeout (timers.js:214:5)
[Info  - 08:55:49] Connection to server got closed. Server will restart.
error: parsing all recipes is abborted: Error: ENOENT: no such file or directory, open 'null/executeBitBakeCmd.sh'
error: scanning of project is abborted: Error: ENOENT: no such file or directory, open 'null/executeBitBakeCmd.sh'
/home/bernd/.vscode/extensions/EugenWiens.bitbake-1.0.1/server/BitBakeProjectScanner.js:89
                throw error;
                ^

Error: ENOENT: no such file or directory, open 'null/executeBitBakeCmd.sh'
    at Object.fs.openSync (fs.js:584:18)
    at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:173:20)
    at Object.fs.writeFileSync (fs.js:1326:33)
    at BitBakeProjectScanner.executeCommandInBitBakeEnvironment (/home/bernd/.vscode/extensions/EugenWiens.bitbake-1.0.1/server/BitBakeProjectScanner.js:287:12)
    at BitBakeProjectScanner.scanAvailableLayers (/home/bernd/.vscode/extensions/EugenWiens.bitbake-1.0.1/server/BitBakeProjectScanner.js:118:27)
    at BitBakeProjectScanner.rescanProject (/home/bernd/.vscode/extensions/EugenWiens.bitbake-1.0.1/server/BitBakeProjectScanner.js:78:26)
    at Timeout.setTimeout [as _onTimeout] (/home/bernd/.vscode/extensions/EugenWiens.bitbake-1.0.1/server/server.js:25:31)
    at ontimeout (timers.js:386:14)
    at tryOnTimeout (timers.js:250:5)
    at Timer.listOnTimeout (timers.js:214:5)
[Error - 08:55:50] Connection to server got closed. Server will not be restarted.

jumper to bbclass

now we have inherit + bbclass prediction. I wonder can we add a feature like ctrl+click on the inherit "kernel" and jump to kernel.bbclass?

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.