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

Themes and python grammers aren't loading #636

Open
FadyGeo opened this issue Apr 12, 2024 · 6 comments
Open

Themes and python grammers aren't loading #636

FadyGeo opened this issue Apr 12, 2024 · 6 comments

Comments

@FadyGeo
Copy link

FadyGeo commented Apr 12, 2024

I'm trying to integrate the languageclient into my angular project and connect it to a language server. I'm facing this problem currently and can't tell whether i'm using the wrong Webpack configuration or is it a common bug.

image

webpack: `const { dirname, resolve } = require('path');

const config = {
module: {
rules: [
{
test: /.css$/,
use: ['style-loader', 'css-loader'],
include: [
resolve(__dirname, './node_modules/monaco-editor'),
resolve(__dirname, './node_modules/vscode')
]
},
{
test: /.(mp3|wasm|ttf)$/i,
type: 'asset/resource'
}
],
parser: {
javascript: {
url: true
}
}
},
resolve: {
extensions: ['.ts', '.js', '.json', '.ttf']
}
};

module.exports = config;
`
does anyone have an idea on how to solve it?

regards

@CGNonofr
Copy link
Collaborator

Are you using Vite in dev mode?

@FadyGeo
Copy link
Author

FadyGeo commented Apr 12, 2024

@CGNonofr no I'm using only custom-webpack. No Vite

@FadyGeo FadyGeo closed this as completed Apr 12, 2024
@FadyGeo FadyGeo reopened this Apr 12, 2024
@CGNonofr
Copy link
Collaborator

Sorry, I've read a little too fast! That's a common Vite issue. Are you up to date with webpack/monaco-languageclient/monaco-vscode-api?

@kaisalmen
Copy link
Collaborator

Hi @FadyGeo have you compared you setup with our angular verification example already?

@FadyGeo
Copy link
Author

FadyGeo commented Apr 12, 2024

@CGNonofr thanks for your response. I'm currently using: "npm:@codingame/monaco-vscode-editor-api@~3.2.2" as monaco-editor in my Package.json.

@FadyGeo
Copy link
Author

FadyGeo commented Apr 12, 2024

@kaisalmen Hi, Thanks for your answer, I've merged your Angular.json with mine, used almost the same webpack as yours and my tsconfig looks similar to yours, except our project is using ES2022 Module.
I've included the relevant files.

angular.json
package.json
tsconfig.json

the user config looks like this:
code-editor-config.service.ts.json

thanks and best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants