-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Single method to file #377
Open
keinstein
wants to merge
20
commits into
RomanKubiak:master
Choose a base branch
from
keinstein:single_method_to_file
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- added vst2sdk to header search path - use standard AU type 'aumi'
Fix macOS build
This patch circumvents program aborts when - The window is too small so that the text width may get negative - uiImageSlider is fully initialised, so that the slider range contains invalid data
…name. When a Lua chank has a name, after the compilation an extended type of the variable with the chunk's name is stored in the CtrlrLuaMethod object. Errors are defined as additional types. This complies to the fact that a Lua chunk can contain everything, not only a single functions. The function isValid() changed its semantics from “running fine, so far” to “no probable error has been detected, so far“. In this sense a named Lua chunk that does not define a variable with the chunk's name is considered to probably contain an error. The function isValid() is mainly used to inform the Ctrlr user/programmer that a certain chunk is problematic in some way, which meens colouring its name red if isValid() returns false. In order to invalid calls to the Lua variable a function isCallable() has been introduced. It returns true iff the Lua chunk defines a function with the chunk's name that compiles fine and did not raise any Lua error so far. So, isCallable() covers most of the cases where isValid() had been called until this patch. In order to avoid unnecessary confusion “json4lua“ has been renamed to “json” and “debugger.lua” has been renamed to “debugger”.
This helps to find out to which panel an error message belongs to. Especially on startup, when many panels are loaded at once.
A thread should be running either as detached thread or as joinable thread. JUCE blurres this nomenclature with their own words. In general creating and deleting a system thread is expensive. So it should be deleted when it is save (i.e. not in realtime functions). This patch solves several issues with the thread: - the thread should exit if it gets signalled by setting a special variable. This variable is handled by JUCE. - The main program should signal the thread to end its action. This is done by stopThread() by setting the status variable and waking up the thread. - When the thread ends before the main program allows it to end, it must wait indefinitely. Otherwise an undefined state with a race condition is created, which may cause additional trouble.
This allows the compiler to warn about unimplemented values.
* using menu of the file editor * from the method tree context menu
RomanKubiak
force-pushed
the
master
branch
5 times, most recently
from
June 20, 2022 16:17
9eacd2a
to
d4a15a8
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
I fixed some additonal bugs and crashes. Furthermore I implemented converting a single method to a file.
Since I'm using a powerful external editor (emacs) for coding and use a version control system, I prefer to keep all my Lua methods in separate files. The current implementation always re-exports already exported methods. This breaks the panel as the exported methods get new names in the tree while the panel still uses the old names. I tried to fix that and added both in the editor menu and the context menu an entry to export a single method to a file. The reverse can be easily added if there is need for it.