Ask for advice! Modify the theia source code
March 16, 2020 at 7:39amAsk for advice! Modify the theia source code
March 16, 2020 at 7:39amModify the theia source code, for example, modify the CSS style, but no effect in The Electron Example
March 16, 2020 at 7:54am
if it is not referenced webpack won't bundle it, theia build runs webpack
I'm a novice, following the steps of the official website documents, and now I've done the yarn run start operation under the examples / electronic directory. How can I modify the source code and see the effect after the modification? Thank you very much!
When I am yarn = > yarn Theia build, an error is reported:Error: Cannot find module 'F:\agree\theia_build\theia_agreestudio_v.6\node_modules\node_modules\webpack\bin\webpack.js',and Error: webpack exited with an unexpected code: 1. at ChildProcess.<anonymous> (F:\agree\theia_build\theia_agreestudio_v.6\node_modules\\application-manager\lib\application-process.js:66:28)
March 17, 2020 at 1:10am
My goal of self-study is to debug Theia source code
March 18, 2020 at 1:51am
OK,thanks,All my command output:
git clone https://github.com/eclipse-theia/theia.git
yarn
yarn rebuild:electron
cd examples/electron
yarn run start
What I expect is to debug the source code, not the application examples, but what I have been exposed to at present is only the steps described in the official documents.
The official website is:https://github.com/eclipse-theia/theia/blob/master/doc/Developing.md
My system is windows 10
Yarn version number is 1.7.0
Node version number is 10.15.3
Python version number is python2.7
git version 2.18.0.windows.1
March 18, 2020 at 7:55am
I meant that you get as output of running this command. But actually not very familiar with development on Windows. maybe has a clue what is going wrong
for incemental development please see also: https://github.com/eclipse-theia/theia/blob/master/doc/Developing.md#watching
you have to watch bundling in the example package as well as compilation in the changed extension package
Also modifying the source code makes sense only if you are planning to contribute something to Theia
to build a custom product you should develop a custom extension and use the dependency injection: https://theia-ide.org/docs/authoring_extensions/