Giter Club home page Giter Club logo

vscode-extension's People

Contributors

dependabot[bot] avatar rhoriguchi avatar stefan-ka avatar

Stargazers

 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-extension's Issues

Extension misbehaves when used with Workspaces

Context

I'm trying to use the VSCode extension of Context Mapper in a project with a workspace

Problem

I have the CML file in the second folder of my workspace. However, when I run the diagram generation, the output will always be created in the first folder of the open workspace.

Expectation

As a user with multiple folders in a workspace, I expect the context mapper extension to always generate build output into the folder of the workspace, in which the source file was located.

Issue when generate graphical with vscode

hi,
First thank you for this extension,
I started with this extension by I m faced this error when trying to genrate garphic (png)

"The CML Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted."

Thx for your help

Improve syntax highlighting (syntaxes/cml.tmLanguage.json)

I implemented a first version of the syntaxes/cml.tmLanguage.json file for the syntax highlighting.
However, we should improve this a bit later:

  • Match keywords locally (especially tactic DDD stuff)
    • everything is matched globally now
  • Match and highlight IDs (of Bounded Context, Aggregates, Entities, and so on...)

Graphical Context Map in VSC: Be able to configure generation folder and generated file types

Hello! I'm using Context Mapper in Visual Studio Code in a documentation only project. I have some suggestions to improve the workflows with the extension to make it leaner and easier to use:

The graphical context map is always generated into the folder <projectRoot>/src-gen. It would help if this path is configurable in the settings when the extension is used in non-Java projects that have different folder structures.
Additionally, when generating the graphical context map the user has to select the file types (png, svg, dot with all preselected by default). Within a project the team usually decides which formats to use and does not want to select the file type every time the file is generated. Therefore it would help if the file types are configurable in the settings and that the selection dropdown only shows up if there is no specific configuration in the settings.

VSCode extension fails for valid CML file with `The resource 'file:///model.cml' does not contain a CML model.`

Hi,

I am using VSCode with the ContextMapper extension on Ubuntu, and when using the Insurance example CML definitions the CML Language Server fails with the exception that the valid CML is not a valid CML model.

Exception

[Error - 11:53:37] Request textDocument/codeAction failed.
  Message: Internal error.
  Code: -32603 
java.util.concurrent.CompletionException: org.contextmapper.dsl.cml.exception.ResourceIsNoCMLModelException: The resource 'file:///projects/sprk-contextmap/src/main/cml/model.cml' does not contain a CML model.
	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:331)
	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:346)
	at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:704)
	at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
	at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
	at org.eclipse.xtext.ide.server.concurrent.AbstractRequest.logAndCompleteExceptionally(AbstractRequest.java:73)
	at org.eclipse.xtext.ide.server.concurrent.ReadRequest.lambda$doRun$0(ReadRequest.java:69)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.contextmapper.dsl.cml.exception.ResourceIsNoCMLModelException: The resource 'file:///home/tploch/projects/sprk-contextmap/src/main/cml/model.cml' does not contain a CML model.
	at org.contextmapper.dsl.cml.CMLResource.throwResourceIsNoCMLModelException(CMLResource.java:68)
	at org.contextmapper.dsl.cml.CMLResource.<init>(CMLResource.java:52)
	at org.contextmapper.dsl.ide.actions.CMLActionService.getCodeActions(CMLActionService.java:52)
	at org.eclipse.xtext.ide.server.LanguageServerImpl.lambda$codeAction$37(LanguageServerImpl.java:786)
	at org.eclipse.xtext.ide.server.WorkspaceManager.doRead(WorkspaceManager.java:438)
	at org.eclipse.xtext.ide.server.LanguageServerImpl.codeAction(LanguageServerImpl.java:777)
	at org.eclipse.xtext.ide.server.LanguageServerImpl.lambda$codeAction$36(LanguageServerImpl.java:763)
	at org.eclipse.xtext.ide.server.concurrent.ReadRequest.lambda$doRun$0(ReadRequest.java:66)
	... 5 more

Java

$ java -version
openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing)

VS Code

Version: 1.57.1
Commit: 507ce72a4466fbb27b715c3722558bb15afa9f48
Date: 2021-06-17T13:26:56.255Z
Electron: 12.0.7
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: 8.9.255.25-electron.0
OS: Linux x64 5.10.0-1034-oem

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.