twibiral / obsidian-execute-code

Obsidian Plugin to execute code in a note.
MIT License
1.09k stars 66 forks source link

[BUG] gcc not correctly supported in version 1.11.0 #340

Closed lustroid closed 5 months ago

lustroid commented 5 months ago

Describe the bug

The most latest version 1.11.0 included support of gcc compiler for c (Great!!). However it's not quite working. In the updated options UI, we are expected to see gcc being added to the Settings, according to changes in the source code. While these changes did not show up.

- .setName('Cling path')
- .setDesc('The path to your Cling installation.')
+ .setName('gcc / Cling path')
+ .setDesc('The path to your gcc / Cling installation.')

My current c++ settings page for 1.11.0: image

I also tried adding the correct gcc path to the Cling path box but it didn't seem to work.

Software Version

Windows 11 Plugin: 1.11.0 Obsidian: 1.5.12

To Reproduce

Update the plugin version to 1.11.0 and examine the c/c++ option UI.

Expected behavior

gcc compiler being correctly supported.

image

twibiral commented 5 months ago

@melo-afk can you reproduce the issue?

melo-afk commented 5 months ago

Hi @twibiral , it seems like something with the build of the plugin went wrong.

Screenshot of freshly installed the plugin via the community store release_build

Screenshot of the plugin I built with npm run dev (master branch) manual_build

@lustroid I only implemented the gcc functionality for C and not C++ as I didn't used C++ much. I can check in the coming weeks if I can get gcc or g++ with C++ to work

twibiral commented 5 months ago

Fixed with version 1.11.1. Thanks for reporting the bug!

(It was indeed a problem with the build; I compiled the wrong version)