Comments (14)
Hey @akoaysigod, it doesn't seem to happen for me in my setup. Just tried to create a class with method and no error appeared. What's your emacs version and what error message do you get? I'm not sure how to debug it, I will need to reproduce it somehow in my setup, so would be great to get as much information as possible.
from swift-mode.
24.3 is the version I'm using on OSX. It just says "Mismatched Parentheses" at the bottom. Sorry I'm new to emacs, I think the main problem is with autopair which doesn't seem to work with this mode. But I do get the error regardless of whether or not it's on. I also got it on a fresh install on Ubuntu. I'm not sure if it's relevant at all at this point now that I've realized it was autopair messing up. Sorry.
from swift-mode.
Ok, I'm using 24.4
, so that's may be the case. I wonder if you use clean emacs or configuration packs like Prelude
? Also did you install this mode manually or from MELPA
?
from swift-mode.
I installed it from MELPA. I'm not using Prelude and it happened on a clean install of emacs as well albeit a different version probably since it was on Ubuntu and not OSX.
from swift-mode.
Ok, I will try this setup.
from swift-mode.
Did this:
- Installed
emacs
fromhomebrew
with:--cocoa --srgb
; - Created
init.el
withMELPA
initialisation; - Installed
swift-mode
;
Created test .swift
file and wrote this:
class Foo {
func bar() {
return "test";
}
}
No errors occurred. Any idea what else I can check?
from swift-mode.
I just did the same thing and it says Mismatched Parentheses in the mode line as soon as I finished typing func. Like I said I don't even know if it's a big deal or not. Sorry I can't provide you with more information.
At this point my other minor modes stop working. Although in this case, there's nothing installed besides swift-mode. This doesn't happen in any other major modes I've been working in.
from swift-mode.
Ok I was able to reproduce this and some results:
- Warning itself is related to this and can be solved by setting
blink-matching-paren
tonil
; - It also somehow related to the
smie
based indentation, I'm still checking what is the problem here; - It doesn't result in malfunctioning of other modes for me, even after this warning indentation and highlighting still works.
I will check if it's a problem with smie
.
from swift-mode.
Anyone made any progress on this issue yet?
from swift-mode.
@olepor as far as the warning goes it's still happening. I haven't had the problem with the indentation in a while though.
from swift-mode.
I seem to have a problem with autopairing braces in swift-mode. Anyone else recognise these symptoms? Parenthesis work just fine, but there is something that messes with the mathcing of braces. It seems like it is trying to match them (the braces) with keywords- such as if, for... etc
instead of the mathcing brace. I guess this has something to do with the swift-mode functionality.
@akoaysigod
from swift-mode.
Hey @olepor can you make a gist or something with an example of the situation (something minimal). I assume the problem is the error message (Mismatched parenthesis
), right? Or you have a different problem?
from swift-mode.
Hi
I am having this problem as well. It seems the '..<' and related range syntax are causing the issue. The standard '...' range works perfectly fine, however when the the angle brackets are introduced it begins to complain about mismatching parenthesis.
I am using Emacs 24.5.1 with swift-mode installed through the MELPA repository.
Thank you for your continued support.
from swift-mode.
Closing in favor of the new indentation logic.
from swift-mode.
Related Issues (20)
- Mode periodically loses characters as I type HOT 3
- I am not able to set the default indent to 2 spaces. HOT 2
- Link sourcekit-lsp in README HOT 1
- Debugging multiple targets is not supported HOT 1
- How do you configure what scheme to build? HOT 1
- Indentation for generic parameter lists HOT 3
- When switch case statements are fully indented, following lines are not at all
- Lisp nesting exceeds ‘max-lisp-eval-depth’ error HOT 3
- Protocol indentation HOT 2
- iMenu doesn't find declarations unless the opening brace of the containing top-level entity is on the same line HOT 4
- Function declarations get tagged with function-call-face HOT 1
- How do I use the swift menu? HOT 1
- Does not work on M1 Macs HOT 5
- Performance incompatible with which-function mode HOT 2
- Consider pilfering functionality HOT 3
- Support for Emacs 29+ treesitter integration HOT 1
- comint-continue-subjob: Buffer *Swift REPL [xcrun swift]* has no process HOT 2
- Swift 5.8 Deprecated --chdir HOT 1
- How can I turn off the arguments and fields aligning, and use it with an indentation only? HOT 1
- which-function mode missing full extension name HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swift-mode.