vscode-terosHDL icon indicating copy to clipboard operation
vscode-terosHDL copied to clipboard

Signal (WaveDrom) change font size in State machine viewer

Open StephaneIFO opened this issue 2 years ago • 7 comments

I discovered TerosHDL a few days ago and it is really a great tool, nice work! But I think there is a conflict in the css rules between signal (WaveDrom) and State machine viewer

Describe the bug When you add a signal (WaveDrom) the font size in the State machine viewer increase

To Reproduce Add this --! { signal: [{ name: "Alfa", wave: "01.zx=ud.23.456789" }] } to the line 25 of state_machine_1.vhd
https://github.com/TerosTechnology/teroshdl-examples/blob/main/state_machine/state_machine_1.vhd#L25 => look at the font size in the state machine

Please complete the following information:

  • OS: Windows 10
  • VSCode v1.77.3
  • TerosHDL v2.0.13

Screenshots state_machine_1 without signal => OK state_machine_1_without_signal

state_machine_1 with signal => NOK state_machine_1_with_signal

StephaneIFO avatar Apr 19 '23 11:04 StephaneIFO

Hi, update with v5.0.9 :

File https://github.com/TerosTechnology/teroshdl-examples/blob/main/state_machine/fsm_6.vhd Add on line 1 : --! { signal: [{ name: "Alfa", wave: "01.zx=ud.23.456789" }] }

With signal :

  • Diagram font size reduce
  • State machines font size increase

image

StephaneIFO avatar Aug 21 '23 11:08 StephaneIFO

Same with 5.0.10 (pre-release)

image

StephaneIFO avatar Aug 21 '23 12:08 StephaneIFO

Hi, same problem with 5.0.12 image

StephaneIFO avatar Aug 23 '24 08:08 StephaneIFO

Hi, with 6.0.1(pre-release) it's worse : an fsm crashes the whole documentation Without fsm : ok image

With fsm : no documentation and error "Cannot find module 'fast-json-stable-stringify'" `Cannot find module 'fast-json-stable-stringify' Require stack:

  • c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\node_modules\ajv\lib\compile\index.js
  • c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\node_modules\ajv\lib\ajv.js
  • c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\node_modules\teroshdl2\node_modules\state-machine-cat\dist\commonjs\bundle.js
  • c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\node_modules\teroshdl2\node_modules\state-machine-cat\dist\commonjs\index.js
  • c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\node_modules\teroshdl2\out\parser\fsm_base_parser.js
  • c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\node_modules\teroshdl2\out\parser\ts_vhdl\fsm.js
  • c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\node_modules\teroshdl2\out\parser\ts_vhdl\parser.js
  • c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\node_modules\teroshdl2\out\parser\factory.js
  • c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\node_modules\teroshdl2\out\documenter\documenter.js
  • c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\node_modules\teroshdl2\out\documenter\export_t.js
  • c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\node_modules\teroshdl2\out\index.js
  • c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\out\features\language_provider\lsp\rust_hdl.js
  • c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\out\features\language_provider\language_provider.js
  • c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\out\teroshdl.js
  • c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\out\extension.js
  • e:\Program Files\Microsoft VS Code\resources\app\out\bootstrap-fork.js` image

StephaneIFO avatar Aug 23 '24 08:08 StephaneIFO

Hi, with 6.0.1(pre-release) it's worse : an fsm crashes the whole documentation Without fsm : ok image

With fsm : no documentation and error "Cannot find module 'fast-json-stable-stringify'" `Cannot find module 'fast-json-stable-stringify' Require stack:

* c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\node_modules\ajv\lib\compile\index.js

* c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\node_modules\ajv\lib\ajv.js

* c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\node_modules\teroshdl2\node_modules\state-machine-cat\dist\commonjs\bundle.js

* c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\node_modules\teroshdl2\node_modules\state-machine-cat\dist\commonjs\index.js

* c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\node_modules\teroshdl2\out\parser\fsm_base_parser.js

* c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\node_modules\teroshdl2\out\parser\ts_vhdl\fsm.js

* c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\node_modules\teroshdl2\out\parser\ts_vhdl\parser.js

* c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\node_modules\teroshdl2\out\parser\factory.js

* c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\node_modules\teroshdl2\out\documenter\documenter.js

* c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\node_modules\teroshdl2\out\documenter\export_t.js

* c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\node_modules\teroshdl2\out\index.js

* c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\out\features\language_provider\lsp\rust_hdl.js

* c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\out\features\language_provider\language_provider.js

* c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\out\teroshdl.js

* c:\Users\xxxxxx.vscode\extensions\teros-technology.teroshdl-6.0.1\out\extension.js

* e:\Program Files\Microsoft VS Code\resources\app\out\bootstrap-fork.js`
  ![image](https://private-user-images.githubusercontent.com/85570778/360849569-5ddff92d-dcc4-4ff1-8ddd-663d14ed04d7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ2NzIyMDQsIm5iZiI6MTcyNDY3MTkwNCwicGF0aCI6Ii84NTU3MDc3OC8zNjA4NDk1NjktNWRkZmY5MmQtZGNjNC00ZmYxLThkZGQtNjYzZDE0ZWQwNGQ3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI2VDExMzE0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWIzMzJiYWMyZTA5NTVjZjRiMWNhMjcwNzQ2YTNkOTFlYzljNjFjOGI2MDZmYmE5NTQ1NTRkOWUzZjMzZDJlOWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.RYwo-IWNnOblp0USygfzja5smhW9Hcui1VC7f2UcHUI)

This version should fix it: https://github.com/TerosTechnology/vscode-terosHDL/releases/tag/v6.0.2beta But not the problem with the css

qarlosalberto avatar Aug 26 '24 11:08 qarlosalberto

Hi, FSM work with 6.0.3, but as you say the css problem stay TerosHDL is great but I need chronograms and FSM in my documentation, so, in all honesty, will this problem ever be solved or should I definitely stop hoping and move on to another solution for my VHDL documentation?

image

StephaneIFO avatar Aug 27 '24 10:08 StephaneIFO

I don't know when I will fix the bug. If you need commercial support you can send me an email to: [email protected]

qarlosalberto avatar Aug 27 '24 10:08 qarlosalberto