lf-lang / vscode-lingua-franca

Lingua Franca extension for Visual Studio Code
Other
6 stars 3 forks source link

Diagrams not working on Apple Silicon #27

Closed goens closed 2 years ago

goens commented 2 years ago

Hi,

just tried out the new plugin on my new Macbook with Apple silicon, it's really good how it 'just works'!

Unfortunately the diagrams seem to be broken. There is no diagram shown and the options tab writes "no options provided by the diagram server".

For context:

java --version
openjdk 17.0.2 2022-01-18
OpenJDK Runtime Environment Homebrew (build 17.0.2+0)
OpenJDK 64-Bit Server VM Homebrew (build 17.0.2+0, mixed mode, sharing)

uname -a
Darwin AG-MacBook-Pro.lan 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:41 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T6000 arm64

code --version
1.64.1
d6ee99e4c045a6716e5c653d7da8e9ae6f5a8b03
arm64
Soroosh129 commented 2 years ago

For me, the diagram feature sometimes works and sometimes doesn't, depending on the program.

Going through a few C tests, here are two examples where one works and the other doesn't:

AfterCycles.lf

image

After.lf

image
NiklasRentzCAU commented 2 years ago

The Issues with Mac have been identified and will be fixed in the next KLighD release. There are two small changes that you have to apply to your code as well to make the diagrams work again:

Thank you for the reports and your patience for us fixing this!

petervdonovan commented 2 years ago

This issue is also assumed resolved, like #52, for the same reason. Please reopen if not.